• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CreateException: Initial beans in free pool

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
--------------------
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic