This excerpt is from the bottom of the page at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

JDK 1.4 supports a mechanism called the "Endorsed Standards Override 
Mechanism" to allow replacement of APIs created outside of the JCP (i.e. 
DOM and SAX from W3C). It can also be used to update the XML parser 
implementation. For more information, see: 
http://java.sun.com/j2se/1.4/docs/guide/standards/index.html.
Tomcat utilizes this mechanism by including the system property setting 
-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed in the command line 
that starts the container. Therefore, you can replace the parser that is 
installed in this directory, and it will get used even on a JDK 1.4 
system.

rls




Sam Cheung <[EMAIL PROTECTED]>
09/06/2002 03:44 PM
Please respond to "Tomcat Users List"

 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        Using a different Xerces library in Tomcat 4.1 on jdk1.4

Hi,

The Web Application I am running needs an old version
of Xerces. I put that xerce.jar file in WEB-INF/lib,
but I still get java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser?

Could you please tell me how to fix that?


type Exception report

message 

description The server encountered an internal error
() that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet.init() for
servlet ToolsUIServlet threw exception
                 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:952)

root cause 

java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser
                 at
com.ibm.commerce.tools.xml.XMLFileDirectory.cacheNewReader(XMLFileDirectory.java:48)
                 at
com.ibm.commerce.tools.xml.XMLFileDirectory.lookup(XMLFileDirectory.java:130)
                 at
com.ibm.commerce.tools.sys.WebSysManager.init(WebSysManager.java:259)



__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to