Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 5.1 throws NameNotFoundException while starting up

 
Ananth Vasudevan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Corrected the code posted above (Included double quotes for lookup, otherwisem it wouldn't compile):



Any help is greatly appreciated.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ananth Vasudevan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
peter,
Quick Question: Is JBoss Messaging bundled with JBoss 5.1GA or should I install it on top of Jboss 5.1?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss Messaging comes bundled with AS5.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic