Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NameNotFoundException

 
madhukar chendra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I saw on google search about this problem. No one has solution to this.

I am trying to deploy Message driven bean into Jboss-3.2.1 server and getting the following error.
Can any one help me why I am getting this error?


WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=local/SampleMDB,service=EJB


javax.naming.NameNotFoundException: DefaultJMSProvider not bound

ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'


org.jboss.deployment.DeploymentInfo@e9a284c4 { url=file:/C:/jboss-3.2.1/server/default/deploy/jms/jbossmq-destinations-service.xml }
deployer: org.jboss.deployment.SARDeployer@1d2b01b
status: Deployment FAILED reason: create operation failed for package file:/C:/jboss-3.2.1/server/default/deploy/jms/jbossmq-destinations-service.xml; - nested throwable: (org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq.destination:service=Queue,name=testQueue)
state: FAILED
watch: file:/C:/jboss-3.2.1/server/default/deploy/jms/jbossmq-destinations-service.xml




Depends On Me: jboss.mq:service=DestinationManager
, ObjectName: jboss.mq.destination:service=Queue,name=DLQ
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager

Depends On Me: , ObjectName: jboss.j2ee:jndiName=local/SampleMDB,service=EJB
state: FAILED
I Depend On:
Depends On Me: javax.naming.NameNotFoundException: DefaultJMSProvider not bound]


Here is the XML code I am using to deploy MDB.

ejb-jar.xml code:
*********************
<enterprise-beans>
<message-driven>
<ejb-name>SampleMDB</ejb-name>
<ejb-class>ejb.mdb.SampleMDB</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>


<method-permission>
<unchecked/>
<method>
<ejb-name>SampleMDB</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>

<container-transaction>
<method>
<description />
<ejb-name>SampleMDB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>


jboss.xml code:
**************

<enterprise-beans>
<message-driven>
<ejb-name>SampleMDB</ejb-name>
<configuration-name>Standard Message Driven Bean</configuration-name>
<destination-jndi-name>queue/testQueue</destination-jndi-name>
</message-driven>
</enterprise-beans>

jbossmq-destinations-service.xml
*********************************

<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=testQueue">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>

Thanks.
 
Sean Stidman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Madhukar,

I was bored so I searched for the solution to your problem. I found the following explanation at http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg28257.html:

----------------------------------------------------------------------
This is due to the fact that the jms configuration is in /deploy/jms folder in JBoss 3.2.1.
By default the deploy folder is parsed first for deployments and then its subfolders.
So your EAR is deployed before the JMS implementation.

To get rid of that problem go in your conf/jboss-service.xml and change the value of RecursiveSearch to true.

<attribute name="RecursiveSearch">True</attribute>
----------------------------------------------------------------------


I hope that works for you,

Sean
 
madhukar chendra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sean,

Thank you very much. Whatever you said is coorect and if change attribute to "true" it is working.
 
ray frid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have the same problem and unfortunely the attribute RecursiveSearch already was set as true and the problem still occours.

any idea?

thanks,
ray.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same problem? You're using Jboss-3.2.1???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic