Moreover, the StrutsTilesPlugin overloads the
initRequestProcessorClass(ModuleConfig config) of the TilesPlugin and sets
the processorClass attribute of the controller to
SecureTilesRequestProcessor ... so there's no need to specify the controller
explicitly.

cheers,
Marinó

"Marino A. Jonsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That makes sense ... SecureTilesPlugin actually extends TilesPlugin so
> you're trying to initialize the same plugin twice ;)
>
> cheers,
> Marinó
> "Greg Hess" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hi All,
>
> I am having difficulty integrating the sslext11 plug-in with Struts 1.1
> using Tiles.
>
> I get the following error when accessing any action:
>
> javax.servlet.UnavailableException
>         at
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:
> 1169)
>         at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:82)
>         at
> com.caucho.server.http.Application.createServlet(Application.java:2982)
>         at
> com.caucho.server.http.Application.loadServlet(Application.java:2941)
>         at
> com.caucho.server.http.Application.initServlets(Application.java:1841)
>         at com.caucho.server.http.Application.init(Application.java:1772)
>         at com.caucho.server.http.VirtualHost.init(VirtualHost.java:621)
>         at
> com.caucho.server.http.ServletServer.initHosts(ServletServer.java:831)
>         at
> com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648)
>         at
com.caucho.server.http.ServletServer.init(ServletServer.java:483)
>         at com.caucho.server.http.ResinServer.init(ResinServer.java:360)
>         at com.caucho.server.http.ResinServer.main(ResinServer.java:1107)
>         at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
>
> My struts-config.xml:
>
> <struts-config>
>     <action-mappings type="org.apache.struts.config.SecureActionConfig">
>         .
>     </action-mappings>
>
> <!-- ===================================== Controller Configuration -->
>     <controller
>
processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
>        nocache="true"/>
>
> <!-- ================================ Message Resources Definitions -->
>     <message-resources parameter="struts.resources.application"/>
>
> <!-- ======================================= Plug Ins Configuration -->
>       <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>       <set-property property="definitions-config"
>             value="/WEB-INF/tiles-defs.xml" />
>       <set-property property="moduleAware" value="true" />
>       <set-property property="definitions-parser-validate" value="true" />
>       </plug-in>
>
>       <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
>       <set-property
>             property="pathnames"
>
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
>             /WEB-INF/validation.xml"/>
>       </plug-in>
>
>       <plug-in className="org.apache.struts.tiles.SecureTilesPlugIn">
>       <set-property property="httpPort" value="80"/>
>       <set-property property="httpsPort" value="443"/>
>             <set-property property="enable" value="true"/>
>       <set-property property="addSession" value="true"/>
>       </plug-in>
>
> </struts-config>
>
>
> Any help is much appreciated,
>
> Thanks,
>
> Greg Hess
> Software Engineer
> Wrapped Apps Corporation
> 275 Michael Cowpland Dr.
> Suite 201
> Ottawa, Ontario
> K2M 2G2
> Tel: (613) 591 -7552
> Fax: (613) 591-0523
> 1 (877) 388-6742
> www.wrappedapps.com




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to