Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 88254 invoked from network); 20 Jan 2007 03:02:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2007 03:02:03 -0000 Received: (qmail 97074 invoked by uid 500); 20 Jan 2007 03:02:03 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 97052 invoked by uid 500); 20 Jan 2007 03:02:02 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 97041 invoked by uid 99); 20 Jan 2007 03:02:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 19:02:02 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_10_20,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [203.209.230.37] (HELO web15307.mail.cnb.yahoo.com) (203.209.230.37) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Jan 2007 19:01:53 -0800 Received: (qmail 61156 invoked by uid 60001); 20 Jan 2007 03:01:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Ftk9z89BAhglKFNpDPQuKT0u8D4/o0a0mR1pYUICW8jM05ffMufr6Zc/85wpbybqUVCiGzTKwUQU5CRsdw1X618UtoK+Va+zHKiMKZOYwa8F4QGIY1jLPMhmJoK945tW2wsf9vvBtPNZLzMeVJTS90UPP7XOvmG/C/5cij2uktE=; X-YMail-OSG: B1R0FIcVM1nZkzlBeUtndy7usIkVBISkS.PCD6MEhbvtkYUb9wJkvsWFE2bPfDdb2w-- Received: from [219.236.92.47] by web15307.mail.cnb.yahoo.com via HTTP; Sat, 20 Jan 2007 11:01:19 CST Date: Sat, 20 Jan 2007 11:01:19 +0800 (CST) From: falom Subject: [geronimo1.1.1] Re: Re: Axis2 war classloader ClassNotFoundException To: user@geronimo.apache.org In-Reply-To: <006301c73b76$889feb30$a1904c09@raleigh.ibm.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-809076638-1169262079=:57568" Content-Transfer-Encoding: 8bit Message-ID: <698268.57568.qm@web15307.mail.cnb.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-809076638-1169262079=:57568 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit Hi Lin, Big thanks for the tip, it worked after a bit struggling with all the resource config in both geronimo and axis2. I will test now to see if axis2 client can call and get response from the server. BTW, do you know a good place to read more about all the ejb config parameters like following: jms/myQueueConnectionFactory javax.jms.QueueConnectionFactory Container Shareable jms/myQueue javax.jms.Queue Produces myQueue falom Lin Sun wrote�� Hi there, I haven't tried to configure this myself but wonder if you can fix this by creating a Geronimo-web.xml for the axis2 war file. In the Geronimo-web.xml file, you can specify the activemq broker as the dependency of the axis2 war to request the classloder to make the activemq broker avail for the axis2 war. HTH Lin ________________________________________ From: falom [mailto:falom2008@yahoo.com.cn] Sent: Thursday, January 18, 2007 9:36 PM To: user@geronimo.apache.org Subject: [geronimo1.1.1] Axis2 war classloader ClassNotFoundException Hi, I installed axis2 war in both tomcat and geronimo. First I managed to test axis2 jms transport in tomcat connecting to standalone activemq broker by deploying one service using servicelifecycle to start up the jmslistener. BUT when i deploy the same service in geronimo, while trying connect to the activemq broker within geronimo, i got following exception attached, seems like problem related to classloader, or something else which i am really stuck with. I also reconfigured axis2 listener to use org.activemq.jndi.ActiveMQInitialContextFactory instead of org.apache.activemq.jndi.ActiveMQInitialContextFactory, but same exception. I really need some clue what i do wrong, or how to go around this classloading issue. falom 22:46:30,709 INFO [JMSActiveEchoServiceLifeCycle] JMSActiveEchoServiceLifeCycle startUp called. 22:46:30,719 ERROR [JMSListener] Error connecting to JMS connection factory : TopicConnectionFactory javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory in classloader default/axis211/1164548268298/war] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.(InitialContext.java:197) at org.apache.axis2.transport.jms.JMSConnectionFactory.createInitialContext(JMSConnectionFactory.java:133) at org.apache.axis2.transport.jms.JMSConnectionFactory.connect(JMSConnectionFactory.java:122) at org.apache.axis2.transport.jms.JMSListener.initializeConnectionFactories(JMSListener.java:244) at org.apache.axis2.transport.jms.JMSListener.init(JMSListener.java:104) at org.apache.axis2.jms2.JMSActiveEchoServiceLifeCycle.startUp(JMSActiveEchoServiceLifeCycle.java:56) at org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:354) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:136) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:91) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:133) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:252) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:373) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:317) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176) at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31) at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192) 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$$f3376869.addContext() at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438) 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.startConfigurationGBeans(ConfigurationUtil.java:374) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508) 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$$d98215e2.startConfiguration() at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:297) at org.apache.geronimo.system.main.Daemon.(Daemon.java:74) at org.apache.geronimo.system.main.Daemon.main(Daemon.java:377) --------------------------------- ��ע�Ż��������-3.5G������20M������ --0-809076638-1169262079=:57568 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit Hi Lin,

