Tomcat/Jsp Configuration Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rekha Ramkumar
    New Member
    • Oct 2007
    • 1

    #1

    Tomcat/Jsp Configuration Problem

    I hv created one simple jsp page in root folder under C:\Tomcat 5.0\webapps\ROO T
    as follows .....
    <html>
    <body>
    Hello World.
    </body>
    </html>

    I hAVE SET THE classpATHbut whenever i am trying to run ("http://localhost:8080/hw.jsp") the same page using IE6
    it is showing "HTTP-Status 500" and the root cause as following.....
    root cause
    Unable to find a javac compiler;
    com.sun.tools.j avac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    org.apache.tool s.ant.taskdefs. compilers.Compi lerAdapterFacto ry.getCompiler( CompilerAdapter Factory.java:10 5)
    org.apache.tool s.ant.taskdefs. Javac.compile(J avac.java:929)
    org.apache.tool s.ant.taskdefs. Javac.execute(J avac.java:758)
    org.apache.jasp er.compiler.Com piler.generateC lass(Compiler.j ava:407)
    org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:49 7)
    org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:47 6)
    org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:46 4)
    org.apache.jasp er.JspCompilati onContext.compi le(JspCompilati onContext.java: 511)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 295)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:292)
    org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :236)
    javax.servlet.h ttp.HttpServlet .service(Htt
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Rekha Ramkumar
    I hv created one simple jsp page in root folder under C:\Tomcat 5.0\webapps\ROO T
    as follows .....
    <html>
    <body>
    Hello World.
    </body>
    </html>

    I hAVE SET THE classpATHbut whenever i am trying to run ("http://localhost:8080/hw.jsp") the same page using IE6
    it is showing "HTTP-Status 500" and the root cause as following.....
    root cause
    Unable to find a javac compiler;
    com.sun.tools.j avac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    org.apache.tool s.ant.taskdefs. compilers.Compi lerAdapterFacto ry.getCompiler( CompilerAdapter Factory.java:10 5)
    org.apache.tool s.ant.taskdefs. Javac.compile(J avac.java:929)
    org.apache.tool s.ant.taskdefs. Javac.execute(J avac.java:758)
    org.apache.jasp er.compiler.Com piler.generateC lass(Compiler.j ava:407)
    org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:49 7)
    org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:47 6)
    org.apache.jasp er.compiler.Com piler.compile(C ompiler.java:46 4)
    org.apache.jasp er.JspCompilati onContext.compi le(JspCompilati onContext.java: 511)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 295)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:292)
    org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :236)
    javax.servlet.h ttp.HttpServlet .service(Htt
    Read the exception trace for the root cause.

    Comment

    • gsreenathreddy
      New Member
      • Oct 2007
      • 40

      #3
      set the classpath of java directory as set classpath of tomcat

      eg: D:\Tomcat 5.5\common\lib\ servlet-api.jar

      Comment

      Working...