You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by falom <fa...@yahoo.com.cn> on 2007/01/20 14:45:06 UTC

[Axis2] exception when client connecting to geronimo activemq

Hi,

I setup jms resource in geronimo and have one axis2 client trying to connection to it, but i got javax.naming.NamingException: scheme java not recognized exception. Does this mean incompatibility between geronimo's activemq and current axis2 jms implementation?

falom

2007-1-20 21:37:26 org.apache.axis2.transport.jms.JMSOutTransportInfo handleException
error: Cannot get JMS Connection factory with props : {java.naming.provider.url=tcp://localhost:61616, java.naming.factory.initial=org.activemq.jndi.ActiveMQInitialContextFactory, transport.jms.ConnectionFactoryJNDIName=java:comp/env/jms/myQueueConnectionFactory}
javax.naming.NamingException: scheme java not recognized
    at org.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:198)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.apache.axis2.transport.jms.JMSOutTransportInfo.getConnectionFactory(JMSOutTransportInfo.java:85)
    at org.apache.axis2.transport.jms.JMSOutTransportInfo.<init>(JMSOutTransportInfo.java:69)
    at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:66)
    at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:746)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Unknown Source)
2007-1-20 21:37:26 org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker run
信息: Cannot get JMS Connection factory with props : {java.naming.provider.url=tcp://localhost:61616, java.naming.factory.initial=org.activemq.jndi.ActiveMQInitialContextFactory, transport.jms.ConnectionFactoryJNDIName=java:comp/env/jms/myQueueConnectionFactory}
C:\Axis2_1.1\axis2-1.1\samples\Axis2JmsWorkingSample2\client_repository
2007-1-20 21:37:29 org.apache.axis2.deployment.DeploymentEngine doDeploy
info: Deploying module : addressing-1.1
2007-1-20 21:37:29 org.apache.axis2.transport.jms.JMSOutTransportInfo handleException
error: Cannot get JMS Connection factory with props : {java.naming.provider.url=tcp://localhost:61616, java.naming.factory.initial=org.activemq.jndi.ActiveMQInitialContextFactory, transport.jms.ConnectionFactoryJNDIName=java:comp/env/jms/myQueueConnectionFactory}
javax.naming.NamingException: scheme java not recognized
    at org.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:198)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.apache.axis2.transport.jms.JMSOutTransportInfo.getConnectionFactory(JMSOutTransportInfo.java:85)
    at org.apache.axis2.transport.jms.JMSOutTransportInfo.<init>(JMSOutTransportInfo.java:69)
    at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:66)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
    at org.apache.axis2.description.OutInAxisOperationClient$NonBlockingInvocationWorker.run(OutInAxisOperation.java:444)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Unknown Source)
2007-1-20 21:37:29 org.apache.axis2.jms2.JMSActiveEchoClient$1 onError
info: Cannot get JMS Connection factory with props : {java.naming.provider.url=tcp://localhost:61616, java.naming.factory.initial=org.activemq.jndi.ActiveMQInitialContextFactory, transport.jms.ConnectionFactoryJNDIName=java:comp/env/jms/myQueueConnectionFactory}
2007-1-20 21:37:30 org.apache.axis2.deployment.DeploymentEngine doDeploy
info: Deploying module : addressing-1.1
C:\Axis2_1.1\axis2-1.1\samples\Axis2JmsWorkingSample2\client_repository
2007-1-20 21:37:30 org.apache.axis2.transport.jms.JMSOutTransportInfo handleException
error: Cannot get JMS Connection factory with props : {java.naming.provider.url=tcp://localhost:61616, java.naming.factory.initial=org.activemq.jndi.ActiveMQInitialContextFactory, transport.jms.ConnectionFactoryJNDIName=java:comp/env/jms/myQueueConnectionFactory}
javax.naming.NamingException: scheme java not recognized
    at org.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:198)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.apache.axis2.transport.jms.JMSOutTransportInfo.getConnectionFactory(JMSOutTransportInfo.java:85)
    at org.apache.axis2.transport.jms.JMSOutTransportInfo.<init>(JMSOutTransportInfo.java:69)
    at org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:66)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
    at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
    at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
    at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
    at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:95)
    at org.apache.axis2.jms2.JMSActiveEchoClient.test03EchoString(JMSActiveEchoClient.java:249)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:228)
    at junit.framework.TestSuite.run(TestSuite.java:223)
    at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

 		
---------------------------------
 Mp3疯狂搜-新歌热歌高速下