Big thanks for the tip, it worked after a bit struggling with all the resource config in both geronimo and axis2. I will test now to see if axis2 client can call and get response from the server. BTW, do you know a  good place to read more about all the ejb config parameters like following:

    <resource-ref>
        <res-ref-name>jms/myQueueConnectionFactory</res-ref-name>
        <res-type>javax.jms.QueueConnectionFactory</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
     </resource-ref>
   
    <message-destination-ref>
        <message-destination-ref-name>jms/myQueue</message-destination-ref-name>
        <message-destination-type>javax.jms.Queue</message-destination-type>
        <message-destination-usage>Produces</message-destination-usage>
        <message-destination-link>myQueue</message-destination-link>
    </message-destination-ref>

falom

Lin Sun <linsun.unc@gmail.com> wrote��
Hi there, I haven't tried to configure this myself but wonder if you can fix this by creating a Geronimo-web.xml for the axis2 war file. In the Geronimo-web.xml file, you can specify the activemq broker as the dependency of the axis2 war to request the classloder to make the activemq broker avail for the axis2 war.

HTH Lin

________________________________________
From: falom [mailto:falom2008@yahoo.com.cn]
Sent: Thursday, January 18, 2007 9:36 PM
To: user@geronimo.apache.org
Subject: [geronimo1.1.1] Axis2 war classloader ClassNotFoundException

Hi,

I installed axis2 war in both tomcat and geronimo.

First I managed to test axis2 jms transport in tomcat connecting to standalone activemq broker by deploying one service using servicelifecycle to start up the jmslistener.

BUT when i deploy the same service in geronimo, while trying connect to the activemq broker within geronimo, i got following exception attached, seems like problem related to classloader, or something else which i am really stuck with. I also reconfigured axis2 listener to use org.activemq.jndi.ActiveMQInitialContextFactory instead of org.apache.activemq.jndi.ActiveMQInitialContextFactory, but same exception.
I really need some clue what i do wrong, or how to go around this classloading issue.

falom

22:46:30,709 INFO [JMSActiveEchoServiceLifeCycle] JMSActiveEchoServiceLifeCycle startUp called.
22:46:30,719 ERROR [JMSListener] Error connecting to JMS connection factory : TopicConnectionFactory
javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory in classloader default/axis211/1164548268298/war]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at org.apache.axis2.transport.jms.JMSConnectionFactory.createInitialContext(JMSConnectionFactory.java:133)
at org.apache.axis2.transport.jms.JMSConnectionFactory.connect(JMSConnectionFactory.java:122)
at org.apache.axis2.transport.jms.JMSListener.initializeConnectionFactories(JMSListener.java:244)
at org.apache.axis2.transport.jms.JMSListener.init(JMSListener.java:104)
at org.apache.axis2.jms2.JMSActiveEchoServiceLifeCycle.startUp(JMSActiveEchoServiceLifeCycle.java:56)
at org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:354)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:136)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:91)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:133)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:528)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:252)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:373)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:317)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67)
at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337)
at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192)
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$$f3376869.addContext()
at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438)
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.startConfigurationGBeans(ConfigurationUtil.java:374)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
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$$d98215e2.startConfiguration()
at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:297)
at org.apache.geronimo.system.main.Daemon.(Daemon.java:74)
at org.apache.geronimo.system.main.Daemon.main(Daemon.java:377)



��ע�Ż��������-3.5G������20M������ --0-809076638-1169262079=:57568--