javaee / metro-wsit

https://javaee.github.io/metro-wsit/
Other
9 stars 24 forks source link

SecurityPolicy: sp:AlgorithmSuite/wsp:Policy/sp:XPathFilter20 assertion causes deploy failure #14

Open glassfishrobot opened 18 years ago

glassfishrobot commented 18 years ago

onfiguration: jax-ws-latest-wsit.zip build 91 ; tomcat5.5.17 / glassfish-tip (build 43,may-01-2006)

Attachments: 1)Service wsdl (PingServices44.wsdl). 2)Snip of server log showing the exception stack trace. [ catalina.out ]

Test case description : Service wsdl has the following : Endpoint scope policy: SymmetricBinding with X509V3Token10 as the Protection token.The sp:AlgorithmSuite assertion specifies TripleDes as the [AlgorithmSuite] property.Also the sp:XPathFilter20 assertion is used to set the [XPath] property to 'XPath20'. The use of the sp:XPathFilter20 causes deploy failure with the following message in the server log :

May 10, 2006 5:06:23 PM com.sun.xml.ws.transport.http.servlet.WSServletContextLi stener contextInitialized INFO: WSSERVLET12: JAX-WS context listener initializing May 10, 2006 5:06:23 PM com.sun.xml.ws.transport.http.servlet.WSServletContextLi stener contextInitialized SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.RuntimeException: com.sun.xml.ws.security.impl.policy.UnsupportedPolicyAss ertion: Policy assertion Assertion { assertion data

{ namespace = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy' prefix = 'sp' local name = 'XPathFilter20' value = 'null' no attributes }

no nested assertions no nested policy } is not supported under AlgorithmSuite assertion java.lang.RuntimeException: com.sun.xml.ws.security.impl.policy.UnsupportedPolicyAss ertion: Policy assertion Assertion { assertion data

{ namespace = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy' prefix = 'sp' local name = 'XPathFilter20' value = 'null' no attributes }

no nested assertions no nested policy } is not supported under AlgorithmSuite assertion at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.(Secur ityPipeBase.java:268) at com.sun.xml.wss.jaxws.impl.SecurityServerPipe.(Sec urityServerPipe.java:147) at com.sun.xml.ws.runtime.PipelineAssemblerFactoryImpl$1.cr eateServer(PipelineAssemblerFactoryImpl.java:208) at com.sun.xml.ws.server.WSEndpointImpl.(WSEndpointIm pl.java:91) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(End pointFactory.java:197) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.j ava:291) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser .parseAdapters(DeploymentDescriptorParser.java:237) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser .parse(DeploymentDescriptorParser.java:131) at com.sun.xml.ws.transport.http.servlet.WSServletContextLi stener.contextInitialized(WSServletContextListener.java: 90) at org.apache.catalina.core.StandardContext.listenerStart(S tandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardC ontext.java:4187) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(Containe rBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardH ost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostCon fig.java:809) at org.apache.catalina.startup.HostConfig.deployApps(HostCo nfig.java:497) at org.apache.catalina.startup.HostConfig.check(HostConfig. java:1204) at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati ngMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseMod elMBean.java:503) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Dynam icMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl .java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.in voke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanSe rver.java:784) at org.apache.catalina.manager.ManagerServlet.check(Manager Servlet.java:1377) at org.apache.catalina.manager.ManagerServlet.deploy(Manage rServlet.java:636) at org.apache.catalina.manager.ManagerServlet.doPut(Manager Servlet.java:423) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 712) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 802) at org.apache.catalina.core.ApplicationFilterChain.internal DoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(Sta ndardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(Sta ndardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invo ke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(Standa rdHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(Error ReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(Stan dardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(Coyo teAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11P rocessor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11Connec tionHandler.processConnection(Http11BaseProtocol.java:66 4) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.ru nIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnabl e.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: com.sun.xml.ws.security.impl.policy.UnsupportedPolicyAss ertion: Policy assertion Assertion { assertion data

{ namespace = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy' prefix = 'sp' local name = 'XPathFilter20' value = 'null' no attributes }

no nested assertions no nested policy } is not supported under AlgorithmSuite assertion at com.sun.xml.ws.security.impl.policy.AlgorithmSuite.popul ate(AlgorithmSuite.java:173) at com.sun.xml.ws.security.impl.policy.AlgorithmSuite.getDi gestAlgorithm(AlgorithmSuite.java:89) at com.sun.xml.ws.security.impl.policyconv.SignatureTargetC reator.newQNameSignatureTarget(SignatureTargetCreator.ja va:74) at com.sun.xml.ws.security.impl.policyconv.IntegrityAsserti onProcessor.process(IntegrityAssertionProcessor.java:87) at com.sun.xml.ws.security.impl.policyconv.BindingProcessor .addPrimaryTargets(BindingProcessor.java:149) at com.sun.xml.ws.security.impl.policyconv.SymmetricBinding Processor.process(SymmetricBindingProcessor.java:120) at com.sun.xml.ws.security.impl.policyconv.XWSSPolicyGenera tor.process(XWSSPolicyGenerator.java:182) at com.sun.xml.ws.security.impl.policyconv.XWSSPolicyGenera tor.process(XWSSPolicyGenerator.java:147) at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.constructPol icyHolder(SecurityPipeBase.java:1132) at com.sun.xml.wss.jaxws.impl.SecurityServerPipe.addIncomin gProtocolPolicy(SecurityServerPipe.java:633) at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.buildProtoco lPolicy(SecurityPipeBase.java:1108) at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.collectPolic ies(SecurityPipeBase.java:697) at com.sun.xml.wss.jaxws.impl.SecurityPipeBase.(Secur ityPipeBase.java:265) ... 44 more May 10, 2006 5:06:23 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart May 10, 2006 5:06:23 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/jaxws-s45] startup failed due to previous errors May 10, 2006 5:06:23 PM com.sun.xml.ws.transport.http.servlet.WSServletContextLi stener contextDestroyed INFO: WSSERVLET13: JAX-WS context listener destroyed

glassfishrobot commented 18 years ago

Reported by venu@java.net

glassfishrobot commented 18 years ago

venu@java.net said: will be fixed for FCS

glassfishrobot commented 18 years ago

venu@java.net said: correcting the bug type for better tracking

glassfishrobot commented 17 years ago

mayankmishra@java.net said: reassigning

glassfishrobot commented 17 years ago

venu@java.net said: reassign to Kumar

glassfishrobot commented 17 years ago

venu@java.net said: Changed wrong bug by mistake.

glassfishrobot commented 16 years ago

mmatula@java.net said: Setting target milestone to force a new evaluation as this issue was targeted for one of the past releases.

glassfishrobot commented 18 years ago

Was assigned to venu@java.net

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA WSIT-14