You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Brian Preston <br...@yahoo.com> on 2004/08/31 23:53:11 UTC
java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat running Ant from Eclipse
I'm trying to get my environment set up for a project
I've been given, which included a build.xml that was
written to use Cactus with Tomcat 4. I'm working in
Eclipse 3.0. The project is developing a set of
taglibs. I've got stubs for the taglibs and have
written a simple test that extends JspTestCase to test
the tag.
I did the How-to/20 minute tutorial to get Cactus
working on Tomcat and everything worked fine.
Now I'm getting this error on the cactifywar step in
my Ant build. I've added all the cactus jars to my
project/lib directory. What jar is
org.apache.xml.serialize.OutputFormat in anyway?
I searched the archives of this list for this error
and didn't really find anything helpful.
Thanks
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
RE: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat running Ant from Eclipse
Posted by Brian Preston <br...@yahoo.com>.
Thanks for the quick reply. I added the xerces jar to
the classpath and it resolved that problem. But now
I'm stuck on the same problem described in the "RE:
Workaround for running Cactus-Ant-Task from within
Eclipse" thread :
[cactus] Couldn't find tools.jar (needed for JSP
compilation)
I have put the tools.jar in my system classpath as
well as the ant runtime classpath and that didn't
resolve it.
Brian
--- Vincent Massol <vm...@pivolis.com> wrote:
> Hi Brian,
>
> This comes from the xerces jar. We're using Xerces
> in the Ant
> <cactifywar>/<cactus> tasks, so it has to be
> somewhere in your CP.
>
> This is a good entry for the FAQ. I've added an
> entry on
>
http://wiki.apache.org/jakarta-cactus/FrequentlyAskedQuestions.
> Please check
> it and let me know if it helps.
>
> Thanks
> -Vincent
>
> > -----Original Message-----
> > From: Brian Preston [mailto:briforge@yahoo.com]
> > Sent: mardi 31 ao�t 2004 23:53
> > To: cactus-user@jakarta.apache.org
> > Subject: java.lang.NoClassDefFoundError:
> > org/apache/xml/serialize/OutputFormat running Ant
> from Eclipse
> >
> > I'm trying to get my environment set up for a
> project
> > I've been given, which included a build.xml that
> was
> > written to use Cactus with Tomcat 4. I'm working
> in
> > Eclipse 3.0. The project is developing a set of
> > taglibs. I've got stubs for the taglibs and have
> > written a simple test that extends JspTestCase to
> test
> > the tag.
> >
> > I did the How-to/20 minute tutorial to get Cactus
> > working on Tomcat and everything worked fine.
> >
> > Now I'm getting this error on the cactifywar step
> in
> > my Ant build. I've added all the cactus jars to my
> > project/lib directory. What jar is
> > org.apache.xml.serialize.OutputFormat in anyway?
> >
> > I searched the archives of this list for this
> error
> > and didn't really find anything helpful.
> >
> > Thanks
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> > http://promotions.yahoo.com/new_mail
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> cactus-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> cactus-user-help@jakarta.apache.org
>
>
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
RE: java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat running Ant from Eclipse
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Brian,
This comes from the xerces jar. We're using Xerces in the Ant
<cactifywar>/<cactus> tasks, so it has to be somewhere in your CP.
This is a good entry for the FAQ. I've added an entry on
http://wiki.apache.org/jakarta-cactus/FrequentlyAskedQuestions. Please check
it and let me know if it helps.
Thanks
-Vincent
> -----Original Message-----
> From: Brian Preston [mailto:briforge@yahoo.com]
> Sent: mardi 31 août 2004 23:53
> To: cactus-user@jakarta.apache.org
> Subject: java.lang.NoClassDefFoundError:
> org/apache/xml/serialize/OutputFormat running Ant from Eclipse
>
> I'm trying to get my environment set up for a project
> I've been given, which included a build.xml that was
> written to use Cactus with Tomcat 4. I'm working in
> Eclipse 3.0. The project is developing a set of
> taglibs. I've got stubs for the taglibs and have
> written a simple test that extends JspTestCase to test
> the tag.
>
> I did the How-to/20 minute tutorial to get Cactus
> working on Tomcat and everything worked fine.
>
> Now I'm getting this error on the cactifywar step in
> my Ant build. I've added all the cactus jars to my
> project/lib directory. What jar is
> org.apache.xml.serialize.OutputFormat in anyway?
>
> I searched the archives of this list for this error
> and didn't really find anything helpful.
>
> Thanks
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org