You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Cheesman <jc...@msl.es> on 2001/07/23 12:11:32 UTC

Using Jikes for JSPs with Tomcat 4.0

With Tomcat 3.2 I've been using the following in my web.xml, which works fine:
   <servlet>
     <servlet-name>jsp</servlet-name>
     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
     <init-param>
         <param-name>jspCompilerPlugin</param-name>
         <param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
     </init-param>
     <init-param>
         <param-name>jspCompilerPath</param-name>
         <param-value>e:\jdk1.3\bin\jikes.exe</param-value>
     </init-param>
     <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
     <servlet-name>jsp</servlet-name>
     <url-pattern>*.jsp</url-pattern>
   </servlet-mapping>


With tomcat 4 I get an error on start up...

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b6
ERROR reading java.io.FileInputStream@228a02
At Line 60 /web-app/servlet/

... where line 60 is the </servlet> tag.


How should I be (can I) set this up?



--

                           *   Jim Cheesman   *
             Trabajo: 
jchees@msl.es - (34)(91) 724 9200 x 2360
              Always be on the 
lookout for conspicuousness.



Re: Using Jikes for JSPs with Tomcat 4.0

Posted by Glenn Nielsen <gl...@voyager.apg.more.net>.
Tomcat 4 requires that the web.xml be valid, Tomcat 3.2 did not.
Check your web.xml file to make sure it is valid by the DTD.

Glenn

Jim Cheesman wrote:
> 
> With Tomcat 3.2 I've been using the following in my web.xml, which works fine:
>    <servlet>
>      <servlet-name>jsp</servlet-name>
>      <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
>      <init-param>
>          <param-name>jspCompilerPlugin</param-name>
>          <param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
>      </init-param>
>      <init-param>
>          <param-name>jspCompilerPath</param-name>
>          <param-value>e:\jdk1.3\bin\jikes.exe</param-value>
>      </init-param>
>      <load-on-startup>1</load-on-startup>
>    </servlet>
>    <servlet-mapping>
>      <servlet-name>jsp</servlet-name>
>      <url-pattern>*.jsp</url-pattern>
>    </servlet-mapping>
> 
> With tomcat 4 I get an error on start up...
> 
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0-b6
> ERROR reading java.io.FileInputStream@228a02
> At Line 60 /web-app/servlet/
> 
> ... where line 60 is the </servlet> tag.
> 
> How should I be (can I) set this up?
> 
> --
> 
>                            *   Jim Cheesman   *
>              Trabajo:
> jchees@msl.es - (34)(91) 724 9200 x 2360
>               Always be on the
> lookout for conspicuousness.

-- 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------