This is most likely caused by a conflict between what's bundled with Ant and
what's on your classpath and/or properties file. I hit this recently too. I
resolved it by removing the original jaxp.jar and parser.jar from
%ANT_HOME%\lib and copying in jaxp.jar, xalan.jar and crimson.jar from JAXP
1.1 instead.

--
Martin Cooper


----- Original Message -----
From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 1:59 PM
Subject: compiling struts 1.0 src - java.lang.NoClassDefFoundError:
javax/xml/transform/Source


> I'm trying to compile the 1.0 version of struts and getting the error
below:
>
> I have xerces.jar (1.4.0) in my build.properties, file, but it doesn't
even
> seem to be using it for my classpath.  Also, the NoClassDefFoundError
seems to
> be in my xalan.jar (2.1.0).
>
> My ant version is 1.3 - should I be using a different version of xerces?
>
> Thanks,
>
> Matt
>
> e:\development\jakarta-struts-1.0-src\build.xml:188:
> java.lang.NoClassDefFoundError: javax/xml/transform/Source
> --- Nested Exception ---
> java.lang.NoClassDefFoundError: javax/xml/transform/Source
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:124)
>         at
>
org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java:229)
>         at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java,
> Compiled Code)
>         at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
>         at org.apache.tools.ant.Project.runTarget(Project.java:898)
>         at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled
> Code)
>         at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled
> Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:149)
>
> Total time: 2 seconds
> /cygdrive/e/development/jakarta-struts-1.0-src/>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com


Reply via email to