Aparently, it is not a xerces problem, but a java machine problem that just
manifested itself today.
I got it fixed (and I am still investigating...) by typing:

ulimit -s 2048

before running ant in the bash shell (on deadrat 7.0). It appers it has
something to do with the default stack size (whatever THAT is) and by
reducing it, all is well. I guess it just manifested today because ant is
loading more stuff than before, on account of the new jars added to ant/lib.

If I find out anything else, I will let everyone now.

Ylan.

> -----Original Message-----
> From: Ylan Segal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 1:52 PM
> To: [EMAIL PROTECTED]
> Subject: Segmentation fault xerces.jar
>
>
> 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>(TransformerImp
> l.java:237
> )
>         at
> org.apache.xalan.templates.StylesheetRoot.newTransformer(Styleshee
> tRoot.java
> :175)
>         at
> org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(T
> ransformer
> FactoryImpl.ja
> va:758)
>         at
> org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execut
> e(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.e
> xecute(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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to