wsit
  1. wsit
  2. WSIT-117

Regression:FromJava test case:Deploy fails with com.sun.xml.ws.policy.PolicyException: Failed to find policy referenced by URI

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: 1.0
    • Component/s: policy
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      117

      Description

      Attachment:
      1)Test case wsit.xml having the security policy assertions
      2)Server log snip containing the exception trace

      Description:
      The from-java test cases in SecurityPolicy,Security,SecureConversation SQE tests
      use a wsit.xml wherein the securitypolicy assertions for the test case are
      specified.These tests have failed [this is a regression] with deploy time
      failure caused by the following exception trace on the server[Glassfish]:

      [#|2006-11-05T17:52:48.788+0100|SEVERE|sun-appserver-pe9.1|javax.enterprise.resource.webservices.jaxws.wspolicy|_ThreadID=11;_ThreadName=Timer-3;_RequestID=d264365a-274b-4b11-abab-5a45c1b79476;|Failed
      to find policy referenced by URI
      "#WSSecurity1.1_s1_IPingService_Ping_Output_policy".
      com.sun.xml.ws.policy.PolicyException: Failed to find policy referenced by URI
      "#WSSecurity1.1_s1_IPingService_Ping_Output_policy".
      at com.sun.xml.ws.policy.jaxws.BuilderHandler.getPolicies(BuilderHandler.java:71)
      at
      com.sun.xml.ws.policy.jaxws.BuilderHandler.getPolicySubjects(BuilderHandler.java:79)
      at
      com.sun.xml.ws.policy.jaxws.BuilderHandlerOperationScope.populate(BuilderHandlerOperationScope.java:65)
      at
      com.sun.xml.ws.policy.jaxws.PolicyMapBuilder.getNewPolicyMap(PolicyMapBuilder.java:90)
      at
      com.sun.xml.ws.policy.jaxws.PolicyMapBuilder.getPolicyMap(PolicyMapBuilder.java:72)
      at
      com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.finished(PolicyWSDLParserExtension.java:935)
      at
      com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.finished(DelegatingParserExtension.java:156)
      at
      com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.finished(WSDLParserExtensionFacade.java:306)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:205)
      at com.sun.xml.ws.server.EndpointFactory.getWSDLPort(EndpointFactory.java:461)
      at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:201)
      at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:420)
      at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:439)
      at
      com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:224)
      at
      com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:131)
      at
      com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:93)
      at
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4309)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4964)
      at com.sun.enterprise.web.WebModule.start(WebModule.java:297)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:905)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:889)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1486)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1139)
      at
      com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:171)
      at
      com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:275)
      at
      com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:949)
      at
      com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:936)
      at
      com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
      at
      com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
      at
      com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:295)
      at
      com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:199)
      at
      com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
      at
      com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
      at
      com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
      at
      com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
      at
      com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:263)
      at
      com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:281)
      at
      com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:534)
      at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
      at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
      at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
      at $Proxy1.invoke(Unknown Source)
      at
      com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
      at
      com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:414)
      at
      com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:394)
      at
      com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)
      at
      com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:361)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

        Activity

        Hide
        eric_ekka added a comment -

        Created an attachment (id=60)
        wsit.xml containing the securitypolicy assertions for the test case

        Show
        eric_ekka added a comment - Created an attachment (id=60) wsit.xml containing the securitypolicy assertions for the test case
        Hide
        eric_ekka added a comment -

        Created an attachment (id=61)
        glassfish server log containing the exception trace

        Show
        eric_ekka added a comment - Created an attachment (id=61) glassfish server log containing the exception trace
        Hide
        eric_ekka added a comment -

        Upgrading priority to P2, as this is preventing testing the from-java testcases
        and also causing a break in security,securitypolicy,secureconversation sqe tests.

        Show
        eric_ekka added a comment - Upgrading priority to P2, as this is preventing testing the from-java testcases and also causing a break in security,securitypolicy,secureconversation sqe tests.
        Hide
        ritzmann added a comment -

        Jakub, could you please look into this? Looks like a bogus configuration file.

        Show
        ritzmann added a comment - Jakub, could you please look into this? Looks like a bogus configuration file.
        Hide
        japod added a comment -

        Eric, I need some more data in order to reproduce the bug. Could you please
        attach a war file which does not work for you?
        I am able to do from java deployment on glassfish without any such issue.
        Thanks.

        Show
        japod added a comment - Eric, I need some more data in order to reproduce the bug. Could you please attach a war file which does not work for you? I am able to do from java deployment on glassfish without any such issue. Thanks.
        Hide
        eric_ekka added a comment -

        Created an attachment (id=63)
        war file of the test case

        Show
        eric_ekka added a comment - Created an attachment (id=63) war file of the test case
        Hide
        eric_ekka added a comment -

        Jakub, I have uploaded the test case's war file ; which was built with the
        latest wsit installed on glassfish-v2-build24.

        Show
        eric_ekka added a comment - Jakub, I have uploaded the test case's war file ; which was built with the latest wsit installed on glassfish-v2-build24.
        Hide
        japod added a comment -

        Eric, thank you a lot for the war file.

        It should be now fixed
        in [com.sun.xml.ws.policy.jaxws.PolicyWSDLGeneratorExtension]

        Notice: Policy was not added to generated wsdl
        document by PolicyWSDLGeneratorExtension due to a bug in code,
        which avoids adding any particular policy more than once there.

        Show
        japod added a comment - Eric, thank you a lot for the war file. It should be now fixed in [com.sun.xml.ws.policy.jaxws.PolicyWSDLGeneratorExtension] Notice: Policy was not added to generated wsdl document by PolicyWSDLGeneratorExtension due to a bug in code, which avoids adding any particular policy more than once there.
        Hide
        mmatula added a comment -

        This issue was fixed before we created 1.0 branch, so the fix is in 1.0 ->
        setting target milestone to say so.

        Show
        mmatula added a comment - This issue was fixed before we created 1.0 branch, so the fix is in 1.0 -> setting target milestone to say so.

          People

          • Assignee:
            Jakub Podlesak
            Reporter:
            eric_ekka
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: