This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic
Author

MessageListener -- class not found exception

Rajasekhar Devi Reddy
Greenhorn

Joined: Dec 21, 2007
Posts: 29
Hi

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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3712
    
    5

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...


My Blog: Down Home Country Coding with Scott Selikoff
Rajasekhar Devi Reddy
Greenhorn

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
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

Please do not ask the same question in multiple posts: http://www.coderanch.com/t/91312/JBoss/find-MessageListener-class-exception


JBoss In Action
Rajasekhar Devi Reddy
Greenhorn

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
Marshal

Joined: Jul 20, 2005
Posts: 10240
    
168

Rajasekhar,

Let's continue this discussion in your other thread.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MessageListener -- class not found exception