This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes CreateException: Initial beans in free pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CreateException: Initial beans in free pool" Watch "CreateException: Initial beans in free pool" New topic
Author

CreateException: Initial beans in free pool

sameerleekha
Greenhorn

Joined: Jan 22, 2002
Posts: 26
Hi,
Can anybody let me know, why an exception is thrown at the deployment moment of the ear file, composing stateless session beans, for which the value of the <initial-beans-in-free-pool> is specified as 1
Exception observed on the console is:
The EJB: XYZ had an <initial-beans-in-free-pool> setting in its weblogic-ejb-jar.xml. An error occurred while creating these initial bean instances. The error was:
Creation of session bean 2000021373254058364694848328081858403372105729 failed javax.ejb.CreateException: x:y:z:common.ACTIVATION_FAILURE: Creation of session bean 2000021373254058364694848328081858403372105729 failed
at x.y.z.application.j2ee.SessionBean_1.ejbCreate(SessionBean_1.java:143)
-------
---
--

Thanks,
sameer
--------------------


sameer
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Originally posted by Sameer:
Creation of session bean 2000021373254058364694848328081858403372105729 failed javax.ejb.CreateException: x:y:z:common.ACTIVATION_FAILURE: Creation of session bean 2000021373254058364694848328081858403372105729 failed
at x.y.z.application.j2ee.SessionBean_1.ejbCreate(SessionBean_1.java:143)

I'd guess that the bean's ejbCreate() method threw an exception that is then caught by your container, which then logs the message you see. What appserver are you using? And what does the ejbCreate() method look like?
sameerleekha
Greenhorn

Joined: Jan 22, 2002
Posts: 26
hi,
thanks for the comments.
I am using WebLogic6.1 as an app server installed on the solaris environment.
As such, since its a stateless session bean the ejbCreate method is just overridden, no implementation of ejbCreate method.
Thanks,
sameer
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Sameer,
Our naming policy requires a display name to include both a first name (or initials) and a last name. You can change your display name here.
Thanks.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Originally posted by Sameer:
As such, since its a stateless session bean the ejbCreate method is just overridden, no implementation of ejbCreate method.

Hmm, that is odd. Are you able to call create() on the bean's home successfully? Is there any more to that error message, like a stack trace?
I'm using WebLogic 7.0sp1, and every session bean has a initial-beans-in-free-pool setting greater than zero, and it all works fine.
 
Consider Paul's rocket mass heater.
 
subject: CreateException: Initial beans in free pool