You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Tom Purcell <tp...@chariotsolutions.com> on 2006/07/07 18:10:02 UTC

Deploy activemq-ra-4.0.rar on Weblogic 8.1

Hello

I'm stuck. I want to deploy the ActiveMQ rar on a WebLogic Integration(WLI)
server. WLI is essentially a WebLogic Server (WLS 8.1) with a lot of extra
baggage. I have followed the instructions on the ActiveMQ page on deploying
to WLS 9.1
(http://incubator.apache.org/activemq/how-to-deploy-activemq-ra-versionrar-to-weblogic.html) 
but that produced the stack trace below. Apparently WLS 8.1 wants a DTD not
an XSD because it still using connector 1.0. Is there a way to get this to
deploy on WLS 8.1?

Thanks
Tom


Exception:weblogic.management.ApplicationException: Prepare failed. Task Id
= 4 Module: activemq-lib Error: Error parsing file at line: 22 column: 19.
weblogic.xml.process.XMLParsingException: Error parsing file at line: 22
column: 19. Attribute "xmlns" must be declared for element type "connector".
- with nested exception: [org.xml.sax.SAXParseException: Attribute "xmlns"
must be declared for element type "connector".]
org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for
element type "connector". at
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg/xml/sax/InputSource;)V(AbstractSAXParser.java:1189)
at
weblogic.xml.jaxp.WebLogicParser.parse(Lorg/xml/sax/InputSource;)V(WebLogicParser.java:67)
at
weblogic.xml.process.ProcessorDriver.process(Ljava/io/Reader;)V(ProcessorDriver.java:154)
at
weblogic.connector.deploy.dd.xml.RarLoader_Connector10.process(Ljava/io/Reader;)V(RarLoader_Connector10.java:202)
at
weblogic.connector.deploy.dd.xml.DDUtil.processDDFile(Lweblogic/connector/deploy/dd/xml/DDLoader;Ljava/lang/String;Ljava/io/InputStream;Lweblogic/management/descriptors/connector/ConnectorDescriptorMBean;Ljava/lang/String;)V(DDUtil.java:380)
at.....
-- 
View this message in context: http://www.nabble.com/Deploy-activemq-ra-4.0.rar-on-Weblogic-8.1-tf1907300.html#a5220171
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Deploy activemq-ra-4.0.rar on Weblogic 8.1

Posted by Tom Purcell <tp...@chariotsolutions.com>.
Hiram

I tried using the Weblogic adapter. We use in in production without problem
but that is WLS to WLS. When I use it to connect to ActiveMQ it gets a
NoSuchMethodException and then complains about "Unknown protocol: 'TCP'"
(see stack trace below). I get the same result when the ActiveMQ jars are at
the beginning of the classpath as when they are at the end.

Any thoughts?

Thanks
Tom 

####<Jul 7, 2006 1:25:31 PM EDT> <Info> <Connector> <tom-wireless>
<cgServer> <ExecuteThread: '3' for queue: 'MessagingBridge'> <<WLS Kernel>>
<> <BEA-190097> <Unable to complete the connection proxy test for
"eis/jms/WLSConnectionFactoryJNDIXA" due to an exception. WebLogic Server
will attempt to use connection proxies for resource adapter
"eis/jms/WLSConnectionFactoryJNDIXA" as usual. Exception:
java.lang.NoSuchMethodException: getConnection.> 
####<Jul 7, 2006 1:25:32 PM EDT> <Info> <Common> <tom-wireless> <cgServer>
<ExecuteThread: '3' for queue: 'MessagingBridge'> <<WLS Kernel>> <>
<BEA-000628> <Created "1" resources for pool "Weblogic Messaging Bridge
Adapter (XA)_eis/jms/WLSConnectionFactoryJNDIXA", out of which "1" are
available and "0" are unavailable.> 
####<Jul 7, 2006 1:25:31 PM EDT> <Info> <MessagingBridge> <tom-wireless>
<cgServer> <ExecuteThread: '4' for queue: 'MessagingBridge'> <<WLS Kernel>>
<> <BEA-200042> <Bridge Remote to Local Remote Jreport Response Messaging
Bridge failed to connect to the source destination and will try again in 20
seconds. (java.lang.Exception: javax.resource.ResourceException:
ConnectionFactory: failed to get initial context (InitialContextFactory
=weblogic.jndi.WLInitialContextFactory, url = tcp://10.0.1.173:61616, user
name = null)
	at
weblogic.jms.adapter.JMSBaseConnection.throwResourceException(Ljava/lang/String;Ljava/lang/Throwable;Z)V(JMSBaseConnection.java:1384)
	at
weblogic.jms.adapter.JMSBaseConnection.throwResourceException(Ljava/lang/String;Ljava/lang/Throwable;)V(JMSBaseConnection.java:1364)
	at
weblogic.jms.adapter.JMSBaseConnection.startInternal()V(JMSBaseConnection.java:345)
	at
weblogic.jms.adapter.JMSBaseConnection.start()V(JMSBaseConnection.java:219)
	at
weblogic.jms.adapter.JMSManagedConnectionFactory.createManagedConnection(Ljavax/security/auth/Subject;Ljavax/resource/spi/ConnectionRequestInfo;)Ljavax/resource/spi/ManagedConnection;(JMSManagedConnectionFactory.java:188)
	at
weblogic.connector.common.internal.ConnectionFactory.createResource(Lweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ConnectionFactory.java:127)
	at
weblogic.common.resourcepool.ResourcePoolImpl.makeResources(I[Lweblogic/common/resourcepool/PooledResourceInfo;Ljava/util/List;Z)I(ResourcePoolImpl.java:1181)
	at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ILweblogic/common/resourcepool/PooledResourceInfo;Z)Lweblogic/common/resourcepool/PooledResource;(ResourcePoolImpl.java:346)
	at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ILweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ResourcePoolImpl.java:287)
	at
weblogic.connector.common.internal.ConnectionPool.reserveResource(ILweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ConnectionPool.java:570)
	at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(Lweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ResourcePoolImpl.java:281)
	at
weblogic.connector.common.internal.ConnectionPoolManager.getConnection(Ljavax/resource/spi/ManagedConnectionFactory;Ljavax/resource/spi/ConnectionRequestInfo;)Ljava/lang/Object;(ConnectionPoolManager.java:650)
	at
weblogic.connector.common.internal.ConnectionManagerImpl.allocateConnection(Ljavax/resource/spi/ManagedConnectionFactory;Ljavax/resource/spi/ConnectionRequestInfo;)Ljava/lang/Object;(ConnectionManagerImpl.java:106)
	at
weblogic.jms.adapter.JMSBaseConnectionFactory.getSourceConnection(Lweblogic/jms/bridge/ConnectionSpec;)Lweblogic/jms/bridge/SourceConnection;(JMSBaseConnectionFactory.java:91)
	at
weblogic.jms.bridge.internal.MessagingBridge.getConnections()V(MessagingBridge.java:765)
	at
weblogic.jms.bridge.internal.MessagingBridge.execute(Lweblogic/kernel/ExecuteThread;)V(MessagingBridge.java:991)
	at
weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
	at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
	at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
-------------- Linked Exception ------------
javax.naming.ServiceUnavailableException [Root exception is
java.net.UnknownHostException: Unknown protocol: 'TCP']
	at
weblogic.jndi.internal.ExceptionTranslator.toNamingException(Ljava/lang/Throwable;)Ljavax/naming/NamingException;(ExceptionTranslator.java:41)
	at
weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(Ljava/lang/Throwable;)Ljavax/naming/NamingException;(WLInitialContextFactoryDelegate.java:636)
	at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Lweblogic/jndi/Environment;Ljava/lang/String;)Ljavax/naming/Context;(WLInitialContextFactoryDelegate.java:306)
	at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Ljava/util/Hashtable;)Ljavax/naming/Context;(WLInitialContextFactoryDelegate.java:239)
	at
weblogic.jndi.WLInitialContextFactory.getInitialContext(Ljava/util/Hashtable;)Ljavax/naming/Context;(WLInitialContextFactory.java:135)
	at
javax.naming.spi.NamingManager.getInitialContext(Ljava/util/Hashtable;)Ljavax/naming/Context;(NamingManager.java:662)
	at
javax.naming.InitialContext.getDefaultInitCtx()Ljavax/naming/Context;(InitialContext.java:243)
	at
javax.naming.InitialContext.init(Ljava/util/Hashtable;)V(InitialContext.java:219)
	at
javax.naming.InitialContext.<init>(Ljava/util/Hashtable;)V(InitialContext.java:195)
	at
weblogic.jms.adapter.JMSBaseConnection.getInitialContext()Ljavax/naming/InitialContext;(JMSBaseConnection.java:1965)
	at
weblogic.jms.adapter.JMSBaseConnection.startInternal()V(JMSBaseConnection.java:233)
	at
weblogic.jms.adapter.JMSBaseConnection.start()V(JMSBaseConnection.java:219)
	at
weblogic.jms.adapter.JMSManagedConnectionFactory.createManagedConnection(Ljavax/security/auth/Subject;Ljavax/resource/spi/ConnectionRequestInfo;)Ljavax/resource/spi/ManagedConnection;(JMSManagedConnectionFactory.java:188)
	at
weblogic.connector.common.internal.ConnectionFactory.createResource(Lweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ConnectionFactory.java:127)
	at
weblogic.common.resourcepool.ResourcePoolImpl.makeResources(I[Lweblogic/common/resourcepool/PooledResourceInfo;Ljava/util/List;Z)I(ResourcePoolImpl.java:1181)
	at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ILweblogic/common/resourcepool/PooledResourceInfo;Z)Lweblogic/common/resourcepool/PooledResource;(ResourcePoolImpl.java:346)
	at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ILweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ResourcePoolImpl.java:287)
	at
weblogic.connector.common.internal.ConnectionPool.reserveResource(ILweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ConnectionPool.java:570)
	at
weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(Lweblogic/common/resourcepool/PooledResourceInfo;)Lweblogic/common/resourcepool/PooledResource;(ResourcePoolImpl.java:281)
	at
