You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nils Liebelt <ni...@candor.co.za> on 2005/07/04 10:40:27 UTC
RE: Jsp Pre-compilation
Yeboo,
The pathes needed to be absolute. Thanks for the help. Sorry for the late
reply.
Gruss
Nils
mtgglf
-----Original Message-----
From: Bernhard Slominski [mailto:bernhard.slominski@zooplus.com]
Sent: Thursday, June 30, 2005 3:18 PM
To: 'Tomcat Users List'
Subject: AW: Jsp Pre-compilation
Hi Nils,
two things:
1. I would use an absolute path instead of the realitive one "./hummingbird"
I guess jasper just can't pick up your jsps!
2. outputDir: You set it to "WEB-INF/classes" but what you create are
actually java source files, so this is not right, even tohough it doesn't
explain the failure of the precompliation
Good luck
Bernhard
> -----Ursprüngliche Nachricht-----
> Von: Nils Liebelt [mailto:nils@candor.co.za]
> Gesendet: Donnerstag, 30. Juni 2005 15:09
> An: tomcat-user@jakarta.apache.org
> Cc: mike@candor.com
> Betreff: Jsp Pre-compilation
>
>
> Hi all,
>
> I have trouble pre-compiling my jsp-pages. I wrote following
> ant target:
>
> <target name="jspc" depends="build">
> <taskdef classname="org.apache.jasper.JspC" name="jasper2">
> <classpath id="jspc.classpath">
> <fileset dir="${tomcat.home}/bin">
> <include name="*.jar"/>
> </fileset>
> <fileset dir="${tomcat.home}/server/lib">
> <include name="*.jar"/>
> </fileset>
> <fileset dir="${tomcat.home}/common/lib">
> <include name="*.jar"/>
> </fileset>
> </classpath>
> </taskdef>
> <jasper2 validateXml="false"
> compile="true"
> verbose="99"
> listErrors="true"
> uriroot="./hummingbird"
>
> webXmlFragment="./hummingbird/WEB-INF/generated_web.xml"
> outputDir="./hummingbird/WEB-INF/classes" />
> </target>
>
> The task executes successful but it does not create a single
> java file nor
> its outputs anything? I want execute the task out of my
> project src folder.
> The libraries should be at the right place. I am really stuck here...
>
>
> Regards,
>
> Nils
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org