tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patel, Sanjay" <Sanjay.Pa...@nemours.org>
Subject RE: PolicyException after upgrading to tomee 1.7.2
Date Thu, 17 Sep 2015 12:21:46 GMT
Sorry I didn't get it. In my case I have some java stubs generated using wsimport which I use
to call external soap web service. What configuration I need to resolve this exception?

-----Original Message-----
From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
Sent: Wednesday, September 16, 2015 6:11 PM
To: users@tomee.apache.org
Subject: Re: PolicyException after upgrading to tomee 1.7.2

WEB-INF for a war


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog <http://rmannibucau.wordpress.com>
| Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau>
| Tomitriber <http://www.tomitribe.com>

2015-09-16 13:47 GMT-07:00 Patel, Sanjay <Sanjay.Patel@nemours.org>:

> So I need to keep this file in my  meta-inf/resources?
>
> Thanks,
> Sanjay
>
> -----Original Message-----
> From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> Sent: Wednesday, September 16, 2015 4:00 PM
> To: users@tomee.apache.org
> Subject: Re: PolicyException after upgrading to tomee 1.7.2
>
> Hi
>
> this is due to the CXF upgrade, here is a sample configuration for the 
> version of the 1.7.2:
>
>
> https://github.com/apache/tomee/blob/master/examples/webservice-ws-sec
> urity/src/main/resources/META-INF/openejb-jar.xml
> .
> I guess you are affected by the OpenEJBLoginValidator change
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog < 
> http://rmannibucau.wordpress.com> | Github 
> <https://github.com/rmannibucau>
> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <
> http://www.tomitribe.com>
>
> 2015-09-16 12:58 GMT-07:00 Patel, Sanjay <Sanjay.Patel@nemours.org>:
>
> > Sorry this is the exception.
> >
> > org.apache.cxf.interceptor.Fault: No username available
> >         at
> >
> org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandle
> r.handleBinding(TransportBindingHandler.java:161)
> >         at
> > org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$Poli
> > cy 
> > BasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutIn
> > te
> > rceptor.j
> > ava:163)
> >         at
> > org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$Poli
> > cy 
> > BasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutIn
> > te
> > rceptor.j
> > ava:90)
> >         at
> >
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
> rChain.java:263)
> >         at
> org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
> >         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
> >         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
> >         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
> >         at
> > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
> >         at
> > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:137)
> >         at 
> > com.sun.proxy.$Proxy199.getScheduleDaysForProvider(Unknown
> > Source)
> >         at
> >
> org.nemours.onlinescheduling.service.ProviderServiceImpl.findProviderO
> penSlotsFromEpic(ProviderServiceImpl.java:165)
> >         at
> >
> org.nemours.onlinescheduling.service.ProviderServiceImpl.findFirstAvai
> labelOpenSlot(ProviderServiceImpl.java:62)
> >         at
> >
> org.nemours.onlinescheduling.service.ProviderServiceImpl.findFirstAvai
> labelOpenSlotWithNextFewDays(ProviderServiceImpl.java:96)
> >         at
> >
> org.nemours.onlinescheduling.web.controller.ProviderController.lambda$
> convertToProviderInfoList$27(ProviderController.java:220)
> >         at
> > org.nemours.onlinescheduling.web.controller.ProviderController$$Lamb
> > da
> > $25/207739779.accept(Unknown
> > Source)
> >         at
> > java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
> >         at java.util.stream.ReferencePipeline$Head.forEach(Unknown
> Source)
> >         at
> >
> org.nemours.onlinescheduling.web.controller.ProviderController.convert
> ToProviderInfoList(ProviderController.java:218)
> >         at
> >
> org.nemours.onlinescheduling.web.controller.ProviderController.findPro
> vidersForZipcode(ProviderController.java:101)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> >         at java.lang.reflect.Method.invoke(Unknown Source)
> >         at
> >
> org.springframework.web.method.support.InvocableHandlerMethod.doInvoke
> (InvocableHandlerMethod.java:221)
> >         at
> >
> org.springframework.web.method.support.InvocableHandlerMethod.invokeFo
> rRequest(InvocableHandlerMethod.java:137)
> >         at
> >
> org.springframework.web.servlet.mvc.method.annotation.ServletInvocable
> HandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
> >         at
> >
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHa
> ndlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)
> >         at
> >
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHa
> ndlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)
> >         at
> >
> org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapte
> r.handle(AbstractHandlerMethodAdapter.java:85)
> >         at
> >
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServlet.java:943)
> >         at
> >
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servlet.java:877)
> >         at
> >
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkServlet.java:966)
> >         at
> >
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.java:857)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
> >         at
> >
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServ
> let.java:842)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:303)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> >         at
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> >        at
> >
> org.nemours.onlinescheduling.filter.StaticResourcesProductionFilter.do
> Filter(StaticResourcesProductionFilter.java:44)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> >         at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> lve.java:220)
> >         at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> lve.java:122)
> >         at
> > org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
> >         at
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
> orBase.java:505)
> >         at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> va:170)
> >         at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va:103)
> >         at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
> >         at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
> e.java:116)
> >         at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :423)
> >         at
> >
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp1
> 1Processor.java:1079)
> >         at
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(A
> bstractProtocol.java:620)
> >         at
> >
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint
> .java:316)
> >         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> > Source)
> >         at 
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> > Source)
> >         at
> >
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThr
> ead.java:61)
> >         at java.lang.Thread.run(Unknown Source) Caused by:
> > org.apache.cxf.ws.policy.PolicyException: No username available
> >         at
> >
> org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder
> .policyNotAsserted(AbstractBindingBuilder.java:308)
> >         at
> >
> org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder
> .addUsernameToken(AbstractBindingBuilder.java:821)
> >         at
> >
> org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandle
> r.addSignedSupportingTokens(TransportBindingHandler.java:98)
> >         at
> >
> org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandle
> r.handleNonEndorsingSupportingTokens(TransportBindingHandler.java:176)
> >         at
> >
> org.apache.cxf.ws.security.wss4j.policyhandlers.TransportBindingHandle
> r.handleBinding(TransportBindingHandler.java:150)
> >         ... 60 more
> >
> >
> > From: Patel, Sanjay [mailto:Sanjay.Patel@nemours.org]
> > Sent: Wednesday, September 16, 2015 11:47 AM
> > To: users@tomee.apache.org
> > Subject: PolicyException after upgrading to tomee 1.7.2
> >
> >
> > Hi,
> >
> >
> >
> > After upgrading to tome 1.7.2 from tome 1.5.2, I get below exception 
> > when I call secure soap web service. What do I need to change?
> >
> >
> >
> > [cid:image001.png@01D0F075.6C272910]
> >
>
Mime
View raw message