RE: Response to "error in setting up sslext"

2004-05-07 Thread Joe Germuska
It's possible that you aren't using a full Struts 
1.1 release.  It looks like there were some 
changes to the TilesUtil stuff right around the 
release of Struts 1.1 which could easily lead to 
a problem like this.

(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 + 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:

	






My action mapping and servlet are as follows:

 

 
action
org.apache.struts.action.ActionServlet

   config
   WEB-INF/struts-config.xml


   debug
   2


   detail
   2


   validate
   true


definitions-config
WEB-INF/tiles-config.xml

12
 
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 

RE: Response to "error in setting up sslext"

2004-05-06 Thread Marcella Turner
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:

	






My action mapping and servlet are as follows:

 

 
action

org.apache.struts.action.ActionServlet

   config
   WEB-INF/struts-config.xml


   debug
   2


   detail
   2


   validate
   true


	definitions-config
	WEB-INF/tiles-config.xml

12
 


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/TilesUti

Response to "error in setting up sslext"

2004-05-03 Thread Joe Germuska
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]