[Bug 53376] Unable to load class for JSP - tomcat errors
https://issues.apache.org/bugzilla/show_bug.cgi?id=53376 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Mark Thomas ma...@apache.org --- You can't delete the work directory while Tomcat is running. This has no impact on your ability use hot deployment. -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 53376] New: Unable to load class for JSP - tomcat errors
https://issues.apache.org/bugzilla/show_bug.cgi?id=53376 Priority: P2 Bug ID: 53376 Assignee: dev@tomcat.apache.org Summary: Unable to load class for JSP - tomcat errors Severity: major Classification: Unclassified OS: Linux Reporter: vamshi.x.tek...@ampf.com Hardware: All Status: NEW Version: 6.0.29 Component: Jasper Product: Tomcat 6 Tomcat is throwing errors when work folder is deleted while it is runing.Please let us know if this fixed in any of the newer versions. This prevents the ability to hot deploy the components. JspCompilationContext.java line 628: servletClass = jspLoader.loadClass(name); and before that, tomcat has successfully recompiled the jsp page at work folder, but it seems tomcat cannot find it when load it to memory. Error details: org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156) Thanks, Vamsi Tekuru at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488) Caused by: org.apache.jasper.JasperException: Unable to load class for JSP at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:630) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) ... 176 more Caused by: java.lang.ClassNotFoundException: org.apache.jsp.view_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:628) ... 177 more -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Tomcat errors
dalilama wrote: I'm trying to get to know tomcat 6. I am experimenting with editing one of the java classes in apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes I have replaced the contents of HelloWorldExample.java with my own code which server a web page . One of the lines of code is: public void doGet(HttpServletRequest req, HttpServletResponse res) The code compiles fine and runs fine. Now I want to add some code which might throw an exception so I modify the above line to read : public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException The file again compiles without problem. But now when I start the tomcat instance I see the following errors in the logs : Dec 17, 2008 1:23:02 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class listeners.ContextListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) The javax/servlet/ServletContextAttributeListener is definately there and the location is included in the environmental variable CLASSPATH Now the tomcat server is totally disfunctional and gives me HTTP STatus 404 when I do to the servlet demo page. That is a question for the users list, not the dev list. Mark George - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Tomcat errors
I'm trying to get to know tomcat 6. I am experimenting with editing one of the java classes in apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes I have replaced the contents of HelloWorldExample.java with my own code which server a web page . One of the lines of code is: public void doGet(HttpServletRequest req, HttpServletResponse res) The code compiles fine and runs fine. Now I want to add some code which might throw an exception so I modify the above line to read : public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException The file again compiles without problem. But now when I start the tomcat instance I see the following errors in the logs : Dec 17, 2008 1:23:02 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class listeners.ContextListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) The javax/servlet/ServletContextAttributeListener is definately there and the location is included in the environmental variable CLASSPATH Now the tomcat server is totally disfunctional and gives me HTTP STatus 404 when I do to the servlet demo page. George -- View this message in context: http://www.nabble.com/Tomcat-errors-tp21053265p21053265.html Sent from the Tomcat - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Tomcat errors.
Hello, what do you want to mean when you say this question belongs as per? I can't find it. Could you please me tell me the full url? Thanks in advance. Mark Thomas escribió: Ángel Prieto wrote: Hello, I'm having some problems with apache+tomcat with this configuration: Could anyone tell me something about it? The question belongs on the users list as per http://tomcat.apache.org/lists.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]