|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
TOMCAT problems I http://www.www.lslnet.com/linux/forum/viewtopic.php?t=148405 structures in accordance with the environment,
E:\j2sdk1.4.0_01
D:\TOMCT5.0
All right path variable setup, on the model code can be executed correctly 127.0.0.1:8080/jsp-examples
Jsp http://127.0.0.1:8080/myapp/test.jsp visit through their papers appeared [code]HTTP Status : 500 -
--------------------------------------------------------------------------------
Type Exception report
Message
Description The server encountered an internal error () that prevented it from fulfilling this request.
Exception
Org.apache.jasper.JasperException : Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually from the JDK $JAVA_HOME/lib/tools.jar
To the common/lib directory of the Tomcat server, followed by a restart Tomcat.
If using an alternate Java compiler, please check its installation and access path.
Org.apache.jasper.compiler.DefaultErrorHandler.javacError (DefaultErrorHandler.java:128)
Org.apache.jasper.compiler.ErrorDispatcher.javacError (ErrorDispatcher.java:351)
Org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:413)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:453)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:437)
Org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:555)
Org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:291)
Org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:301)
Org.apache.jasper.servlet.JspServlet.service (JspServlet.java:248)
Javax.servlet.http.HttpServlet.service (HttpServlet.java:856)
Note The full stack trace of the root cause is available in the Tomcat logs.
--------------------------------------------------------------------------------
[/code]
Ask what are the problems [/img] |
TOMCAT problems No good estimates based JAVA_HOME |
TOMCAT problems : D |
TOMCAT problems Careful look at the error message :
[color=blue][b]No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually from the JDK $JAVA_HOME/lib/tools.jar
To the common/lib directory of the Tomcat server, followed by a restart Tomcat.
If using an alternate Java compiler, please check its installation and access path. [/b][/color] |
| |