This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes JBoss 5.1 throws NameNotFoundException while starting up Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "JBoss 5.1 throws NameNotFoundException while starting up" Watch "JBoss 5.1 throws NameNotFoundException while starting up" New topic
Author

JBoss 5.1 throws NameNotFoundException while starting up

Ananth Vasudevan
Ranch Hand

Joined: Sep 30, 2010
Posts: 30
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
Corrected the code posted above (Included double quotes for lookup, otherwisem it wouldn't compile):



Any help is greatly appreciated.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

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.


JBoss In Action
Ananth Vasudevan
Ranch Hand

Joined: Sep 30, 2010
Posts: 30
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
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

Joined: Jul 20, 2005
Posts: 8146
    
  52

JBoss Messaging comes bundled with AS5.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 5.1 throws NameNotFoundException while starting up
 
Similar Threads
JBoss Unable to start
Server started with Deployment Errors
jboss not starting - config issue?
NoSuchFieldError for urlDelimiter in datasource configuration
failed to initialize bean container with "Null beannMetaData" error