• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JBoss 5.1 throws NameNotFoundException while starting up

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JBoss Messaging comes bundled with AS5.
 
Can't .... do .... plaid .... So I did this tiny ad instead:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic