Secure webservice deployment Fails with "WSEEServletEndpointException: Can not resolve policy #null" (Doc ID 1358672.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 9.2 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

In WebLogic 9.2, the following error was thrown when deploying a secured webservice (with ws-policy) -

<Sep 12, 2011 11:52:36 AM EDT> <Warning> <HTTP> <BEA-101162> <User defined listener weblogic.wsee.deploy.ServletDeployListener failed: weblogic.wsee.deploy.WSEEServletEndpointException: Can not resolve policy #null.
weblogic.wsee.deploy.WSEEServletEndpointException: Can not resolve policy #null
at weblogic.wsee.deploy.ServletDeployListener.loadWsdlDefinitions(ServletDeployListener.java:554)
at weblogic.wsee.deploy.ServletDeployListener.verifyWsdd(ServletDeployListener.java:215)
at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:118)
at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run(EventsManager.java:398)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(EventsManager.java:63)
at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1599)
at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1043)
at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:437)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:412)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:549)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:284)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
weblogic.wsee.wsdl.validation.WsdlValidationException: Can not resolve policy #null
at weblogic.wsee.wsdl.validation.ReferenceValidator.validatePolicyURIs(ReferenceValidator.java:177)
at weblogic.wsee.wsdl.validation.ReferenceValidator.validatePortType(ReferenceValidator.java:149)
at weblogic.wsee.wsdl.validation.ValidatorChain.validatePortType(ValidatorChain.java:134)
at weblogic.wsee.wsdl.validation.WsdlValidationRegistry.validatePortType(WsdlValidationRegistry.java:80)
at weblogic.wsee.wsdl.validation.WsdlValidationRegistry.validate(WsdlValidationRegistry.java:65)
at weblogic.wsee.wsdl.validation.WsdlValidationRegistry.validate(WsdlValidationRegistry.java:52)
at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:81)
at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:105)
at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:38)
at weblogic.wsee.deploy.ServletDeployListener.loadWsdlDefinitions(ServletDeployListener.java:552)
at weblogic.wsee.deploy.ServletDeployListener.verifyWsdd(ServletDeployListener.java:215)
at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:118)
at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run(EventsManager.java:398)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(EventsManager.java:63)
at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1599)
at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1043)
at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:437)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:412)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:549)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:284)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:718)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1185)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:247)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>

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