ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Why does this ant script fail?
Date Thu, 11 Mar 2004 07:11:16 GMT
Try in -verbose mode. I canĀ“t see any mistake here.
But java.lang.ExceptionInInitializerError sounds that something
inside <jspc> is wrong. But that would be question on Tomcat.

Jan


> -----Original Message-----
> From: Andy Fyfe [mailto:afyfe@bigtribe.com]
> Sent: Wednesday, March 10, 2004 11:03 PM
> To: Ant Users List
> Subject: Why does this ant script fail?
> 
> 
> Here's the script:
> 
> <?xml version="1.0"?>
> <project name="jasper problem" default="jasper">
>      <property name="tomcat" location="jakarta-tomcat-5.0.19"/>
>      <property name="tomcat.bin" location="${tomcat}/bin"/>
>      <property name="tomcat.lib" location="${tomcat}/common/lib"/>
>      <path id="jasper.path">
>          <fileset dir="${tomcat.lib}">
>              <include name="*.jar"/>
>          </fileset>
>          <fileset dir="${tomcat.bin}">
>              <include name="*.jar"/>
>          </fileset>
>      </path>
>      <target name="jasper">
>          <taskdef classname="org.apache.jasper.JspC" name="jasper2">
>              <classpath refid="jasper.path"/>
>          </taskdef>
>          <jasper2 uriroot="war" outputDir="build" />
>          <taskdef classname="org.apache.jasper.JspC" 
> name="jasper2again">
>              <classpath refid="jasper.path"/>
>          </taskdef>
>      </target>
> </project>
> 
> The only other file is war/index.jsp (so jasper has something to do):
> 
> <%@ page language="java" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD 
> HTML 4.01 
> Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>Index Page</title>
> </head>
> <body>
> <P>Content free...
> </body>
> </html>
> 
> When run (ant 1.6.1, and tomcat 5.0.19) I get:
> 
> Buildfile: build.xml
> 
> jasper:
> 
> BUILD FAILED
> java.lang.ExceptionInInitializerError
> 
> Total time: 3 seconds
> 
> This example is a much simpler example of a problem I've been having.
> In the real code, a master build file calls a pair of other build 
> files, each
> of which attempts to define and use a jasper task.  The 
> second <taskdef>
> fails as above.  Same problem on both solaris and mac osx.
> 
> --Andy Fyfe
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message