EJB JMS javax.naming.NameNotFoundException: XXX not bound
2014-05-07 10:04
459 查看
练习EJB MessageDrivenBean时部署不成功,一直报错
错误原因:Jboss无法自动创建Queue对象
解决办法:
在项目部署位置
添加一个XXX-service.xml文件,内容如下
09:57:29,017 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@86de21(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@199f23c destination=queue/jms destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5) javax.naming.NameNotFoundException: jms not bound
错误原因:Jboss无法自动创建Queue对象
解决办法:
在项目部署位置
添加一个XXX-service.xml文件,内容如下
<?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=XXX"<!--这个地方的name是你自己定义的queue/XXX--> xmbean-dd="xmdesc/Queue-xmbean.xml"> <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends> <depends>jboss.messaging:service=PostOffice</depends> </mbean> </server>
相关文章推荐
- EJB JMS javax.naming.NameNotFoundException: XXX not bound
- javax.naming.NameNotFoundException:Name[ XXX] is not bound in this context.
- javax.naming.NameNotFoundException: Name jms is not bound in this Context
- JBOSS javax.naming.NameNotFoundException: xxx not bound
- 启动Tomcat时出现javax.naming.NameNotFoundException: Name xxx is not bound in this Context情况解决方式
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException Name java:comp is not bound in this Context之解决
- javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [co
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- 在编译部署EJB工程后,出现错误:javax.naming.NameNotFoundException
- Tomcat配置连接池 异常:javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- EJB在weblogic下遇到的Exception:Exception in javax.naming.NameNotFoundException: While trying to lookup 'ejb.com/genuitec/trader/ejb/T
- javax.naming.NameNotFoundException: Name spring.liveBeansView.mbeanDomain is not bound in this Conte
- javax.naming.NameNotFoundException: Name [jdbc/lappJDBC] is not bound in this Context. Unable to fi
- javax.naming.NameNotFoundException: bookingDatabase not bound
- EJB3.0异常总结---Exception in thread "main" javax.naming.NameNotFoundException: StatelessEjbBean not bou
- jboss无法自动创建Queue和Topic 发布时出现错误javax.naming.namenotfoundexception: myqueue not bound
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context