tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: HTTP Status 500 - Server Internal Error
Date Sat, 18 Dec 2010 19:57:20 GMT
-----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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message