(you can see more details by looking at http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/tiles/TilesPlugin.java
)
I'd suggest you start by making sure you have a full Struts 1.1 release. It looks like these changes were going on between 1.1B2 and 1.1B3.
If necessary, you can explicitly set the "tilesUtilImplClassname" property of your TilesPlugin in the struts-config.xml -- but if you have Struts 1.1 final, it should work for you without needing that.
Joe
At 11:22 PM +0000 5/6/04, Marcella Turner wrote:
I managed to get a more complete stack trace of the error:
[Servlet Error]-[action]: java.lang.ClassCastException: org.apache.struts.tiles.TilesUtilImpl
at org.apache.struts.tiles.TilesRequestProcessor.initDefinitionsMapping(TilesRequestProcessor.java:126)
at org.apache.struts.tiles.TilesRequestProcessor.init(TilesRequestProcessor.java:116)
at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
I'm using the Struts 1.1 jar (although I don't know exactly what level) and tld's and the most recent sslext that I could download from SourceForge. I"m using WSAD 5.1, I don't know if that's important.
My controller and plugins are as follows:
<controller processorClass="org.apache.struts.action.SecureTilesRequestProcessor" />
<plug-in className="org.apache.struts.action.SecurePlugIn"> <set-property property="httpPort" value="81"/> <set-property property="httpsPort" value="443"/> <set-property property="enable" value="false"/> </plug-in>
My action mapping and servlet are as follows:
<action-mappings type="org.apache.struts.config.SecureActionConfig">
<servlet id="Servlet_1"> <servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param id="InitParam_1"> <param-name>config</param-name> <param-value>WEB-INF/struts-config.xml</param-value> </init-param> <init-param id="InitParam_2"> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param id="InitParam_3"> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <init-param id="InitParam_4"> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>definitions-config</param-name> <param-value>WEB-INF/tiles-config.xml</param-value> </init-param> <load-on-startup>12</load-on-startup> </servlet>
From: Joe Germuska <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Response to "error in setting up sslext" Date: Mon, 3 May 2004 17:10:04 -0500
What version of Struts are you using? My guess would be some kind of binary incompatibility. I'm using sslext with Struts 1.2.0, but I'm sure most people out there using it are using Struts 1.1.
From the CVS logs (http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/tiles/), it appears as though those classes were kind of moving targets around that time.
In addition to using the SecureRequestProcessor, are you using the SecureTilesPlugIn? I'm not really sure why that class is in sslext; I'm not using it in my project and things seem to be working. I don't know why it would matter, but just as a matter of fact, I'm not using it.
Do you have a more complete stack trace? What's actually throwing the exception?
This looks like it could be a knotty problem; I don't have a lot of ideas off hand. Good thing there are a lot of subscribers to this list! :)
Joe
I have been working on setting up SSLExt for an existing Struts application which was using SecureRequestProcessor but we wanted to also implement Tiles. So now I've configured the application to use SecureTilesRequestProcessor. However, when I call my tiles page I'm getting the following error:
Error 503: Cannot initialize RequestProcessor of class org.apache.struts.action.SecureTilesRequestProcessor: java.lang.ClassCastException: org/apache/struts/tiles/TilesUtilImpl incompatible with org/apache/struts/tiles/TilesUtilStrutsImpl
I have done the following set up work:
* put TLD definition in the web.xml * set controller in struts-config.xml * set action-mapping in struts-config.xml * included sslext.tld in pages
Can someone suggest what the error might indicate, or point out what I may have neglected in my setup?
Thanks in advance.
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]