Announcement Announcement Module
Collapse
No announcement yet.
EJB lookup Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EJB lookup

    Hello,
    would anyone be able to help me out the problem I'm having below?
    I am not sure why I'm getting this error.
    Thanks bunch!



    [3/30/05 21:27:07:781 PST] 2cb569b1 DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [testService]; root of BeanFactory hierarchy]
    [3/30/05 21:27:07:797 PST] 2cb569b1 DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Creating shared instance of singleton bean 'testService'
    [3/30/05 21:27:08:609 PST] 2cb569b1 SimpleRemoteS I org.springframework.ejb.access.SimpleRemoteStatele ssSessionProxyFactoryBean Located object with JNDI name [cell/nodes/serverABC/servers/server1/ejb/TestService]: value=[IOR:000000000000006b524d493a636f6d2e62616e6b6f6661 6d65726963612e6469726563746163636573732e637573746f 6d2e736572766963652e696d706c2e656a622e437573746f6d 697a6174696f6e53657276696365486f6d6552656d6f74653a 30303030303030303030303030303030000000000001000000 0000000154000102000000000954534445504c4f5900000584 000000ca4a4d4249000000124773e3aa376430626337373365 3361616663333400000024000000a649454a50010007736572 766572311544656661756c7420454a4220436f6e7461696e65 720000007eacac0002000100290000005f5f686f6d654f6648 6f6d6573235f5f686f6d654f66486f6d6573235f5f686f6d65 4f66486f6d657308437573746f6d697a6174696f6e53657276 6963657323444155736572437573746f6d697a6174696f6e53 6572766963652e6a617223437573746f6d697a6174696f6e53 65727669636500000000000700000001000000140000000005 01000100000000000101000000000049424d0a000000080000 00001410000300000026000000020002000049424d04000000 0500050101020000000000001f000000040000000300000020 0000000400000001000000250000000400000003]
    [3/30/05 21:27:08:656 PST] 2cb569b1 DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Destroying singletons in factory {org.springframework.beans.factory.support.Default ListableBeanFactory defining beans [testService]; root of BeanFactory hierarchy}
    [3/30/05 21:27:08:656 PST] 2cb569b1 DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Destroying inner beans in factory {org.springframework.beans.factory.support.Default ListableBeanFactory defining beans [testService]; root of BeanFactory hierarchy}
    [3/30/05 21:27:08:672 PST] 2cb569b1 WebGroup E SRVE0026E: [Servlet Error]-[Error creating bean with name 'testService' defined in class path resource [WEB-INF/applicationContext.xml]: Initialization of bean failed&#59; nested exception is org.aopalliance.aop.AspectException: EJB home [null] has no no-arg create() method]: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'testService' defined in class path resource [WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.aopalliance.aop.AspectException: EJB home [null] has no no-arg create() method
    EJB home [null] has no no-arg create() method

  • #2
    Please verify:
    - Has your EJB-implementation class a method public void ejbCreate()?
    - Declares your home interface a method <your type> create() throws CreateException, RemoteException

    The log-message naming "null" as EJBHome is apparently a minor bug in spring for which I already created a JIRA issue.

    Regards,
    Andreas

    Comment


    • #3
      Possible fix

      Try putting your EJB project's jar file in the classpath on the client side (where you need to invoke the EJB).

      Originally posted by Andreas Senft
      Please verify:
      - Has your EJB-implementation class a method public void ejbCreate()?
      - Declares your home interface a method <your type> create() throws CreateException, RemoteException

      The log-message naming "null" as EJBHome is apparently a minor bug in spring for which I already created a JIRA issue.

      Regards,
      Andreas

      Comment


      • #4
        But, Isn't supposed that, with Spring, we don't need to reference nor add any Home, Remote or Local Interface?

        I think there must be another solution.

        Regards
        Luis

        Comment


        • #5
          Spring doesn't eliminate the need for those things in the classpath. It uses them underneath. It just eliminates them from your client code, which only needs a non-EJB version of your service interface.

          Comment

          Working...
          X