Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Tomcat problem

Would you a question :
The case : In the past, all normal operating procedures java (Path to C:\j2sdk1.4.2), I would now like to learn jsp jakarta-tomcat-5.0.28 installed. (Original environment j2sdk1.4.2 jdk), I used all the normal tests http://localhost:8080 site. But using the example of a book :

"%Page contentType=" text/html;charset=GB2312 "%>;
"%Page import=" java.util.* "%>;
"Html>;
"Body>;
"P>;now is
"Date=new% Date Date ();
        %>;
"Br>;
"%=date%>;
"/body>;
"/html>;

Example.jsp preservation of the document (D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT) catalog in a browser Lane importation http://localhost : 8080/Example.jsp trails are wrong message.

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
Org.apache.jasper.compiler.DefaultErrorHandler.javacError (DefaultErrorHandler.java:97)
Org.apache.jasper.compiler.ErrorDispatcher.javacError (ErrorDispatcher.java:346)
Org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:414)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:472)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:451)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:439)
Org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:511)
Org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:295)
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:802)

Root cause

Unable to find a javac compiler;
Com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:106)
Org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:935)
Org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:764)
Org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:382)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:472)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:451)
Org.apache.jasper.compiler.Compiler.compile (Compiler.java:439)
Org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:511)
Org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:295)
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:802)

Note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

/////////////////////
Would you, where is the problem

Tomcat problem

Thank you, my question has been resolved, I have found the answer to the other forums. The solution is :

1986-1991 Judge jdk roots catalog to catalog all the documents are copies of the catalog common\lib tomcat on a trial under normal! ! Remember : duplicating documents to restart tomcat

Problems in the version of the TOMCAT wrong, incomplete documentation packages, as long as you document packages JDK category under the complicated system of TOMCAT LIB catalog alone.
Encountered this issue and hope that we can resolve this.

Tomcat problem

As long as it can be a complex system Tools.jar.

Unable to find a javac compiler;
Com.sun.tools.javac.Main is not on the classpath

JAVA_HOME no bars.

Tomcat problem

As long as it can be a complex system Tools.jar.

Unable to find a javac compiler;
Com.sun.tools.javac.Main is not on the classpath

JAVA_HOME no bars.

JAVA_HOME installed, there is a problem, however, solve the problem is a good thing. Thank you advise a friend upstairs.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com