You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jakob Lemler <Ja...@t-online.de> on 2001/12/11 00:38:22 UTC

Jikes Config and Tomcat 4.0

Hi all,

tried to install Jikes 1.15 and Tomcat 4.0.1 with jdk 1.3.1_01.

Problem: When Tomcat starts Jikes to compile a jsp, it did not find the
java classes (java.lang, java.util ...).
Instead it searches only some Tomcat directories.
An external declared classpath variable did not help either.

Here a quote of my web.xml file in $CATALINA_HOME$\conf:

  <!-- If you wish to use Jikes to compile JSP pages:
-->
  <!-- * Set the "classpath" initialization parameter appropriately
-->
  <!--   for this web application.
-->
  <!-- * Set the "jspCompilerPlugin" initialization parameter to
-->
  <!--   "org.apache.jasper.compiler.JikesJavaCompiler".
-->

  <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
      <param-name>logVerbosityLevel</param-name>
      <param-value>INFORMATION</param-value>
    </init-param>
    <init-param>
      <param-name>classpath</param-name>
      <param-value>c:\jdk\jre\lib\rt.jar;.</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>

What´s wrong? Hope this is not a faq... ;-)

Bye and thanks in advance
Jakob


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Jikes Config and Tomcat 4.0

Posted by Jack Lauman <jl...@nwcascades.com>.
I asked the same question about 2 weeks ago and never got a response.
The docs in web.xml are pretty vague, maybe a commented out example
could be added the distributions web.xml to reduce the confusion.

Regards,

Jack

Jakob Lemler wrote:
> 
> Hi all,
> 
> tried to install Jikes 1.15 and Tomcat 4.0.1 with jdk 1.3.1_01.
> 
> Problem: When Tomcat starts Jikes to compile a jsp, it did not find the
> java classes (java.lang, java.util ...).
> Instead it searches only some Tomcat directories.
> An external declared classpath variable did not help either.
> 
> Here a quote of my web.xml file in $CATALINA_HOME$\conf:
> 
>   <!-- If you wish to use Jikes to compile JSP pages:
> -->
>   <!-- * Set the "classpath" initialization parameter appropriately
> -->
>   <!--   for this web application.
> -->
>   <!-- * Set the "jspCompilerPlugin" initialization parameter to
> -->
>   <!--   "org.apache.jasper.compiler.JikesJavaCompiler".
> -->
> 
>   <servlet>
>     <servlet-name>jsp</servlet-name>
>     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
>     <init-param>
>       <param-name>logVerbosityLevel</param-name>
>       <param-value>INFORMATION</param-value>
>     </init-param>
>     <init-param>
>       <param-name>classpath</param-name>
>       <param-value>c:\jdk\jre\lib\rt.jar;.</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>
> 
> What´s wrong? Hope this is not a faq... ;-)
> 
> Bye and thanks in advance
> Jakob
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>