Hi I am trying to develop a simple Message Driven bean (ejb 2.1 spec) using eclipse 3.4 Jboss 4.2.3.
I have implemented MessageListener interface and its only method "onMessage()" in my ejb class but my server log file shows this error
2008-09-09 14:39:30,549 WARN [org.jboss.verifier.strategy.AbstractVerifier] Failed to find class: MessageListener java.lang.ClassNotFoundException: No ClassLoaders found for: MessageListener
and further gives a warn message 2008-09-09 14:39:30,549 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation: Bean : MessageBean Section: 15.7.2 Warning: A message driven bean must implement, directly or indirectly, the message listener class Info : Class not found on 'MessageListener': No ClassLoaders found for: MessageListener
Thq for reply I used javax.jms.MessageListener folowing your suggestion and changed class declaration to
but still I see the same error in my server log. It did not say "no class loader found for javax.jms.MessageListener" just says "no class loader found for MessageListener" does that show any thing some thing, any thing wrong with my server installation???
Rajasekhar Devi Reddy
Joined: Dec 21, 2007
Thq for reply guys!! (in this thread and in the other)
I some how still can not figure out why the code did not work on JBOSS. I tried runniong it Glassfish . I used NetBeans - Glassfish combination and the very same code worked with it. Dont know why it won't work with JBOSS.
I am still trying to find ways to check if my lib folder has all the necessary jars. Does any one know hot to check it? Or what else might be the problem ?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: can't find MessageListener class exception