File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes MessageListener -- class not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic

MessageListener -- class not found exception

Rajasekhar Devi Reddy

Joined: Dec 21, 2007
Posts: 29

I had been trying to write a simple message driven bean (ejb 2.1 spec) I am using jboss 4.2.3 and eclipse 3.4 IDE on windows vista OS.

I have implmented a ben class and have also implemented javax.ejb.MessagDrivenBean abd javax.jms.MessageListener in my class. But when I deploy the ejb to the server I see that the server log shows an error. And it says can not find class MessageListener. It further says that the EJB code has to implement the MessageListener intergface which I did. I have pasted my code here could any one please let me know what the problem might be ???

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

You probably don't have the proper jar files in the "lib" directory of the server. Have you checked the JBoss "all" deployment for jars you might be missing? Either way sounds like a JBoss issue to me...

[OCA 8 Book] [Blog]
Rajasekhar Devi Reddy

Joined: Dec 21, 2007
Posts: 29
Thanks for the reply. I am using default configuration. will some jars be missing if am using default and not all config ???
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Please do not ask the same question in multiple posts:

JBoss In Action
Rajasekhar Devi Reddy

Joined: Dec 21, 2007
Posts: 29
Sorry abt that.. I had initially posted it on ejb's forum then I found there was one specific for JBoss so
I posted it there too.. dont know how both came up together in one forum now.

by the way I have run the application server in 'all' mode too..did not work ... how can I find if some thing is missing in my server's lib folder.

thank you for your reply..
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Let's continue this discussion in your other thread.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: MessageListener -- class not found exception
jQuery in Action, 3rd edition