You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by adam kramer <ad...@monkey.org> on 2002/08/24 00:11:24 UTC

configuring jikes for jsp compilation

I'm trying to get ibm's jikes working for jsp compilation instead of javac
to avoid the memory leak and improve initial compilation performance.
I'm using tomcat 4.0.4 with j2sdk1.4.

I have downloaded and compiled jikes from source and placed the jikes
exectutable in /usr/bin

I have changed the $CATALINA_HOME/conf/web.xml jsp servlet config to:
  <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
      <param-name>logVerbosityLevel</param-name>
      <param-value>WARNING</param-value>
    </init-param>
    <init-param>
      <param-name>jspCompilerPlugin</param-name>
      <param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
  </servlet>

and I get this error when trying to run example/ jsp pages:

org.apache.jasper.JasperException: Unable to compile class for JSP
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/work/Standalone/blah.blah.edu/examples/jsp/include/include$jsp.java:0:0:0:0:
Error: You need to modify your classpath, sourcepath, bootclasspath,
and/or extdirs setup. Package "java/lang" could not be found in:
                /usr/local/j2sdk1.4.0_01/lib/tools.jar
                /usr/local/jakarta-tomcat-4.0.4-LE-jdk14/bin/bootstrap.jar
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/webapps/examples/WEB-INF/classes
                /usr/local/jakarta-tomcat-4.0.4-LE-jdk14/classes
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/lib/jasper-runtime.jar
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/lib/jasper-compiler.jar
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/lib/naming-factory.jar
                /usr/local/jakarta-tomcat-4.0.4-LE-jdk14/common/classes
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/common/lib/naming-common.jar
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/common/lib/servlet.jar
/usr/local/jakarta-tomcat-4.0.4-LE-jdk14/common/lib/naming-resources.jar
                .


Should I be setting a classpath in the web.xml file? There is no example
of how to do this so I wasn't sure of syntax. examples = good.

Thanks,
Adam Kramer



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>