Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 19543 invoked from network); 2 Sep 2004 06:35:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Sep 2004 06:35:43 -0000 Received: (qmail 52258 invoked by uid 500); 2 Sep 2004 06:34:58 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 52225 invoked by uid 500); 2 Sep 2004 06:34:57 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52209 invoked by uid 99); 2 Sep 2004 06:34:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [62.20.1.181] (HELO mail-core.space2u.com) (62.20.1.181) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Sep 2004 23:34:56 -0700 Received: from localhost (www-core.space2u.com [62.20.1.180]) by mail-core.space2u.com (8.12.11/8.12.11) with ESMTP id i826YoSd017659 for ; Thu, 2 Sep 2004 08:34:50 +0200 Date: Thu, 2 Sep 2004 08:34:50 +0200 Message-Id: <200409020634.i826YoSd017659@mail-core.space2u.com> MIME-Version: 1.0 From: tomcat-user@erit.se To: Tomcat Users List Cc: Subject: What is the difference in classloading between tomcat 4.1.x and 5.0.x Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello I tried running the application using Tomcat 5.0.16, but the same ClassNotFoundException was thrown again. Let me know if I should try to test something else. I still do not understand why this does not work. Regards Erik On 2004-09-01 Shapira Yoav wrote: >Hi, >Oh yeah, that reminds me, we might have a bug still present with >classloading from shared/lib in 5.0.x. Try a much earlier version, e.g. >5.0.16, and let us know if that works. > >Yoav Shapira >Millennium Research Informatics > > >>-----Original Message----- >>From: tomcat-user@erit.se [mailto:tomcat-user@erit.se] >>Sent: Wednesday, September 01, 2004 3:58 PM >>To: tomcat-user@jakarta.apache.org >>Subject: What is the difference in classloading between tomcat 4.1.x >and >>5.0.x >> >> >>In a web application running under Tomcat, I have defined a filter in >the >>web.xml file. The filter is pointing to a class that is packed in a >jar- >>file, and the jar-file is kept in the $CATALINA_HOME/shared/lib >directory. >> >>In Tomcat 4.1.x the application is working without any problems. When >>trying to run the same application under Tomcat 5.0.28 a >>java.lang.ClassNotFoundException is thrown. >> >>If the jar-file is placed in $CATALINA_HOME/common/lib, then the class >is >>found and the application runs without problem. >> >>The same issue appears when using Listeners in the web.xml file. >> >>I have also tried the same setup with 5.0.27 which leads to the same >>result. >> >>What is it that has changed between 4.1x and 5.0.x, in regards to >>classloading, in order to cause this problem ? >> >>Any help in understanding this problem is appreciated. >>Regards >>Erik >> >> >> ********** stacktrace >>****************************************************** >>2004-09-01 17:35:07 >>NamingContextListener[/Catalina/localhost/webdialInstance]: Resource >>parameters for UserTransaction = null >>2004-09-01 17:35:07 StandardContext[/webdialInstance]Exception starting >>filter Compress >>java.lang.ClassNotFoundException: >>se.erit.web.servlet.filters.gzip.GZIPFilter >> at >>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade >r.ja >>va:1340) >> at >>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade >r.ja >>va:1189) >> at >>org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF >ilte >>rConfig.java:211) >> at >>org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati >onFi >>lterConfig.java:308) >> at >>org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilt >erCo >>nfig.java:79) >> at >>org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja >va:3 >>698) >> at >>org.apache.catalina.core.StandardContext.start(StandardContext.java:434 >9) >> at >>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j >ava: >>823) >> at >>org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:12 >1) >> at >>org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Container >Base >>.java:143) >> at java.security.AccessController.doPrivileged(Native Method) >> at >>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805) >> at >>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) >> at >>org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl >oyer >>.java:903) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja >va:3 >>9) >> at >>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso >rImp >>l.java:25) >> at java.lang.reflect.Method.invoke(Method.java:324) >> at >>org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java: >216) >> at >org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) >> at org.apache.commons.digester.Rule.end(Rule.java:276) >> at >>org.apache.commons.digester.Digester.endElement(Digester.java:1058) >> at >>org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.j >ava: >>76) >> at >org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown >>Source) >> at >>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un >know >>n Source) >> at >>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi >spat >>cher.dispatch(Unknown Source) >> at >>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn >own >>Source) >> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown >Source) >> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown >Source) >> at >org.apache.commons.digester.Digester.parse(Digester.java:1567) >> at >>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo >yer. >>java:488) >> at >>org.apache.catalina.core.StandardHost.install(StandardHost.java:863) >> at >>org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav >a:48 >>3) >> at >>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) >> at >org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) >> at >>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 >49) >> at >>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS >uppo >>rt.java:119) >> at >>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) >> at >org.apache.catalina.core.StandardHost.start(StandardHost.java:789) >> at >>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) >> at >>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) >> at >>org.apache.catalina.core.StandardService.start(StandardService.java:480 >) >> at >>org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) >> at org.apache.catalina.startup.Catalina.start(Catalina.java:556) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja >va:3 >>9) >> at >>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso >rImp >>l.java:25) >> at java.lang.reflect.Method.invoke(Method.java:324) >> at >org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) >> at >org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) >> >>*************** end of trace >>*************************************************** >> >> >> >> >>Erik Rosengren >>ERIT Consulting AB >>+46-70-7183333 >>mailto:erik.rosengren@erit.se >>http://www.erit.se >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > >This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org