Opps, I actually had:
... lib/tools/jar::
Fixed to:
java.class.path=/opt/OCIEsys/tomcat/DEV_04_07/bin/java/lib/tools.jar:/ocie/t
ests/OCIEsys/tomcat/DEV_04_07/bin/bootstrap.jar:/ocie/tests/OCIEsys/tomcat/D
EV_04_07/bin/commons-logging-api.jar
Even with this fix, neither of the values below worked.
<init-param>
<param-name>compiler</param-name>
<param-value>com.sun.tools.javac.main.Main</param-value>
</init-param>
<init-param>
<param-name>compiler</param-name>
<param-value>com.sun.tools.javac.main.JavaCompiler</param-value>
</init-param>
I wonder if it just doesn't work. Before these tests, I removed the
jasper-jdt.jar file (it has only eclipse files in it). If I put that file
back in place, the jsp compilation works, regardless of what that param is:
<init-param>
<param-name>compiler</param-name>
<param-value>com.sun.tools.javac.main.Mark</param-value>
</init-param>
Here is the whole section:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>compiler</param-name>
<param-value>com.sun.tools.javac.main.Mark</param-value>
</init-param>
<init-param>
<param-name>fork</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
-----Original Message-----
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Friday, June 08, 2007 2:16 PM
To: Tomcat Users List
Subject: RE: Using Javac instead of JDT to compile JSPs
> From: Mark Claassen [mailto:[EMAIL PROTECTED]
> Subject: RE: Using Javac instead of JDT to compile JSPs
>
> <param-value>com.sun.tools.javac.main.JavaCompiler</param-value>
That appears to be the wrong class. Try just com.sun.tools.javac.Main
instead (note capitalization).
> One of my servlets prints out the classpath, and it shows :
> java.class.path=/opt/OCIEsys/tomcat/DEV_04_07/bin/java/lib/tools/jar::
I don't know what effect the double-colon might have, but it certainly
wouldn't hurt to correct that.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected] To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]