tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6476] New: - error with loading webapp when using certain libs
Date Thu, 14 Feb 2002 21:40:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6476>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6476

error with loading webapp when using certain libs

           Summary: error with loading webapp when using certain libs
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tony@dahbura.com


I have the following java jar files in my WEB-INF/lib directory:
jaxp_1.1.jar
jdom.jar 
xalan_2.1.jar  
xerces.jar

Every time my web application attempts to startup (when tomcat starts up) I get 
the following error messages:

2002-02-14 16:15:44 StandardContext[/mywebapp]: Servlet /mywebapp threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267
)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:155)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
        at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java
:139)
        at 
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
        at 
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.
java:165)
        at 
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:138)
        at 
org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:324)
        at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267
)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:599)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:155)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

It appears that maybe my xml classes are causing a problem with the classloader 
for catalina/tomcat?  Not sure why this would be since my classes are in the 
location that should provide isolation and not affect the internal workings?

Thanks,
Tony

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message