You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Stavrinides <p....@albourne.com> on 2007/07/03 15:17:53 UTC
Tomcat 6 classloader errors
I am porting a Java servlet from Tomcat 5.5.20 to Tomcat 6 and I seem to
be having classloader issues. The application works under 5, but under 6
I get the following stack trace.....HELP!
Peter
Jul 3, 2007 4:13:46 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client::/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386::/usr/lib/mozilla-thunderbird:/usr/lib/mozilla-thunderbird:/usr/java/packages/lib/i386:/lib:/usr/lib
Jul 3, 2007 4:13:46 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 3, 2007 4:13:46 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 423 ms
Jul 3, 2007 4:13:46 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 3, 2007 4:13:46 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Jul 3, 2007 4:13:46 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet IRM as unavailable
Jul 3, 2007 4:13:46 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@13a328f
org.apache.tapestry.ApplicationServlet
java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 3, 2007 4:13:46 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /IRM threw load() exception
java.lang.ClassNotFoundException: org.apache.tapestry.ApplicationServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 3, 2007 4:13:46 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 3, 2007 4:13:46 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 3, 2007 4:13:46 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Jul 3, 2007 4:13:46 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 478 ms
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 classloader errors
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
you can still use shared/lib, you just must configure it using
conf/catalina.properties
Filip
Peter Stavrinides wrote:
> Apologies, thanks for your help! ... at the moment I cant open the
> link, but I will check it out in a minute.
> Thanks again.
> Peter
>
> Caldarale, Charles R wrote:
>>> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com] Subject:
>>> Re: Tomcat 6 classloader errors
>>>
>>> The Tapestry libraries are in $CATALINA_BASE/shared/lib.
>>>
>>
>> You're not bothering to read the TC 6 classloading doc - there is no
>> shared/lib anymore. Here's the link, again:
>> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
>>
>> - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you
>> received this in error, please contact the sender and delete the e-mail
>> and its attachments from all computers.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 classloader errors
Posted by Peter Stavrinides <p....@albourne.com>.
Apologies, thanks for your help! ... at the moment I cant open the link,
but I will check it out in a minute.
Thanks again.
Peter
Caldarale, Charles R wrote:
>> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com]
>> Subject: Re: Tomcat 6 classloader errors
>>
>> The Tapestry libraries are in $CATALINA_BASE/shared/lib.
>>
>
> You're not bothering to read the TC 6 classloading doc - there is no
> shared/lib anymore. Here's the link, again:
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 classloader errors
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com]
> Subject: Re: Tomcat 6 classloader errors
>
> The Tapestry libraries are in $CATALINA_BASE/shared/lib.
You're not bothering to read the TC 6 classloading doc - there is no
shared/lib anymore. Here's the link, again:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6 classloader errors
Posted by Peter Stavrinides <p....@albourne.com>.
Hi Chuck,
Thanks for the reply!
The Tapestry libraries are in $CATALINA_BASE/shared/lib.
Caldarale, Charles R wrote:
>> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com]
>> Subject: Tomcat 6 classloader errors
>>
>> I am porting a Java servlet from Tomcat 5.5.20 to Tomcat 6
>> and I seem to be having classloader issues. The application
>> works under 5, but under 6 I get the following stack trace.
>>
>> org.apache.catalina.loader.StandardClassLoader@13a328f
>> org.apache.tapestry.ApplicationServlet
>> java.lang.ClassNotFoundException:
>> org.apache.tapestry.ApplicationServlet
>>
>
> Where did you put the Tapestry JAR? It's never been part of the Tomcat
> distribution, so you'll need to place it where the webapp classloader
> (or the common classloader) can find it. Note that the classloading
> hierarchy in Tomcat 6 is different from that in 5.5:
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat 6 classloader errors
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com]
> Subject: Tomcat 6 classloader errors
>
> I am porting a Java servlet from Tomcat 5.5.20 to Tomcat 6
> and I seem to be having classloader issues. The application
> works under 5, but under 6 I get the following stack trace.
>
> org.apache.catalina.loader.StandardClassLoader@13a328f
> org.apache.tapestry.ApplicationServlet
> java.lang.ClassNotFoundException:
> org.apache.tapestry.ApplicationServlet
Where did you put the Tapestry JAR? It's never been part of the Tomcat
distribution, so you'll need to place it where the webapp classloader
(or the common classloader) can find it. Note that the classloading
hierarchy in Tomcat 6 is different from that in 5.5:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org