Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to compile class for JSP - URGENT!

Status
Not open for further replies.

mcowan

Programmer
Feb 17, 2003
1
AU
PLEASE HELP!

I'm running Tomcat 4.1.18 on a linux server with j2sdk1.4.1_01. I am unable to access the "admin" area and certain other JSPs - I can access the login page but when I submit a username and passwd I get a 500 Internel server error which says:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
<SNIP!>

The catalina.out says:

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
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCom
piler(CompilerAdapterFactory.java:139)<SNIP!>

I have checked and the JAVA_HOME is set (correctly) to /usr/local/j2sdk AND the PATH contains /usr/local/j2sdk/bin for the user which is running tomcat.

Is a child process being spawned which doesn't inherit these environment settings or is it a misconfig?!?

ANY help would be greatly appreciated!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top