You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by GOMEZ Henri <hg...@slib.fr> on 2002/02/12 01:12:22 UTC

Tomcat 4.0.2 - Startup fails after moving xerces.xml from /common/lib to /server/lib

In xerces 2.0.0 the SAX/DOM and Parser are splitted in 2 jars
and should be both included in the same lib.

Since CL will find part of the SAX/DOM in xerces 1.4.3 jar
it may be stucked when you'll ask xerces 2.0 stuff since the 
1.4.3 jar will be in scope due to SAX/DOM load.

Hope it will help

>I am using xerces 2.0.0 in one of my webapps so I need to move xerces.jar
>out of /common/lib and into /server/lib. This works just fine with 4.0.2-b2.
>With 4.0.2 If I keep xerces.jar in /common/lib and use xerces.jar 1.4.3 in
>my web app everything starts up just fine. But if I move xerces.jar into
>/server/lib I get the exception below. I suspect that this is due to the
>ClassLoader bug fixes done between 4.0.2-b2 and 4.0.2. Is there any
>workaround for this?

>Thanks for any help.

>Matt

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat 4.0.2 - Selective of JDK!

Posted by Remy Maucherat <re...@apache.org>.
> I can not explain this behavior, but when I uncomment
> either jdk1.2 or j2sdk1.4 tomcat would work fine. If I
> were to use jdk1.3, as shown beneath, tomcat will spit
> the following error for every contect available. And
> of course no JSP/Servlets will be available.
>
> I have upgraded to tomcat 4.0.2 release (this moring)
> running on rh Linux 7.1 with apache 1.3.22ssl. For
> testing I am disabling apache and just running off
> port 8880.
>
> What am I doing wrong?

Maybe you have an older servlet.jar in your extensions folder for that
particular JRE. That's very convinient when developing (nothing to add in
the classpath), but then you forget about it, and later it breaks ...

Remy


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Tomcat 4.0.2 - Selective of JDK!

Posted by Al-Qalb el-Mounir <fa...@yahoo.com>.
I can not explain this behavior, but when I uncomment
either jdk1.2 or j2sdk1.4 tomcat would work fine. If I
were to use jdk1.3, as shown beneath, tomcat will spit
the following error for every contect available. And
of course no JSP/Servlets will be available.

I have upgraded to tomcat 4.0.2 release (this moring)
running on rh Linux 7.1 with apache 1.3.22ssl. For
testing I am disabling apache and just running off
port 8880. 

What am I doing wrong?

#JAVA_HOME=/usr/local/jdk1.2.2 (Works)
#JAVA_HOME=/usr/local/j2sdk1.4.0 (Works)
#JAVA_HOME=/usr/local/jdk1.3.1_02 (Fails)

2002-02-11 19:18:57 WebappLoader[/manager]: Deploying
class repositories to work directory
/usr/local/tomcat/work/localhost/manager
2002-02-11 19:18:57 StandardManager[/manager]: Seeding
random number generator class
java.security.SecureRandom
2002-02-11 19:18:57 StandardManager[/manager]: Seeding
of random number generator has been completed
2002-02-11 19:18:57 ContextConfig[/manager]:
Configured an authenticator for method BASIC
2002-02-11 19:18:57 StandardWrapper[/manager:default]:
Loading container servlet default
2002-02-11 19:18:57 default: init
2002-02-11 19:18:57 StandardWrapper[/manager:invoker]:
Loading container servlet invoker
2002-02-11 19:18:57 invoker: init
2002-02-11 19:18:57 jsp: init
2002-02-11 19:18:57 StandardContext[/manager]: Servlet
/manager threw load() exception
javax.servlet.ServletException: Servlet.init() for
servlet jsp threw exception
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        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.NoSuchMethodError
        at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
        at
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:139)
        at
org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:345)
        at
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at
org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        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)


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>