Insufficient Error messages on jsp error
Hello. Since I upgraded to Tomcat 5 it's been bugging me that on errors in jsp files (I think both compile and runtime) I just get an error like: [ServletException in:/programtracklist.jsp] null' and 2004-01-16 14:58:44 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp threw exception java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1253) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145) at org.apache.log4j.Category.forcedLog(Category.java:372) in the logfile, wheras in Tomcat 4 on exactly the same error it gives the following error that one can work with to fix the error: [ServletException in:/programtracklist.jsp] Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error ' 2004-01-16 15:03:08 Error compiling file: E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\/programtracklist_jsp.java [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error 2004-01-16 15:03:08 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324) Can you tell me why this is? Is it possible to configure tomcat 5 to display an error message as before in Tomcat 4? Thanx in Advance, Lukas sterreicher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Insufficient Error messages on jsp error
Maybe this has to do with the level of debug you have on. Daniel Gibby Lukas sterreicher wrote: Hello. Since I upgraded to Tomcat 5 it's been bugging me that on errors in jsp files (I think both compile and runtime) I just get an error like: [ServletException in:/programtracklist.jsp] null' and 2004-01-16 14:58:44 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp threw exception java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1253) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145) at org.apache.log4j.Category.forcedLog(Category.java:372) in the logfile, wheras in Tomcat 4 on exactly the same error it gives the following error that one can work with to fix the error: [ServletException in:/programtracklist.jsp] Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error ' 2004-01-16 15:03:08 Error compiling file: E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\/programtracklist_jsp.java [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error 2004-01-16 15:03:08 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324) Can you tell me why this is? Is it possible to configure tomcat 5 to display an error message as before in Tomcat 4? Thanx in Advance, Lukas sterreicher - 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]
Re: Insufficient Error messages on jsp error
Dan I would recommend setting up an ANT http://ant.apache.org/ script with jsp-precompiling right after you freshen source from source control (and before general java compile step)..this is an absolutely necessary methodology you should utilise if you will be doing enterprise wide development. For that reason I use IDEs for incremental local builds only. Regards, Martin P.S. Offline topic for Dan-What did you think of the Monster ad during the Superbowl?? - Original Message - From: Daniel Gibby [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, February 02, 2004 3:20 PM Subject: Re: Insufficient Error messages on jsp error Maybe this has to do with the level of debug you have on. Daniel Gibby Lukas sterreicher wrote: Hello. Since I upgraded to Tomcat 5 it's been bugging me that on errors in jsp files (I think both compile and runtime) I just get an error like: [ServletException in:/programtracklist.jsp] null' and 2004-01-16 14:58:44 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp threw exception java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1253) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1213) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145) at org.apache.log4j.Category.forcedLog(Category.java:372) in the logfile, wheras in Tomcat 4 on exactly the same error it gives the following error that one can work with to fix the error: [ServletException in:/programtracklist.jsp] Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error ' 2004-01-16 15:03:08 Error compiling file: E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\/programtracklist_jsp.java [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error 2004-01-16 15:03:08 ApplicationDispatcher[/yarf] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 162 in the jsp file: /programtracklist.jsp Generated servlet error: [javac] Compiling 1 source file E:\Programme\Apache Group\Tomcat 4.1\work\Standalone\localhost\yarf\programtracklist_jsp.java:480: cannot resolve symbol symbol : method setValue (int) location: class org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_4.setValue(programtracks[0].getProgram_track()); ^ 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324) Can you tell me why this is? Is it possible to configure tomcat 5 to display an error message as before in Tomcat 4? Thanx in Advance, Lukas sterreicher - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]