Hi Chris,

This version of Jena comes with Xerces-J 2.6.1, it is installed in webapp's 
WEB-INF/classes/plugins/lib-xml, will this location present any issue or should 
I copy it to WEB-INF/lib?

I tried to remove xercesImpl.jar from the lib-xml folder restart Tomcat but I 
am still encountering the same sever error.

In regards to your second comment, are you stating that the servlet spec will 
not interefere with the webapp, so my app deployment should run ok?

thanks
________________________________________
From: Christopher Schultz [ch...@christopherschultz.net]
Sent: 18 December 2010 19:57
To: Tomcat Users List
Subject: Re: HTTP Status 500 - Server Internal Error

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lewis,

On 12/18/2010 2:47 PM, McGibbney, Lewis John wrote:
> I am currently using Apache Nutch 1.2 and Tomcat 6.0.26 (first post on list).

Welcome.

> I recently configured use of a plugin within Nutch which has been
> known to cause the above error due to the fact that Tomcat and Jena
> (a framework for building semantic web apps) are using conflicting
> versions of xerces library.

Tomcat 6.0.26 does not ship with a Xerces library: it uses whatever XML
parser is provided by the JDK. If Jena requires an XML library, you
should have that library installed in the webapp's WEB-INF/lib directory.

> I understand that previously I could
> replace the parser to match in $CATALINA_HOME/common/lib, however I
> learned when running on JSE 5 the class loader delegation process
> will default to the implementation inside the JDK.

This ClassLoader delegation process is specified by the servlet spec,
and I think has been consistent for quite some time: the webapp has
first dibs on providing the classes (except for some special ones like
java.lang.* and other non-overridable packages).

> org.apache.jasper.JasperException: javax.servlet.ServletException: 
> java.lang.NoClassDefFoundError: org/apache/xerces/util/XMLChar
>         
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
>         
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
>         
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> root cause
>
> javax.servlet.ServletException: java.lang.NoClassDefFoundError: 
> org/apache/xerces/util/XMLChar
>         
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
>         
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
>         org.apache.jsp.search_jsp._jspService(search_jsp.java:886)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
>         
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

That certainly does look like a library incompatibility. What version of
Xerces ships with Jena? What happens if you simply remove Xerces from
your webapp entirely? If Jena is using JAXP, then (ideally) everything
should work.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0NEiAACgkQ9CaO5/Lv0PAtIQCgvUDc18DEHHiKYOJ+ZqQmsFAH
7GMAoJBecWiAnpazTHtacGF6/VVFA443
=v1Oy
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


Email has been scanned for viruses by Altman Technologies' email management 
service - www.altman.co.uk/emailsystems

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 
2009 and Herald Society’s Education Initiative of the Year 2009
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Reply via email to