Hi.
When trying to dynamicly reload the struts-example, I get a 
"ClassCastException".
I use Tomcat-3.2.1 and jakarta-struts-1.0 from 
jakarta-struts-src-20010110.tar.gz., jdk.1.2.2_006
Here is the exception from the logs:
==> logs/jasper.log <==
2001-01-15 10:52:20 - Classpath according to the Servlet Engine is: 
/export/home/andreak/jakarta-tomcat-3.2.1/webapps/struts-example/WEB-INF/classes:/export/home/andreak/jakarta-tomcat-3.2.1/webapps/struts-example/WEB-INF/lib/struts.jar

==> logs/servlet.log <==
2001-01-15 10:52:20 - Ctx( /struts-example ): Exception in: R( 
/struts-example + /index.jsp + null) - javax.servlet.ServletException: 
org.apache.struts.util.PropertyMessageResources
        at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
        at 
_0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.java:345)
...
...

Root cause:
java.lang.ClassCastException: org.apache.struts.util.PropertyMessageResources
        at 
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:229)
        at 
_0002findex_0002ejspindex_jsp_0._jspService(_0002findex_0002ejspindex_jsp_0.java:90)
----------------------------------------------------------------------

I know that I cannot have the same classes in the Tomcat classpath as I have 
in the struts-example. Does it matter that I have "struts.jar" loaded several 
times(one time for each example - upload, test, example etc...) in different 
classloaders? Tomcat uses one classloader pr. webapp right?
Can anybody please help me out here:-)

-- 
Andreas Joseph Krogh <[EMAIL PROTECTED]>

Reply via email to