tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam kramer <a...@monkey.org>
Subject configuring jikes for jsp compilation
Date Fri, 23 Aug 2002 22:11:24 GMT

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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message