Weblogic8.1.3The Message-Driven EJB: XXXMDB is unable to connect to the JMS destination: jms/XXXJMSQueue.

<2009-7-22 下午12时42分30秒 CST> <Warning> <EJB> <BEA-010096>
<The Message-Driven EJB: XXXMDB is unable to connect to the JMS destination: jms/XXXJMSQueue.
Connection failed after 2 attempts. The MDB will attempt to reconnect
every 1 seconds. This log message will repeat every 600 seconds until the condit
ion clears.>
<2009-7-22 下午12时42分30秒 CST>
<Warning> <EJB> <BEA-010061> <The Message-Driven EJB: XXXMDB is unable to connect to the JMS destination: jms/XXXJMSQueue. The Error was:
[EJB:011009]Unable to create a JNDI InitialContext to lookup the JMS destination.
javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason:]]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(Ljava.lang.Throwable;)Ljavax.naming.NamingException;(ExceptionTranslator.java:47)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(Ljava.lang.Throwable;)Ljavax.naming.NamingException;(WLInitialContextFactoryDelegate.java:618)
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;(Optimized Method)
at javax.naming.InitialContext.getDefaultInitCtx()Ljavax.naming.Context;(Optimized Method)
at javax.naming.InitialContext.init(Ljava.util.Hashtable;)V(Optimized Method)
at javax.naming.InitialContext.<init>(Ljava.util.Hashtable;)V(InitialContext.java:124)
at weblogic.ejb20.deployer.MessageDrivenBeanInfoImpl.getInitialContext()Ljavax.naming.Context;(Optimized Method)
at weblogic.ejb20.internal.JMSConnectionPoller.createJMSConnection()V(Optimized Method)
at weblogic.ejb20.internal.JMSConnectionPoller.connectToJMS()V(JMSConnectionPoller.java:1180)
at weblogic.ejb20.internal.JMSConnectionPoller.trigger(Lweblogic.time.common.Schedulable;)V(Optimized Method)
at weblogic.time.common.internal.ScheduledTrigger.run()Ljava.lang.Object;(Optimized Method)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
at weblogic.time.common.internal.ScheduledTrigger.executeLocally()V(Optimized Method)
at weblogic.time.common.internal.ScheduledTrigger.execute(Lweblogic.kernel.ExecuteThread;)V(Optimized Method)
at weblogic.time.server.ScheduledTrigger.execute(Lweblogic.kernel.ExecuteThread;)V(Optimized Method)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Optimized Method)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
Caused by: weblogic.socket.UnrecoverableConnectException: [Login failed for an unknown reason:]
at weblogic.socket.Login.checkLoginSuccess(Ljava.lang.String;)Ljava.lang.String;(Login.java:126)
at weblogic.rjvm.t3.T3JVMConnection.connect(Ljava.net.InetAddress;I)V(T3JVMConnection.java:459)
at weblogic.rjvm.t3.T3JVMConnection.createConnection(Ljava.net.InetAddress;ILweblogic.protocol.configuration.NetworkChannel;)Lweblogic.rjvm.MsgAbbrevJVMConnection;(T3JVMConnection.java:483)
at weblogic.rjvm.ConnectionManager.createConnection(Lweblogic.protocol.Protocol;Ljava.net.InetAddress;ILweblogic.protocol.configuration.NetworkChannel;)Lweblogic.rjvm.MsgAbbrevJVMConnection;(ConnectionManager.java:1766)
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(Lweblogic.protocol.Protocol;Lweblogic.rjvm.JVMID;)Lweblogic.rjvm.MsgAbbrevJVMConnection;(ConnectionManager.java:1293)
at weblogic.rjvm.ConnectionManager.bootstrap(Lweblogic.rjvm.JVMID;Lweblogic.protocol.Protocol;)V(ConnectionManager.java:430)
at weblogic.rjvm.ConnectionManager.bootstrap(Ljava.net.InetAddress;ILweblogic.protocol.Protocol;)Lweblogic.rjvm.RJVMImpl;(ConnectionManager.java:312)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(Ljava.net.InetAddress;ILjava.lang.String;)Lweblogic.rjvm.RJVM;(RJVMManager.java:223)
at weblogic.rjvm.RJVMManager.findOrCreate(Ljava.net.InetAddress;ILjava.lang.String;)Lweblogic.rjvm.RJVM;(RJVMManager.java:181)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(Ljava.net.InetAddress;I)Lweblogic.rjvm.RJVM;(RJVMFinder.java:222)
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)
… 19 more
>

此错误表示你的消息驱动bean绑定的JMS Queue的server的地址MDB无法连接到,检查你的weblogic-ejb-jar.xml

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE weblogic-ejb-jar PUBLIC “-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN” “http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd”>

<weblogic-ejb-jar>
<description>Test</description>
<weblogic-enterprise-bean>
<ejb-name>XXXMDB</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
<initial-beans-in-free-pool>1</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>jms/XXXJMSQueue</destination-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<provider-url>t3://localhost:80</provider-url>
<!– 如果JMS和EJB容器不在一台机器上指定该JMS provider-url 并且两个weblogic的domain名、server名不同–>
<connection-factory-jndi-name>jms/XXXJMSFactory</connection-factory-jndi-name>
<jms-polling-interval-seconds>1</jms-polling-interval-seconds>
</message-driven-descriptor>
</weblogic-enterprise-bean>

</weblogic-ejb-jar>

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在javaee, weblogic分类目录,贴了, , , , , , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论链接可以 移除 nofollow.