CORRECTION: In step 5, I mean <servlet-mapping> and NOT <servlet-name>.
-----Original Message----- From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 4:41 PM To: Tomcat Users List Subject: RE: Using Javac instead of JDT to compile JSPs I have been successfully using something other than Jasper in my development enviroment. This is what I did: 1) Remove jasper-compiler-jdt.jar from <CATALINA_HOME>/common/lib 2) Add <JDK_HOME>/lib/tools.jar in <CATALINA_HOME>/common/lib 3) Add ant.jar also to <CATALINA_HOME>/common/lib. The ant.jat that was compatible with Tomcat5.5.23 was apache-ant-1.6/lib/ant.jar 4) Make sure the application specific web.xml does NOT have any <servlet> and <servlet-name> MAPPINGS for the JSPs that need to be compiled on the fly. If these mappings exist, Tomcat 5.5.23 tries to look for precompiled classes. 5) In my <CATALINA_HOME>/conf/web.xml which is the global web.xml, I have the following to enable compilation. <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>compilerTargetVM</param-name> <param-value>1.5</param-value> </init-param> <init-param> <param-name>compilerSourceVM</param-name> <param-value>1.5</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet> Hope that helps Lakshmi -----Original Message----- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 9:29 AM To: 'Tomcat Users List' Subject: Using Javac instead of JDT to compile JSPs Has anyone tried to get the jasper compiler to be something other than the JDT? I tried several things, each of them not working. The docs say an alternative compiler can be specified, but makes no mention of how to specify it. This seems to be controlled by settings in the web.xml. Below is a part of my web.xml from my latest try (which failed). Thanks, Mark web.xml section --------------- <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>compiler</param-name> <param-value>com.sun.tools.javac.main.JavaCompiler</param-value> </init-param> <init-param> <param-name>fork</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>xpoweredBy</param-name> <param-value>false</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet> --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]