which jar is SecureTilesPlugIn in? I just looked in struts.jar and sslext.jar.
thanks Adam
On 01/21/2004 01:52 AM Marino A. Jonsson wrote:
heh heh typical :)
btw. you don't need to specify two SecurePlugIns (both SecureTilesPlugIn _and_ a SecurePlugIn)! What you want to do is this instead:
<plug-in className="org.apache.struts.tiles.SecureTilesPlugIn" > <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" /> <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>
Like I said - SecureTilesPlugIn is a SecurePlugIn that extends the TilesPlugIn :)
cheers, Marin?
"Greg Hess" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi All,
This one was tricky. It seems that my problem was that I supplied the wrong className="org.apache.struts.tiles.SecureTilesPlugIn" when the correct className is org.apache.struts.tiles.SecureTilesPlugin.
There is some inconsistancy in the docs found at http://struts.ditlinger.com/ that specify the wrong class name to use. The good people that authord the sslext are aware and will probably update the docs.
Easy fix if I had of received a ClassNotFoundException, strange that no error resulted.
All the best,
Greg
-----Original Message----- From: Greg Hess [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:57 AM To: 'Struts Users Mailing List' Subject: RE: Struts 1.1, Tiles and sslext11
Marino,
Hmm, I didn't know what all those plugin's were for thanks for the explanation but I configure the tiles and ssl plugin as described but
I
still get the same error. I can only seem to make it work as Adam has
it
configured using the standard tiles pluging and just setting the processorClass to the secure one.
Below is my struts-config that I believe is as you have outlined?
<struts-config> <action-mappings
type="org.apache.struts.config.SecureActionConfig">
</action-mappings>
<!-- ===================================== Controller Configuration
-->
<controller nocache="true"/>
<!-- ================================ Message Resources Definitions
-->
<message-resources parameter="struts.resources.application"/>
<!-- ======================================= Plug Ins Configuration
-->
<!-- ========== Tiles plugin =================== --> <plug-in className="org.apache.struts.tiles.SecureTilesPlugIn" > <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,
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j/WEB-INF/validation.xml"/> </plug-in>
<plug-in className="org.apache.struts.action.SecurePlugIn"> <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>
Is this right, still throwing?
javax.servlet.UnavailableException at
av
a:
1169)
Thanks,
Greg
-----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A.
Jonsson
Sent: Tuesday, January 20, 2004 6:57 AM To: [EMAIL PROTECTED] Subject: Re: Struts 1.1, Tiles and sslext11
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.1org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j
using Tiles.
I get the following error when accessing any action:
javax.servlet.UnavailableException at
av
a:
1169) at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at
javax.servlet.GenericServlet.init(GenericServlet.java:82)
com.caucho.server.http.Application.createServlet(Application.java:2982)at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:648at
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
)
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
-->processorClass="org.apache.struts.action.SecureTilesRequestProcessor"
<controller
nocache="true"/>
<!-- ================================ Message Resources
Definitions
-->
<message-resources parameter="struts.resources.application"/>
<!-- ======================================= Plug Ins
Configuration
-->value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,
<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"
/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
-- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]