Re: Struts 1.1, Tiles and sslext11
Hi there, 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, /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 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j 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.1 using Tiles. I get the following error when accessing any action: javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j av a: 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
Re: Struts 1.1, Tiles and sslext11
Found it, it's in the latest release on sourceforge 1.10-4 oh and it's SecureTilesPlugin with a little in not In for anybody's info. Don't know how you managed that, Marino, if you just cut pasted that config. On 01/21/2004 11:45 AM Adam Hardy wrote: Hi there, 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, /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 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j 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.1 using Tiles. I get the following error when accessing any action: javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j av a: 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
Re: Struts 1.1, Tiles and sslext11
I'm not currently using it myself ... I'm just familiar with the source code since I am responsible for creating Struts and SSL Ext support for the Apache Velocity Tools project :) cheers, Marinó Adam Hardy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Found it, it's in the latest release on sourceforge 1.10-4 oh and it's SecureTilesPlugin with a little in not In for anybody's info. Don't know how you managed that, Marino, if you just cut pasted that config. On 01/21/2004 11:45 AM Adam Hardy wrote: Hi there, 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, /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 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j 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
Re: Struts 1.1, Tiles and sslext11
Hi Greg, I'm using the same setup as you, except I use the straight org.apache.struts.action.SecurePlugIn and it works. Haven't seen that exception before. Adam On 01/19/2004 09:06 PM Greg Hess wrote: 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 http://www.wrappedapps.com http://www.wrappedapps.com -- 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]
Re: Struts 1.1, Tiles and sslext11
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]
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.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]
RE: Struts 1.1, Tiles and sslext11
Marino, Hmm, I didnt 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, /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 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j 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.1 using Tiles. I get the following error when accessing any action: javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j av a: 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
RE: Struts 1.1, Tiles and sslext11
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 didnt 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, /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 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j 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.1 using Tiles. I get the following error when accessing any action: javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j av a: 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
Re: Struts 1.1, Tiles and sslext11
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, /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 org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j 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.1 using Tiles. I get the following error when accessing any action: javax.servlet.UnavailableException at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j av a: 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