tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernhard Slominski <bernhard.slomin...@zooplus.com>
Subject AW: Jsp Pre-compilation
Date Thu, 30 Jun 2005 13:17:51 GMT
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


Mime
View raw message