You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Werner Punz <we...@gmx.at> on 2005/07/21 12:13:34 UTC

tomcat 5.5.9 jdk 1.5 howto

The howto on the website is slightly wrong
here is the exact howto

first of all remove all jikes related jars from the tomcat lib dir,
second add tools.jar from the jdk to the tomcat classpath
third add ant.jar from an ant installation to the classpath
fourth replace the servlet entry from the conf/web.xml
with following:

  <servlet>
     	
         <servlet-name>jsp</servlet-name>
         <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
         <init-param>
             <param-name>fork</param-name>
             <param-value>false</param-value>
         </init-param>
         <init-param>
             <param-name>xpoweredBy</param-name>
             <param-value>false</param-value>	
         </init-param>
	<init-param>
	     <param-name>compiler</param-name>
	     <param-value>javac1.5</param-value>
	</init-param>
	<init-param>
	     <param-name>compilerSourceVM</param-name>
	     <param-value>1.5</param-value>
	</init-param>
	<init-param>
             <param-name>compilerTargetVM</param-name>
             <param-value>1.5</param-value>	
         </init-param>

         <load-on-startup>3</load-on-startup>
     </servlet>

and now startup tomcat with a working jdk 1.5 and pages should compile

also see http://marc.theaimsgroup.com/?l=tomcat-user&m=111660999324714&w=2


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org