Announcement Announcement Module
Collapse
No announcement yet.
Weblogic EJB remote deployment - JNDI lookup fails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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="aero.sita.ads.checkin.dal.services.IConfigu rationService"/>
    </bean>

    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
    weblogic.management.ManagementException: - with nested exception:
    [weblogic.management.DeploymentException:
    Exception:weblogic.management.ApplicationException : start() failed.
    Module: web-qf Error: weblogic.management.DeploymentException:
    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 weblogic.management.deploy.slave.SlaveDeployer$Act ivateTask.prepare() V(SlaveDeployer.java:2396)

    Could you please help me resolve this error.

    Thanks
    Aruna

  • #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.

    Regards,
    Andreas

    Comment


    • #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

      Comment

      Working...
      X