Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] using xom/xerces for JSP app (tomcat 4.1.18)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: luca passani <passani AT eunet.no>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] using xom/xerces for JSP app (tomcat 4.1.18)
  • Date: Tue, 08 Apr 2003 00:37:16 +0200


Elliotte,

I fixed temporarily this problem by miving the Xerces files

xercesImpl.jar
xercesSamples.jar
xml-apis.jar
xmlParserAPIs.jar

from here:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\wurfl\WEB-INF\lib

to here:

C:\Program Files\Apache Group\Tomcat 4.1\common\lib

Any idea why this does the trick?
this is really a workaround, since it does not allow me to distribute my libraries as
a .war file for example.

thank you

luca

Elliotte Rusty Harold wrote:

Hallo, I am building a library to be used with JSP and Servlets. The problem seems to be
with the XOM/Xerces. The msg is:

javax.servlet.ServletException: Cannot inherit from final class
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)


Looking at the exception message, I doubt this has anything to do with XOM. That's not a class XOM uses or knows about. It may have something to do with which classes are loaded form where in the CLASSPATH. Servlet environments are tricky that way, and can have problems if you're trying to load the same or inherited classes with different classloaders.






Archive powered by MHonArc 2.6.24.

Top of Page