CANNOT BIND NULL OBJECT TO JNDI - While Deploying JAX-WS WEBSERVICE TO WLS 12C (Doc ID 1644032.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 to 12.1.1.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

In 12.1.1, When deploying webservice JAX-WS application, deployment fails with below exception

Caused By: javax.naming.NamingException: Cannot bind null object to jndi with name
at.oelg.wlc12crepcase.core.webserviceref.IdentityManagerZmrBean/zmrSearchService
at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:311)
at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:273)
at weblogic.wsee.jaxws.ServiceRefProcessorImpl.bindServiceRef(ServiceRefProcessorImpl.java:381)
at weblogic.application.naming.EnvironmentBuilder.bindServiceRef(EnvironmentBuilder.java:1051)
at weblogic.application.naming.EnvironmentBuilder.bindServiceReferences(EnvironmentBuilder.java:1016)
at weblogic.ejb.container.deployer.EJBDeployer.activateEnvironment(EJBDeployer.java:1379)
at weblogic.ejb.container.deployer.EJBDeployer.activate(EJBDeployer.java:1057)
at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:470)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:192)
at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:187)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
at weblogic.application.internal.flow.ModuleStateDriver.activate(ModuleStateDriver.java:58)
at weblogic.application.internal.flow.ScopedModuleDriver.activate(ScopedModuleDriver.java:206)
at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:97)

Issue is seen if webservices has a WebserviceRef annotation pointing to a WSDL with multiple webservices

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms