java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

View: New views
5 Messages — Rating Filter:   Alert me  

java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

by MIYACHI Yasuhiko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


 Hi!

 Tracker of forge.objectweb.org seems not to use it.
 So, I contribute this patch to this Mailing List directly.

 In my environment, Barracuda2(Subversion version) will generate the following errors.

 URL: http://localhost:8080/Barracuda2/GetLoginScreen.event
 exception: javax.servlet.ServletException: Servlet execution threw an exception
 root cause: java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

 This reason is because xercesImpl-*.jar is not copied to WEB-INF/lib.

 This pacth can solve this problem.

-------------------------------------------------------------------------------

*** build.xml.ORIG      2007-05-21 10:11:43.000000000 +0900
--- build.xml   2007-06-27 10:05:29.890040103 +0900
***************
*** 193,199 ****

          <!-- copy jars from jars to lib -->
          <copy todir="${build.lib.dir}" >
!             <fileset dir="${build.jar.dir}" includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar" excludes="xmlc-taskdef*.jar"/>
          </copy>

          <!-- copy dtds into the xlib resources directory -->
--- 193,199 ----

          <!-- copy jars from jars to lib -->
          <copy todir="${build.lib.dir}" >
!             <fileset dir="${build.jar.dir}" includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar,xercesImpl*.jar" excludes="xmlc-taskdef*.jar"/>
          </copy>

          <!-- copy dtds into the xlib resources directory -->

-------------------------------------------------------------------------------

 Thank you.




--

Barracuda mailing list

Barracuda@...

http://www.objectweb.org/wws/lists/projects/barracuda


Re: java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

by Franck Routier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

First of all, thanks for your input.

The problem with xerces is that it is a quite ubiquitous library...
So I think barracuda.war take for granted that xerces will be available
at a broader level in the servlet environment (in Tomcat common libs, or
even in jdk endorsed libs, or somewhere...)

But I also had to add xercesImpl in my build.xml, so I must admit this
might be a problem.

Maybe Jake would like to comment on this ?

Franck

Le mercredi 27 juin 2007 à 10:29 +0900, MIYACHI Yasuhiko a écrit :

> Hi!
>
>  Tracker of forge.objectweb.org seems not to use it.
>  So, I contribute this patch to this Mailing List directly.
>
>  In my environment, Barracuda2(Subversion version) will generate the following errors.
>
>  URL: http://localhost:8080/Barracuda2/GetLoginScreen.event
>  exception: javax.servlet.ServletException: Servlet execution threw an exception
>  root cause: java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl
>
>  This reason is because xercesImpl-*.jar is not copied to WEB-INF/lib.
>
>  This pacth can solve this problem.
>
> -------------------------------------------------------------------------------
>
> *** build.xml.ORIG      2007-05-21 10:11:43.000000000 +0900
> --- build.xml   2007-06-27 10:05:29.890040103 +0900
> ***************
> *** 193,199 ****
>
>           <!-- copy jars from jars to lib -->
>           <copy todir="${build.lib.dir}" >
> !             <fileset dir="${build.jar.dir}" includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar" excludes="xmlc-taskdef*.jar"/>
>           </copy>
>
>           <!-- copy dtds into the xlib resources directory -->
> --- 193,199 ----
>
>           <!-- copy jars from jars to lib -->
>           <copy todir="${build.lib.dir}" >
> !             <fileset dir="${build.jar.dir}" includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar,xercesImpl*.jar" excludes="xmlc-taskdef*.jar"/>
>           </copy>
>
>           <!-- copy dtds into the xlib resources directory -->
>
> -------------------------------------------------------------------------------
>
>  Thank you.
>
> pièce jointe document plein texte (message-footer.txt)
>
> --
>
> Barracuda mailing list
>
> Barracuda@...
>
> http://www.objectweb.org/wws/lists/projects/barracuda
>





--

Barracuda mailing list

Barracuda@...

http://www.objectweb.org/wws/lists/projects/barracuda


Re: java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

by Jacob Kjome :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Franck is right.  If you want to add XercesImpl.jar to your own application,
that's fine.  But we won't be changing Barracuda's build to do it.  Why?  Ant
ships with XercesImpl.jar and xml-apis.jar in ANT_HOME/lib (you should
overwrite these with newer versions).  For a long time, Tomcat shipped with
it.  It and xml-apis.jar are global libraries.  JDK1.4+ ships with older
versions of xml-apis and JDK1.5 ships with a modified version of Xerces,
packaged in the com.sun.xerces namespace.  For a deployment system, such as
Tomcat, you should put xercesImpl.jar (2.9.0+) and xml-apis.jar (1.3.04+) in
an endorsed directory.  This can be either Tomcat's (or other appserver's)
endorsed directory or the JDK's own endorsed directory.  If you don't, you
risk an older version of xercesImpl.jar already in an endorsed directory
overriding the version in your WEB-INF/lib directory.


Jake

On Wed, 27 Jun 2007 10:01:29 +0200
  Franck Routier <franck.routier@...> wrote:

> Hi,
>
>First of all, thanks for your input.
>
> The problem with xerces is that it is a quite ubiquitous library...
> So I think barracuda.war take for granted that xerces will be available
> at a broader level in the servlet environment (in Tomcat common libs, or
> even in jdk endorsed libs, or somewhere...)
>
> But I also had to add xercesImpl in my build.xml, so I must admit this
> might be a problem.
>
> Maybe Jake would like to comment on this ?
>
>Franck
>
> Le mercredi 27 juin 2007 à 10:29 +0900, MIYACHI Yasuhiko a écrit :
>> Hi!
>>
>>  Tracker of forge.objectweb.org seems not to use it.
>>  So, I contribute this patch to this Mailing List directly.
>>
>>  In my environment, Barracuda2(Subversion version) will generate the
>>following errors.
>>
>>  URL: http://localhost:8080/Barracuda2/GetLoginScreen.event
>>  exception: javax.servlet.ServletException: Servlet execution threw an
>>exception
>>  root cause: java.lang.NoClassDefFoundError:
>>org/apache/xerces/dom/ElementImpl
>>
>>  This reason is because xercesImpl-*.jar is not copied to WEB-INF/lib.
>>
>>  This pacth can solve this problem.
>>
>> -------------------------------------------------------------------------------
>>
>> *** build.xml.ORIG      2007-05-21 10:11:43.000000000 +0900
>> --- build.xml   2007-06-27 10:05:29.890040103 +0900
>> ***************
>> *** 193,199 ****
>>
>>           <!-- copy jars from jars to lib -->
>>           <copy todir="${build.lib.dir}" >
>> !             <fileset dir="${build.jar.dir}"
>>includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar"
>>excludes="xmlc-taskdef*.jar"/>
>>           </copy>
>>
>>           <!-- copy dtds into the xlib resources directory -->
>> --- 193,199 ----
>>
>>           <!-- copy jars from jars to lib -->
>>           <copy todir="${build.lib.dir}" >
>> !             <fileset dir="${build.jar.dir}"
>>includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar,xercesImpl*.jar"
>>excludes="xmlc-taskdef*.jar"/>
>>           </copy>
>>
>>           <!-- copy dtds into the xlib resources directory -->
>>
>> -------------------------------------------------------------------------------
>>
>>  Thank you.
>>
>> pièce jointe document plein texte (message-footer.txt)
>>
>> --
>>
>> Barracuda mailing list
>>
>> Barracuda@...
>>
>> http://www.objectweb.org/wws/lists/projects/barracuda
>>
>
>
>
 




--

Barracuda mailing list

Barracuda@...

http://www.objectweb.org/wws/lists/projects/barracuda


Re: java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

by Franck Routier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

well, I think I should put this into the 'Getting started' doc section,
as xercesImpl.jar and xml-apis.jar are not mentionned here...
By the way, I will also try to update dependencies version all around...

Franck


Le jeudi 28 juin 2007 à 12:39 -0500, Jacob Kjome a écrit :

> Franck is right.  If you want to add XercesImpl.jar to your own application,
> that's fine.  But we won't be changing Barracuda's build to do it.  Why?  Ant
> ships with XercesImpl.jar and xml-apis.jar in ANT_HOME/lib (you should
> overwrite these with newer versions).  For a long time, Tomcat shipped with
> it.  It and xml-apis.jar are global libraries.  JDK1.4+ ships with older
> versions of xml-apis and JDK1.5 ships with a modified version of Xerces,
> packaged in the com.sun.xerces namespace.  For a deployment system, such as
> Tomcat, you should put xercesImpl.jar (2.9.0+) and xml-apis.jar (1.3.04+) in
> an endorsed directory.  This can be either Tomcat's (or other appserver's)
> endorsed directory or the JDK's own endorsed directory.  If you don't, you
> risk an older version of xercesImpl.jar already in an endorsed directory
> overriding the version in your WEB-INF/lib directory.
>
>
> Jake
>
> On Wed, 27 Jun 2007 10:01:29 +0200
>   Franck Routier <franck.routier@...> wrote:
> > Hi,
> >
> >First of all, thanks for your input.
> >
> > The problem with xerces is that it is a quite ubiquitous library...
> > So I think barracuda.war take for granted that xerces will be available
> > at a broader level in the servlet environment (in Tomcat common libs, or
> > even in jdk endorsed libs, or somewhere...)
> >
> > But I also had to add xercesImpl in my build.xml, so I must admit this
> > might be a problem.
> >
> > Maybe Jake would like to comment on this ?
> >
> >Franck
> >
> > Le mercredi 27 juin 2007 à 10:29 +0900, MIYACHI Yasuhiko a écrit :
> >> Hi!
> >>
> >>  Tracker of forge.objectweb.org seems not to use it.
> >>  So, I contribute this patch to this Mailing List directly.
> >>
> >>  In my environment, Barracuda2(Subversion version) will generate the
> >>following errors.
> >>
> >>  URL: http://localhost:8080/Barracuda2/GetLoginScreen.event
> >>  exception: javax.servlet.ServletException: Servlet execution threw an
> >>exception
> >>  root cause: java.lang.NoClassDefFoundError:
> >>org/apache/xerces/dom/ElementImpl
> >>
> >>  This reason is because xercesImpl-*.jar is not copied to WEB-INF/lib.
> >>
> >>  This pacth can solve this problem.
> >>
> >> -------------------------------------------------------------------------------
> >>
> >> *** build.xml.ORIG      2007-05-21 10:11:43.000000000 +0900
> >> --- build.xml   2007-06-27 10:05:29.890040103 +0900
> >> ***************
> >> *** 193,199 ****
> >>
> >>           <!-- copy jars from jars to lib -->
> >>           <copy todir="${build.lib.dir}" >
> >> !             <fileset dir="${build.jar.dir}"
> >>includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar"
> >>excludes="xmlc-taskdef*.jar"/>
> >>           </copy>
> >>
> >>           <!-- copy dtds into the xlib resources directory -->
> >> --- 193,199 ----
> >>
> >>           <!-- copy jars from jars to lib -->
> >>           <copy todir="${build.lib.dir}" >
> >> !             <fileset dir="${build.jar.dir}"
> >>includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar,xercesImpl*.jar"
> >>excludes="xmlc-taskdef*.jar"/>
> >>           </copy>
> >>
> >>           <!-- copy dtds into the xlib resources directory -->
> >>
> >> -------------------------------------------------------------------------------
> >>
> >>  Thank you.
> >>
> >> pièce jointe document plein texte (message-footer.txt)
> >>
> >> --
> >>
> >> Barracuda mailing list
> >>
> >> Barracuda@...
> >>
> >> http://www.objectweb.org/wws/lists/projects/barracuda
> >>
> >
> >
> >
>
>  
>
> pièce jointe document plein texte (message-footer.txt)
>
> --
>
> Barracuda mailing list
>
> Barracuda@...
>
> http://www.objectweb.org/wws/lists/projects/barracuda
>





--

Barracuda mailing list

Barracuda@...

http://www.objectweb.org/wws/lists/projects/barracuda


Re: java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementImpl

by Franck Routier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just updated the docs ('using_barracuda' and 'faqs' sections) to
reflect the need for xercesImpl and xml-apis somewhere in the
environment. I mainly copied Jakes note from the Readme in the jars
directory.

Andreas, I hope this answers your questions.

Thanks again for your input and don't hesitate to ask, would you need
any supplementary input.

Reagards,

Franck



Le dimanche 01 juillet 2007 à 18:16 +0200, Franck Routier a écrit :

