| Author |
java.lang.ThreadDeath
|
Grady Jamyson
Ranch Hand
Joined: Aug 04, 2002
Posts: 41
|
|
Tomcat 5.0.24 Struts 1.1 The error message is : javax.servlet.ServletException org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause java.lang.ThreadDeath org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1229) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145) org.apache.log4j.Category.forcedLog(Category.java:372) org.apache.log4j.Category.log(Category.java:864) org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:377) org.apache.jasper.compiler.Compiler.compile(Compiler.java:441) org.apache.jasper.compiler.Compiler.compile(Compiler.java:422) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) The log error message is: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact) I don't understand what's going on. If I use out.println(session.getAttribute("account")); that's fine. I have the same error message if I try to use String s = request.getAttibute("abc"); Any ideals?
|
 |
Carol Enderlin
drifter
Ranch Hand
Joined: Oct 10, 2000
Posts: 1340
|
|
I'm wondering what's in your included jsp, top.jsp. I'm not sure what's going on with your stack trace (my best wild guess without seeing all of your code and your configuration is that the compile failed and it's trying to log it but fails to do that, too), but the following line in your jsp shouldn't compile, it needs a cast. I get an "incompatible types" error when I try to compile it (not with tomcat 5). Account account = session.getAttribute("account"); With cast: Account account = (Account)session.getAttribute("account"); Same thing with the String String s = (String)session.getAttribute("mystring"); Your String line has a typo in it that would not compile either (getAttibute).
|
 |
 |
|
|
subject: java.lang.ThreadDeath
|
|
|