ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ylan Segal" <y...@digiworks.tv>
Subject Segmentation fault xerces.jar
Date Thu, 31 Jan 2002 19:52:02 GMT
I have sucesfully used the junitreport task in my windoze box, by adding
this jars to the ant/lib directory (I am using ant 1.4.1)
* jakarta-ant-1.4-optional.jar
* xalan.jar
* xerces.jar

Now, I also use a linux box and this is where I have a problem. I have the
same setup and use the same build files as in the winblows box. Everything
has always worked until now.

The problem is that if I copy xerces.jar to the ant/lib directory (in the
linux box) I no longer can run ant, because of a segmentation error:

=======
[ylan@pinguino Master]$ ant -projecthelp
Buildfile: build.xml
/usr/local/ant/bin/ant: line 134:  3438 Segmentation fault
     $JAVACMD -classpath "$LOCALCLASSPATH"
 -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"
==============

If I remove xerces.jar, ant starts working again, but of course, junitreport
fails, as it can't find a class:

======
[snip]
[junitreport] Using Xalan version: Xalan Java 2.2.0

BUILD FAILED

java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at org.apache.xml.utils.ObjectPool.<init>(ObjectPool.java:100)
        at
org.apache.xalan.transformer.TransformerImpl.<init>(TransformerImpl.java:237
)
        at
org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java
:175)
        at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.ja
va:758)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(Aggregat
eTransformer.j
ava:316)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTrans
former.java:190)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregat
or.java:170)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 16 seconds
org/w3c/dom/traversal/NodeIterator
======

I read in the archives somewhere that the java version had something to do
with it, but I have already have tried two different versions j2sdk 1.3.1
and 1.3.1_02.

Any help would be greatly appreciated.

Ylan Segal.



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message