0 Replies Latest reply on Sep 1, 2016 9:13 AM by ranjithkumar250492

    Use native jaxws- ri instead of cxf for SOAP service in jboss EAP 6.4.5 GA

    ranjithkumar250492

      I have generated the SOAP service client and STUB classes using the jaxws-ri standards. While running the client from standalone java the service is giving the response perfectly. Were, If i tried by hitting it through jboss EAP 6.4.5 GA server I am getting the following exception. Is there any way that I could avoid cxf and use native jaxws-ri in jboss for soap services

       

      10:19:46,853 ERROR [stderr] (http-/127.0.0.1:8080-1) javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied.

      10:19:46,870 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:158)

      10:19:46,872 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.sun.proxy.$Proxy143.getAsset(Unknown Source)

      10:19:46,885 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      10:19:46,887 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      10:19:46,889 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      10:19:46,892 ERROR [stderr] (http-/127.0.0.1:8080-1) at java.lang.reflect.Method.invoke(Method.java:498)

      10:19:46,894 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168)

      10:19:46,897 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269)

      10:19:46,899 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227)

      10:19:46,902 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216)

      10:19:46,904 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:561)

      10:19:46,906 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543)

      10:19:46,908 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128)

      10:19:46,911 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)

      10:19:46,917 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)

      10:19:46,919 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)

      10:19:46,921 ERROR [stderr] (http-/127.0.0.1:8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      10:19:46,923 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

      10:19:46,925 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      10:19:46,930 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

      10:19:46,932 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

      10:19:46,934 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)

      10:19:46,937 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

      10:19:46,946 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

      10:19:46,948 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

      10:19:46,950 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

      10:19:46,951 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)

      10:19:46,953 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

      10:19:46,955 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

      10:19:46,957 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)

      10:19:46,959 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)

      10:19:46,960 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

      10:19:46,962 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)

      10:19:46,965 ERROR [stderr] (http-/127.0.0.1:8080-1) at java.lang.Thread.run(Thread.java:745)

      10:19:46,967 ERROR [stderr] (http-/127.0.0.1:8080-1) Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied.

      10:19:46,969 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.ws.policy.EffectivePolicyImpl.chooseAlternative(EffectivePolicyImpl.java:192)

      10:19:46,972 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.ws.policy.EffectivePolicyImpl.chooseAlternative(EffectivePolicyImpl.java:185)

      10:19:46,973 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.ws.policy.EffectivePolicyImpl.initialise(EffectivePolicyImpl.java:92)

      10:19:46,976 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.ws.policy.PolicyEngineImpl.getEffectiveClientRequestPolicy(PolicyEngineImpl.java:200)

      10:19:46,977 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.ws.policy.PolicyOutInterceptor.handle(PolicyOutInterceptor.java:98)

      10:19:46,979 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:44)

      10:19:46,981 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)

      10:19:46,983 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)

      10:19:47,000 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)

      10:19:47,002 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)

      10:19:47,004 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)

      10:19:47,006 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)

      10:19:47,008 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:136)

      10:19:47,010 ERROR [stderr] (http-/127.0.0.1:8080-1) ... 37 more