weblogic.connector.common.internal.ConnectionPoolManager.getConnection(Ljavax/resource/spi/ManagedConnectionFactory;Ljavax/resource/spi/ConnectionRequestInfo;)Ljava/lang/Object;(ConnectionPoolManager.java:650)
	at
weblogic.connector.common.internal.ConnectionManagerImpl.allocateConnection(Ljavax/resource/spi/ManagedConnectionFactory;Ljavax/resource/spi/ConnectionRequestInfo;)Ljava/lang/Object;(ConnectionManagerImpl.java:106)
	at
weblogic.jms.adapter.JMSBaseConnectionFactory.getSourceConnection(Lweblogic/jms/bridge/ConnectionSpec;)Lweblogic/jms/bridge/SourceConnection;(JMSBaseConnectionFactory.java:91)
	at
weblogic.jms.bridge.internal.MessagingBridge.getConnections()V(MessagingBridge.java:765)
	at
weblogic.jms.bridge.internal.MessagingBridge.execute(Lweblogic/kernel/ExecuteThread;)V(MessagingBridge.java:991)
	at
weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
	at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
	at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
Caused by: java.net.UnknownHostException: Unknown protocol: 'TCP'
	at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(Ljava/net/InetAddress;ILjava/lang/String;)Lweblogic/rjvm/RJVM;(RJVMManager.java:203)
	at
weblogic.rjvm.RJVMManager.findOrCreate(Ljava/net/InetAddress;ILjava/lang/String;)Lweblogic/rjvm/RJVM;(RJVMManager.java:180)
	at
weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(Ljava/net/InetAddress;I)Lweblogic/rjvm/RJVM;(RJVMFinder.java:223)
	at
weblogic.rjvm.RJVMFinder.findOrCreate(Z)Lweblogic/rjvm/RJVM;(RJVMFinder.java:188)
	at
weblogic.rjvm.ServerURL.findOrCreateRJVM(Z)Lweblogic/rjvm/RJVM;(ServerURL.java:125)
	at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Lweblogic/jndi/Environment;Ljava/lang/String;)Ljavax/naming/Context;(WLInitialContextFactoryDelegate.java:296)
	... 24 more
-- 
View this message in context: http://www.nabble.com/Deploy-activemq-ra-4.0.rar-on-Weblogic-8.1-tf1907300.html#a5222300
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Deploy activemq-ra-4.0.rar on Weblogic 8.1

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Not really.  But you could still use ActiveMQ from Weblogic just using that
standard JMS client (the the resource adapter version).  Also, I think
Weblogic has some JCA 1.0 JMS wrappers that can wrap any JMS
implementation.  It might be worth researching that.

Regards,
Hiram

On 7/7/06, Tom Purcell <tp...@chariotsolutions.com> wrote:
>
>
> Hello
>
> I'm stuck. I want to deploy the ActiveMQ rar on a WebLogic
> Integration(WLI)
> server. WLI is essentially a WebLogic Server (WLS 8.1) with a lot of extra
> baggage. I have followed the instructions on the ActiveMQ page on
> deploying
> to WLS 9.1
> (
> http://incubator.apache.org/activemq/how-to-deploy-activemq-ra-versionrar-to-weblogic.html
> )
> but that produced the stack trace below. Apparently WLS 8.1 wants a DTD
> not
> an XSD because it still using connector 1.0. Is there a way to get this to
> deploy on WLS 8.1?
>
> Thanks
> Tom
>
>
> Exception:weblogic.management.ApplicationException: Prepare failed. Task
> Id
> = 4 Module: activemq-lib Error: Error parsing file at line: 22 column: 19.
> weblogic.xml.process.XMLParsingException: Error parsing file at line: 22
> column: 19. Attribute "xmlns" must be declared for element type
> "connector".
> - with nested exception: [org.xml.sax.SAXParseException: Attribute "xmlns"
> must be declared for element type "connector".]
> org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for
> element type "connector". at
> weblogic.apache.xerces.parsers.AbstractSAXParser.parse
> (Lorg/xml/sax/InputSource;)V(AbstractSAXParser.java:1189)
> at
> weblogic.xml.jaxp.WebLogicParser.parse(Lorg/xml/sax/InputSource;)V(
> WebLogicParser.java:67)
> at
> weblogic.xml.process.ProcessorDriver.process(Ljava/io/Reader;)V(
> ProcessorDriver.java:154)
> at
> weblogic.connector.deploy.dd.xml.RarLoader_Connector10.process
> (Ljava/io/Reader;)V(RarLoader_Connector10.java:202)
> at
> weblogic.connector.deploy.dd.xml.DDUtil.processDDFile
> (Lweblogic/connector/deploy/dd/xml/DDLoader;Ljava/lang/String;Ljava/io/InputStream;Lweblogic/management/descriptors/connector/ConnectorDescriptorMBean;Ljava/lang/String;)V(
> DDUtil.java:380)
> at.....
> --
> View this message in context:
> http://www.nabble.com/Deploy-activemq-ra-4.0.rar-on-Weblogic-8.1-tf1907300.html#a5220171
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com