struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Struts Tiles Problem
Date Mon, 08 Nov 2010 18:47:34 GMT
Subclass the TilesRequestProcessor instead of the normal one.

Dave

On Mon, Nov 8, 2010 at 1:08 PM, Andy T <verygoofyone@gmail.com> wrote:
> Hi Lukasz,
>
> Your identification of the exact cause of the error has helped me to
> solve this problem.  The problem is here:
>
> <controller>
>    <set-property  property="processorClass"
> value="EricEnhancement.util.CustomRequestProcessor"/>
> </controller>
>
> For whatever reason the CustomRequestProcessor I was using is not
> compatible with the TilesRequestProcessor.  When I remove the above
> from struts-config.xml everything SEEMS to work as expected.  I need
> to do a little more work to prove this definitively however.  However,
> this creates another issue.  I was using the CustomRequestProcessor to
> redirect to the login page under certain circumstances.  Can you
> recommend another approach that will accomplish the same thing?
>
> Thanks so much for your help,
>
> Andy
>
>
>
> On Mon, Nov 8, 2010 at 10:56 AM, Lukasz Lenart
> <lukasz.lenart@googlemail.com> wrote:
>> 2010/11/8 Andy T <verygoofyone@gmail.com>:
>>> Hi Lukasz,
>>>
>>> I have struts-tiles-1.3.8.jar loaded . . . is this what you mean?
>>
>> Yes, it should be sufficient, could you post your struts config? Below
>> is extract from the log you sent me.
>>
>> FATAL main org.apache.struts.tiles.TilesPlugin - TilesPlugin :
>> Specified RequestProcessor not compatible with TilesRequestProcessor
>> ERROR main org.apache.struts.action.ActionServlet - Unable to
>> initialize Struts ActionServlet due to an unexpected exception or
>> error thrown, so marking the servlet as unavailable.  Most likely,
>> this is due to an incorrect or missing library dependency.
>> javax.servlet.ServletException: TilesPlugin : Specified
>> RequestProcessor not compatible with TilesRequestProcessor
>>        at org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:382)
>>        at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:137)
>>        at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)
>>        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
>>        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
>>        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>>        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>>        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
>>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
>>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>>        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:599)
>>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>>
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Kapituła Javarsovia 2010 http://javarsovia.pl
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message