This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 3739

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: 5850

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: 10394


Let's continue this discussion in your other thread.

[My Blog] [JavaRanch Journal]
Consider Paul's rocket mass heater.
subject: MessageListener -- class not found exception