Results 1 to 2 of 2

Thread: EJB Create failure

  1. #1
    Join Date
    Sep 2004
    Posts
    1

    Default EJB Create failure

    Our application invokes an external EJB (possibly running on another VM) to fulfill some business services. This has been successfully unit tested. The unit tests run within Eclipse 3.0 and reference EJBs hosted in a WebLogic (8.1 SP2) container. Everything's peachy here.

    The trouble arises when I deploy our application -- also to WebLogic. While the remote reference gets created, the bean creation fails with an error
    Code:
    org.springframework.beans.FatalBeanException: Cannot create EJB proxy: EJB home [ClusterableRemoteRef(-574488473610431496S:10.6.11.188:[7001,7001,-1,-1,7001,-1,-1,0,0]:mydomain:myserver [-574488473610431496S:10.6.11.188:[7001,7001,-1,-1,7001,-1,-1,0,0]:mydomain:myserver/298])/298] has no no-arg create() method
    Pre-empting the question, let me answer by saying, yes, it has a no-arg create() method.

    Can someone provide any hints on how to debug this scenario? FWIW, I have tested (a) with both my application and the external third-party EJB in the same WebLogic container and (b) My application and third party EJB in different containers. No difference, i.e. same problem

    Can you help?

    Sri

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    Is the reference to the remote EJB marked as lazy-init? If not, maybe you should give that a try.
    I recall reading something that preinstantiating may cause problems in such cases. I am not sure if it was about this kind of problem, but possibly it might help marking that remote bean as lazy-init.

    Regards,
    Andreas

Similar Threads

  1. Replies: 4
    Last Post: Sep 27th, 2005, 11:31 PM
  2. How do you create unit tests for layered applications?
    By paul.barry in forum Architecture
    Replies: 2
    Last Post: May 6th, 2005, 08:31 AM
  3. How to create hierarchical context
    By Lock51 in forum Container
    Replies: 4
    Last Post: Mar 24th, 2005, 02:30 PM
  4. create a dynamic rmi server
    By flyabovesun in forum Remoting
    Replies: 0
    Last Post: Feb 15th, 2005, 01:45 PM
  5. Strange Data Access Error
    By webifyit in forum Data
    Replies: 2
    Last Post: Dec 28th, 2004, 11:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •