Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 3194 invoked from network); 5 May 2006 18:41:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2006 18:41:31 -0000 Received: (qmail 87140 invoked by uid 500); 5 May 2006 18:41:29 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 86789 invoked by uid 500); 5 May 2006 18:41:27 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 86778 invoked by uid 99); 5 May 2006 18:41:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 11:41:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.237.51.194] (HELO green.rootmode.com) (199.237.51.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 11:41:25 -0700 X-ClientAddr: 68.171.62.46 Received: from [192.168.15.104] (68-171-62-46.vnnyca.adelphia.net [68.171.62.46]) by green.rootmode.com (8.12.10/8.12.10) with ESMTP id k45IesHj005221 for ; Fri, 5 May 2006 14:40:55 -0400 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <21df75940605051100h76822243vc77081815c66ce89@mail.gmail.com> References: <445AB8A9.7080505@gmail.com> <21df75940605050743y17ff8117x2d72528dd40c2b3a@mail.gmail.com> <445B6AB2.20807@apache.org> <74e15baa0605050814t6f342393qa255918923eb473a@mail.gmail.com> <21df75940605051100h76822243vc77081815c66ce89@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <584BF438-A4D8-4415-BA99-86AD82996F45@iq80.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: New classloader causing problems on Tomcat ? - Exception processing TLD Date: Fri, 5 May 2006 11:41:01 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.749.3) X-RootMode-MailScanner-Information: Please contact the ISP for more information X-RootMode-MailScanner: Found to be clean X-MailScanner-From: dain@iq80.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Fixed it. It had nothing to do with the class loader layout. The findResource method was returning an invalid jar URL. The the url was missing the "file:" protocol on the nested jar. It was difficult to find, since the error occurred in xerces as it attempted to load a schema. It seems to do some sort of URL string manipulation. Anyway, it is fixed now. -dain On May 5, 2006, at 11:00 AM, Paul McMahan wrote: > Thanks Aaron. I added > ClassLoaderDumper.dump(this.getContainer()); > at GeronimoBeforeAfterValve line 31 (which is right before the error > occurs in catalina). The output is attached. I'm not sure how useful > this is so let me know if you need some other type of info. > > Paul > > On 5/5/06, Aaron Mulder wrote: >> There's a ClassLoaderDumper in the current tree that might be useful >> for this. Though it does kind of result in information overload. :) >> >> Thanks, >> Aaron >> >> On 5/5/06, Jeff Genender wrote: >> > Paul, >> > >> > Can you dump the URLClassLoader paths? This may help find th >> answer... >> > >> > Jeff >> > >> > Paul McMahan wrote: >> > > John, I got hte same error using tomcat (see below) but jetty >> seemed >> > > to work OK. The error indicates that tomcat can't load the >> portlet >> > > taglib descriptor file. The code in tomcat that tries to load >> it looks >> > > like: >> > > inputSource = >> > > new InputSource( >> > > >> > > context.getServletContext().getResourceAsStream(resourcePath)); >> > > >> > > >> > > [pmcmahan@frylock bin]$ java >> > > -DXorg.apache.geronimo.NewClassLoader=true -jar server.jar >> > > Booting Geronimo Kernel (in Java 1.4.2_10)... >> > > Starting Geronimo Application Server v1.1-SNAPSHOT >> > > [******************> ] 84% 25s Loading >> > > geronimo/webconsole-tomc...10:37:39,091 ERROR >> [StandardContext] Error >> > > reading tld listeners javax.servlet.ServletException: Exception >> > > processing TLD at resource path /WEB-INF/tld/portlet.tld in >> context >> > > /console >> > > javax.servlet.ServletException: Exception processing TLD at >> resource >> > > path /WEB-INF/tld/portlet.tld in context /console >> > > at >> > > org.apache.catalina.startup.TldConfig.tldScanTld >> (TldConfig.java:547) >> > > at org.apache.catalina.startup.TldConfig.execute >> (TldConfig.java:300) >> > > at >> > > org.apache.catalina.core.StandardContext.processTlds >> (StandardContext.java:4193) >> > > >> > > at >> > > org.apache.catalina.core.StandardContext.start >> (StandardContext.java:4049) >> > > at >> > > org.apache.geronimo.tomcat.GeronimoStandardContext.access$201 >> (GeronimoStandardContext.java:67) >> > > >> > > at >> > > org.apache.geronimo.tomcat.GeronimoStandardContext >> $SystemMethodValve.invoke(GeronimoStandardContext.java:331) >> > > >> > > at >> > > >> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke >> (GeronimoBeforeAfterValve.java:31) >> > > >> > > at >> > > org.apache.geronimo.tomcat.GeronimoStandardContext.start >> (GeronimoStandardContext.java:186) >> > > >> > > at >> > > org.apache.catalina.core.ContainerBase.addChildInternal >> (ContainerBase.java:759) >> > > >> > > at >> > > org.apache.catalina.core.ContainerBase.addChild >> (ContainerBase.java:739) >> > > at >> > > org.apache.catalina.core.StandardHost.addChild >> (StandardHost.java:524) >> > > at >> > > org.apache.geronimo.tomcat.TomcatContainer.addContext >> (TomcatContainer.java:313) >> > > >> > > at >> > > org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$ >> $9370b073.invoke() >> > > >> > > at net.sf.cglib.reflect.FastMethod.invoke >> (FastMethod.java:53) >> > > at >> > > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke >> (FastMethodInvoker.java:38) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke >> (GBeanOperation.java:122) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke >> (GBeanInstance.java:817) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.RawInvoker.invoke >> (RawInvoker.java:57) >> > > at >> > > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke >> (RawOperationInvoker.java:35) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept >> (ProxyMethodInterceptor.java:96) >> > > >> > > at >> > > org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$ >> $42172c3b.addContext() >> > > >> > > at >> > > org.apache.geronimo.tomcat.TomcatWebAppContext.doStart >> (TomcatWebAppContext.java:448) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance >> (GBeanInstance.java:981) >> > > >> > > at >> > > >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart >> (GBeanInstanceState.java:267) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start >> (GBeanInstanceState.java:102) >> > > >> > > at >> > > >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive >> (GBeanInstanceState.java:124) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive >> (GBeanInstance.java:540) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean >> (BasicKernel.java:379) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio >> nGBeans(ConfigurationUtil.java:374) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio >> nGBeans(ConfigurationUtil.java:411) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.KernelConfigurationManager.start >> (KernelConfigurationManager.java:174) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon >> figuration(SimpleConfigurationManager.java:505) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon >> figuration(SimpleConfigurationManager.java:486) >> > > >> > > at >> > > org.apache.geronimo.kernel.config.SimpleConfigurationManager$ >> $FastClassByCGLIB$$ce77a924.invoke() >> > > >> > > at net.sf.cglib.reflect.FastMethod.invoke >> (FastMethod.java:53) >> > > at >> > > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke >> (FastMethodInvoker.java:38) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke >> (GBeanOperation.java:122) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke >> (GBeanInstance.java:817) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.RawInvoker.invoke >> (RawInvoker.java:57) >> > > at >> > > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke >> (RawOperationInvoker.java:35) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept >> (ProxyMethodInterceptor.java:96) >> > > >> > > at >> > > org.apache.geronimo.kernel.config.EditableConfigurationManager$ >> $EnhancerByCGLIB$$2861d9b4.startConfiguration() >> > > >> > > at org.apache.geronimo.system.main.Daemon.doStartup >> (Daemon.java:287) >> > > at org.apache.geronimo.system.main.Daemon. >> (Daemon.java:74) >> > > at org.apache.geronimo.system.main.Daemon.main >> (Daemon.java:367) >> > > [******************> ] 84% 26s Starting >> > > geronimo/webconsole-tomc...10:37:39,857 ERROR >> [StandardContext] Error >> > > reading tld listeners javax.servlet.ServletException: Exception >> > > processing TLD at resource path /WEB-INF/tld/portlet.tld in >> context >> > > /console-standard >> > > javax.servlet.ServletException: Exception processing TLD at >> resource >> > > path /WEB-INF/tld/portlet.tld in context /console-standard >> > > at >> > > org.apache.catalina.startup.TldConfig.tldScanTld >> (TldConfig.java:547) >> > > at org.apache.catalina.startup.TldConfig.execute >> (TldConfig.java:300) >> > > at >> > > org.apache.catalina.core.StandardContext.processTlds >> (StandardContext.java:4193) >> > > >> > > at >> > > org.apache.catalina.core.StandardContext.start >> (StandardContext.java:4049) >> > > at >> > > org.apache.geronimo.tomcat.GeronimoStandardContext.access$201 >> (GeronimoStandardContext.java:67) >> > > >> > > at >> > > org.apache.geronimo.tomcat.GeronimoStandardContext >> $SystemMethodValve.invoke(GeronimoStandardContext.java:331) >> > > >> > > at >> > > >> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke >> (GeronimoBeforeAfterValve.java:31) >> > > >> > > at >> > > org.apache.geronimo.tomcat.GeronimoStandardContext.start >> (GeronimoStandardContext.java:186) >> > > >> > > at >> > > org.apache.catalina.core.ContainerBase.addChildInternal >> (ContainerBase.java:759) >> > > >> > > at >> > > org.apache.catalina.core.ContainerBase.addChild >> (ContainerBase.java:739) >> > > at >> > > org.apache.catalina.core.StandardHost.addChild >> (StandardHost.java:524) >> > > at >> > > org.apache.geronimo.tomcat.TomcatContainer.addContext >> (TomcatContainer.java:313) >> > > >> > > at >> > > org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$ >> $9370b073.invoke() >> > > >> > > at net.sf.cglib.reflect.FastMethod.invoke >> (FastMethod.java:53) >> > > at >> > > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke >> (FastMethodInvoker.java:38) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke >> (GBeanOperation.java:122) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke >> (GBeanInstance.java:817) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.RawInvoker.invoke >> (RawInvoker.java:57) >> > > at >> > > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke >> (RawOperationInvoker.java:35) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept >> (ProxyMethodInterceptor.java:96) >> > > >> > > at >> > > org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$ >> $42172c3b.addContext() >> > > >> > > at >> > > org.apache.geronimo.tomcat.TomcatWebAppContext.doStart >> (TomcatWebAppContext.java:448) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance >> (GBeanInstance.java:981) >> > > >> > > at >> > > >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart >> (GBeanInstanceState.java:267) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstanceState.start >> (GBeanInstanceState.java:102) >> > > >> > > at >> > > >> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive >> (GBeanInstanceState.java:124) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive >> (GBeanInstance.java:540) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean >> (BasicKernel.java:379) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio >> nGBeans(ConfigurationUtil.java:374) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfiguratio >> nGBeans(ConfigurationUtil.java:411) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.KernelConfigurationManager.start >> (KernelConfigurationManager.java:174) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon >> figuration(SimpleConfigurationManager.java:505) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startCon >> figuration(SimpleConfigurationManager.java:486) >> > > >> > > at >> > > org.apache.geronimo.kernel.config.SimpleConfigurationManager$ >> $FastClassByCGLIB$$ce77a924.invoke() >> > > >> > > at net.sf.cglib.reflect.FastMethod.invoke >> (FastMethod.java:53) >> > > at >> > > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke >> (FastMethodInvoker.java:38) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke >> (GBeanOperation.java:122) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke >> (GBeanInstance.java:817) >> > > >> > > at >> > > org.apache.geronimo.gbean.runtime.RawInvoker.invoke >> (RawInvoker.java:57) >> > > at >> > > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke >> (RawOperationInvoker.java:35) >> > > >> > > at >> > > >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept >> (ProxyMethodInterceptor.java:96) >> > > >> > > at >> > > org.apache.geronimo.kernel.config.EditableConfigurationManager$ >> $EnhancerByCGLIB$$2861d9b4.startConfiguration() >> > > >> > > at org.apache.geronimo.system.main.Daemon.doStartup >> (Daemon.java:287) >> > > at org.apache.geronimo.system.main.Daemon. >> (Daemon.java:74) >> > > at org.apache.geronimo.system.main.Daemon.main >> (Daemon.java:367) >> > > [**********************] 100% 31s Startup complete >> > > Listening on Ports: >> > > 1099 0.0.0.0 RMI Naming >> > > 1527 0.0.0.0 Derby Connector >> > > 4201 0.0.0.0 ActiveIO Connector EJB >> > > 4242 127.0.0.1 Remote Login Listener >> > > 8009 0.0.0.0 Tomcat Connector AJP >> > > 8080 0.0.0.0 Tomcat Connector HTTP >> > > 8443 0.0.0.0 Tomcat Connector HTTPS >> > > 9999 0.0.0.0 JMX Remoting Connector >> > > 61616 0.0.0.0 ActiveMQ Message Broker Connector >> > > >> > > Started Application Modules: >> > > EAR: geronimo/webconsole-tomcat/1.1-SNAPSHOT/car >> > > RAR: geronimo/activemq/1.1-SNAPSHOT/car >> > > RAR: geronimo/system-database/1.1-SNAPSHOT/car >> > > WAR: geronimo/remote-deploy-tomcat/1.1-SNAPSHOT/car >> > > WAR: geronimo/welcome-tomcat/1.1-SNAPSHOT/car >> > > >> > > Web Applications: >> > > http://frylock.raleigh.ibm.com:8080/ >> > > http://frylock.raleigh.ibm.com:8080/console >> > > http://frylock.raleigh.ibm.com:8080/console-standard >> > > http://frylock.raleigh.ibm.com:8080/remote-deploy >> > > >> > > Geronimo Application Server started >> > > >> > > >> > > On 5/4/06, John Sisson wrote: >> > >> Haven't had a chance to debug this.. Can others reproduce? >> > >> >> > >> This problem only seems to occur when using the NewClassLoader. >> > >> >> > >> John >> > >> >> > >> C:\Temp>set GERONIMO_OPTS=- >> DXorg.apache.geronimo.NewClassLoader=true >> > >> >> > >> C:\Temp>geronimo-1.1-SNAPSHOT\bin\geronimo.bat run --long >> > > [...] >> > >> >>