File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes javax.ejb.EJBException: Could not instantiate bean. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "javax.ejb.EJBException: Could not instantiate bean." Watch "javax.ejb.EJBException: Could not instantiate bean." New topic

javax.ejb.EJBException: Could not instantiate bean.

amol l a lekurwale
Ranch Hand

Joined: Oct 16, 2008
Posts: 30
In my application, sometimes I get the error
javax.ejb.EJBException: Could not instantiate bean

All I need to do is just restart jboss, and the error goes away. Can anyone suggest me why the error occurs? Is there any solution so as to avoid the error.
Mark Garland
Ranch Hand

Joined: Nov 11, 2006
Posts: 226

Can you send us the logs? Perhaps there is some clue in there as to why JBoss thinks it can't instantiate the bean.


28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
I agree. Here's the link:
subject: javax.ejb.EJBException: Could not instantiate bean.
It's not a secret anymore!