Classpath with ant has always been sticky. This is what I compiled from the docs.
<property environment="env" /> <property name="tomcat.home" value="${env.CATALINA_HOME}" /> <property name="webapp.path" value="WebRoot" /> <import file="${tomcat.home}/bin/catalina-tasks.xml" /> <target name="jspc"> <jasper validateXml="false" uriroot="${webapp.path}" webXmlFragment="${ webapp.path}/WEB-INF/generated_web.xml" outputDir="${webapp.path}/WEB-INF/src" /> <mkdir dir="${webapp.path}/WEB-INF/classes" /> <mkdir dir="${webapp.path}/WEB-INF/lib" /> <javac destdir="${webapp.path}/WEB-INF/classes" optimize="off" source="1.5" target="1.5" debug="on" failonerror="false" srcdir="${webapp.path}/WEB-INF/src" excludes="**/*.smap"> <classpath> <pathelement location="${webapp.path}/WEB-INF/classes" /> <path refid="mobchannelWEB.classpath" /> <fileset dir="${webapp.path}/WEB-INF/lib"> <include name="*.jar" /> </fileset> <pathelement location="${tomcat.home}/lib" /> <fileset dir="${tomcat.home}/bin"> <include name="*.jar" /> </fileset> </classpath> <include name="**" /> <exclude name="tags/**" /> </javac> </target> My CATALINA_HOME enviroment variable points correctly . I had done an echo ${CATALINA_HOME} and it worked. I had been trying on the same script for so long. On 10/11/07, Pid <[EMAIL PROTECTED]> wrote: > > Arun wrote: > > Filip, > > > > That works cool. > > Thank you for the reply. > > > > I do not know why the one specified in tomcat docs does not work. All I > know > > is that it throws an error telling me that it cant find > > org.apache.jasper.runtime package. But that is there in the lib > directory of > > tomcat's home in jasper.jar. All I know is that the ant script is not > > picking up my jasper.jar. I have correctly included the > > catalina-tasks.xmlas well. > > It does work, you just need to adjust the path to a Tomcat6 applicable > one. See my previous mail. > > > I compared with yours , all I found is that the one in doc uses a > default > > jasper task, And you used your own(jasper2). But the Jasper shown on > tomcat > > docs works correctly though , but the javac fails. > > > > > > > > > > > > > > > > On 10/11/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > >> here is a script that precompiles just like Tomcat runtime, meaning, > you > >> still keep the ability to reload your JSPs instead of converting them > to > >> servlets > >> http://people.apache.org/~fhanik/tomcat-6-precompile.xml > >> > >> Filip > >> > >> Arun wrote: > >>> Hi, > >>> > >>> I want to precompile jsps for apache tomcat 6. Which ant task should i > >> use . > >>> Is there a simple example for that. > >>> I am using a build.xml exported from MyEclipse. Where would the JSP > >> classes > >>> go in WEB-INF/classes. What structure does it have. > >>> > >>> > >>> > >>> > ------------------------------------------------------------------------ > >>> > >>> No virus found in this incoming message. > >>> Checked by AVG Free Edition. > >>> Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: > >> 10/10/2007 5:11 PM > >> > >> --------------------------------------------------------------------- > >> 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] > > -- Thanks Arun George