ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Rousse <>
Subject Various problems running ant
Date Fri, 14 Sep 2001 13:08:15 GMT
Here are various problems i had running ant. I had a look in mailing archive 
and saw the "encoding needed" problem has already been reported, but not the 
others. I'm trying to figure each time if the problem comes from ant or from 
the software. I'm running linux, and used binary ant 1.3 and 1.4 
distribution, with either IBM 1.3 or Sun 1.3.1 JDK each time.

1) crimson-1.1.2b2 build fails with ant 1.4 (works with ant 1.3)
Only the first used target works (unless usage target), all other fails with 
message "The encoding declaration is required in the text declaration." with 
xerces-j 1.4.3 and "Expected "encoding=...". with crimson (unknown version 
packaged with ant 1.4).
Also reported on xml-project general list (no crimson-dedicated list 
avaialble), with a response from Edwin Goei that reproduced this one time.

2) tomcat 3.2.3 compilation fails when jsse not in classpath
Compilations fails for unresolved dependencies in, 
altough the ant build script task take cares of excluding this class from 
compilation if jsse is not present.
<exclude name="**/"
                    unless="jsse.present" />
It seems that is the class that causes problem, that get 
always compiled unless injava 1 environment, as excluding it solves the 
<exclude name="**/" 
Also reported on tomcat-dev mailing list, with no response.
Also, building with 1.4 stops when file copy task fails to find files, where 
1.3 just continuated.

3) xalan-j2-Dx javadocs fails with Sun JDK (works with IBM)
"javadocs" target fails with this error message when using Sun JDK:
 [javadoc] javadoc: In doclet class xalanjdoc.Standard,  method optionLength 
has thrown an exception java.lang.reflect.InvocationTargetException
  [javadoc] java.lang.Error: Fatal: Resource for javadoc doclets is missing:
  [javadoc] 1 error
  [javadoc]     at<init>(
  [javadoc]     at 
  [javadoc]     at xalanjdoc.Standard.configuration(
  [javadoc]     at xalanjdoc.Standard.optionLength(
  [javadoc]     at java.lang.reflect.Method.invoke(Native Method)
  [javadoc]     at
  [javadoc]     at
  [javadoc]     at
everything is fine with IBM JDK
Also reported on xalan-dev with no response.
Guillaume Rousse <>
GPG key

View raw message