Title: RE: Error reloading servlet

I get a similar error when using JSP pages if I recompile the supporting classes - I have made an assumption that it is something to do with the signature for a object that is held in the cache be different after I re-compile.( Don't launch any flames at me if this is the wrong terminology please - this is just my assumption!!).

I have to stop and restart tomcat on projects where I am using JSPs if I recompile the main code for the beans - If this is a separate problem and anyone knows how to resolve it then I would be very grateful to hear - or just to tell me if something like my assumption was right?

Al

Cheers Al

Alastair Briggs
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]
Phone : +44 (0) 8700 110 999
Direct : +44 (0) 1908 657 966
Mobile : +44 (0) 7973 623337
Transition Computing
www.transitioncomputing.com <http://www.transitioncomputing.com

 tcl-advert1.gif (10938 bytes)



-----Original Message-----
From: Andreas Joseph Krogh [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2001 09:04
To: [EMAIL PROTECTED]
Subject: Error reloading servlet


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]>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.226 / Virus Database: 108 - Release Date: 05/01/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.226 / Virus Database: 108 - Release Date: 05/01/2001

Reply via email to