> Hi,
>
> well, I think I should put this into the 'Getting started' doc section,
> as xercesImpl.jar and xml-apis.jar are not mentionned here...
> By the way, I will also try to update dependencies version all around...
>
> Franck
>
>
> Le jeudi 28 juin 2007 à 12:39 -0500, Jacob Kjome a écrit :
> > Franck is right.  If you want to add XercesImpl.jar to your own application,
> > that's fine.  But we won't be changing Barracuda's build to do it.  Why?  Ant
> > ships with XercesImpl.jar and xml-apis.jar in ANT_HOME/lib (you should
> > overwrite these with newer versions).  For a long time, Tomcat shipped with
> > it.  It and xml-apis.jar are global libraries.  JDK1.4+ ships with older
> > versions of xml-apis and JDK1.5 ships with a modified version of Xerces,
> > packaged in the com.sun.xerces namespace.  For a deployment system, such as
> > Tomcat, you should put xercesImpl.jar (2.9.0+) and xml-apis.jar (1.3.04+) in
> > an endorsed directory.  This can be either Tomcat's (or other appserver's)
> > endorsed directory or the JDK's own endorsed directory.  If you don't, you
> > risk an older version of xercesImpl.jar already in an endorsed directory
> > overriding the version in your WEB-INF/lib directory.
> >
> >
> > Jake
> >
> > On Wed, 27 Jun 2007 10:01:29 +0200
> >   Franck Routier <franck.routier@...> wrote:
> > > Hi,
> > >
> > >First of all, thanks for your input.
> > >
> > > The problem with xerces is that it is a quite ubiquitous library...
> > > So I think barracuda.war take for granted that xerces will be available
> > > at a broader level in the servlet environment (in Tomcat common libs, or
> > > even in jdk endorsed libs, or somewhere...)
> > >
> > > But I also had to add xercesImpl in my build.xml, so I must admit this
> > > might be a problem.
> > >
> > > Maybe Jake would like to comment on this ?
> > >
> > >Franck
> > >
> > > Le mercredi 27 juin 2007 à 10:29 +0900, MIYACHI Yasuhiko a écrit :
> > >> Hi!
> > >>
> > >>  Tracker of forge.objectweb.org seems not to use it.
> > >>  So, I contribute this patch to this Mailing List directly.
> > >>
> > >>  In my environment, Barracuda2(Subversion version) will generate the
> > >>following errors.
> > >>
> > >>  URL: http://localhost:8080/Barracuda2/GetLoginScreen.event
> > >>  exception: javax.servlet.ServletException: Servlet execution threw an
> > >>exception
> > >>  root cause: java.lang.NoClassDefFoundError:
> > >>org/apache/xerces/dom/ElementImpl
> > >>
> > >>  This reason is because xercesImpl-*.jar is not copied to WEB-INF/lib.
> > >>
> > >>  This pacth can solve this problem.
> > >>
> > >> -------------------------------------------------------------------------------
> > >>
> > >> *** build.xml.ORIG      2007-05-21 10:11:43.000000000 +0900
> > >> --- build.xml   2007-06-27 10:05:29.890040103 +0900
> > >> ***************
> > >> *** 193,199 ****
> > >>
> > >>           <!-- copy jars from jars to lib -->
> > >>           <copy todir="${build.lib.dir}" >
> > >> !             <fileset dir="${build.jar.dir}"
> > >>includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar"
> > >>excludes="xmlc-taskdef*.jar"/>
> > >>           </copy>
> > >>
> > >>           <!-- copy dtds into the xlib resources directory -->
> > >> --- 193,199 ----
> > >>
> > >>           <!-- copy jars from jars to lib -->
> > >>           <copy todir="${build.lib.dir}" >
> > >> !             <fileset dir="${build.jar.dir}"
> > >>includes="nekohtml*.jar,resolver*.jar,jivan*.jar,*xmlc*.jar,gnu-regexp*.jar,xercesImpl*.jar"
> > >>excludes="xmlc-taskdef*.jar"/>
> > >>           </copy>
> > >>
> > >>           <!-- copy dtds into the xlib resources directory -->
> > >>
> > >> -------------------------------------------------------------------------------
> > >>
> > >>  Thank you.
> > >>
> > >> pièce jointe document plein texte (message-footer.txt)
> > >>
> > >> --
> > >>
> > >> Barracuda mailing list
> > >>
> > >> Barracuda@...
> > >>
> > >> http://www.objectweb.org/wws/lists/projects/barracuda
> > >>
> > >
> > >
> > >
> >
> >  
> >
> > pièce jointe document plein texte (message-footer.txt)
> >
> > --
> >
> > Barracuda mailing list
> >
> > Barracuda@...
> >
> > http://www.objectweb.org/wws/lists/projects/barracuda
> >
>
>
>
> pièce jointe document plein texte (message-footer.txt)
>
> --
>
> Barracuda mailing list
>
> Barracuda@...
>
> http://www.objectweb.org/wws/lists/projects/barracuda
>





--

Barracuda mailing list

Barracuda@...

http://www.objectweb.org/wws/lists/projects/barracuda