JBoss 5.1 throws NameNotFoundException while starting up
Ananth Vasudevan
Ranch Hand
Joined: Sep 30, 2010
Posts: 30
posted
0
Hi,
I'm migrating from JBOSS 4.0.3 to 5.1. I'm encountering a NameNotFoundException when it starts the JMSSenderService which
is a MBean defined in jboss-service.xml.
- JBoss server is using the "all" configuration
- JBoss 5.1 is running on Linux using JDK 1.6.0_20
I've posted the start up logs from the JBoss server, contents from the jboss-service.xml, where this MBean is referenced
and here's the line where the exception is thrown:
Anybody has any ideas has to how to solve this problem? JBoss does not start and throws a lot of exceptions because of this exception.
Please let me know, if you need any additional information to diagonize this problem.
Ananth Vasudevan
Ranch Hand
Joined: Sep 30, 2010
Posts: 30
posted
0
Corrected the code posted above (Included double quotes for lookup, otherwisem it wouldn't compile):
Are you saying that you added the com.aa.cc.bl.jms.service:service=JMSService mbean declaration to jboss-service.xml? That will not work in AS 5.x because AS 5.x uses JBoss Messaging (unlike 4.x which used JBossMQ) and Messaging is not based on JMX. I think that you are going to have to look at the Messaging documentation and find out how you can do the things that the com.aa.cc.bl.jms.service:service=JMSService mbean did using the new mechanisms for configuring Messaging. At minimum you will have to change you mbean to be a pojo bean managed by the microcontainer.
Thanks for the quick response.
Yes. The JMSService mbean declaration is in jboss-service.xml.
Thanks for the pointer. I'll try to make the changes for JBoss Messaging and post an update.
Ananth Vasudevan
Ranch Hand
Joined: Sep 30, 2010
Posts: 30
posted
0
peter,
Quick Question: Is JBoss Messaging bundled with JBoss 5.1GA or should I install it on top of Jboss 5.1?