Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CreateException: Initial beans in free pool

 
sameerleekha
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
--------------------
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic