Announcement Announcement Module
No announcement yet.
Weblogic EJB remote deployment - JNDI lookup fails Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Weblogic EJB remote deployment - JNDI lookup fails

    Hi ,

    I am able to unit test the EJB deployed in a EAR using java utility within my IDE. Context file I use for the junit testcase is as follows

    <bean id="configurationService" class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean">
    <property name="jndiName" value="ConfigurationService"/>
    <property name="businessInterface" value=" rationService"/>

    I set the initial factory and provider url as system properties.

    Presentation tier web app is deployed remotely. When it tries to access the EJB (xml context is same as the one I used in unit test), we get following error - with nested exception:
    [ : start() failed.
    Module: web-qf Error:
    Error creating bean with name 'configurationService' defined in ServletContext resource [/WEB-INF/config_context.xml]: Initialization of bean failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'ConfigurationService' Resolved - with nested exception:
    [javax.naming.NameNotFoundException: Unable to resolve 'ConfigurationService' Resolved ; remaining name 'ConfigurationService']
    ] at$Act ivateTask.prepare() V(

    Could you please help me resolve this error.


  • #2
    It looks like your EJB is not bound at the time of lookup.
    Perhaps it might help to set the "lookupHomeOnStartup" flag to "false" in your SimpleRemote StatelessSessionProxyFactoryBean.



    • #3
      Thanks Andreas. For jndi lookup, I was relying on the JVM property jndi_URL that I set while starting the weblogic. I modified the context file bean definition to include jndi environment, now the lookup is successful.

      - Aruna