File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes CXF web service client migration from Tomcat to Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply locked New topic
Author

CXF web service client migration from Tomcat to Weblogic

joel king
Greenhorn

Joined: May 20, 2010
Posts: 6
Hi,

I have my CXF web service client migrate from Tomcat to Weblogic, the client works in tomcat, I am trying to configure weblogic so make the same code works, which is a client with security header will be added to the web service request. I got exception like this,

java.lang.NoSuchMethodError: org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.getString(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:159)
at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:122)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123)
at $Proxy124.getApplicationPDF(Unknown Source)
at com.lcgnet.games.webservices.applicationPDFService.ApplicationPDFClient.getApplicationPDFFile(ApplicationPDFClient.java:73)
at com.lcgnet.games.web.actions.admin.RetrieveExtWSAppFileAction.execute(RetrieveExtWSAppFileAction.java:57)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.lcgnet.games.web.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:57)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


I have the spring framework and the rest jars in the lib:
wsdl4j-1.6.1.jar
wss4j-1.5.8.jar
jaxb-api-2.0.jar
cxf-2.2.3.jar
...


Could anyone help?

Thanks,
joelking
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Please use one topic per question.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: CXF web service client migration from Tomcat to Weblogic
 
Similar Threads
StackOverflowError in weblogic at starting
Server certificate is not trusted
CXF web service client migration from tomcat to weblogic
Parameter passing method is not working in JSF 2 (with el api jars el-api-2.2.jar & el-impl-2.2.jar)
Framework : Liferay-Struts 2 on WebLogic : java.io.NotSerializableException: org.apache.struts2.port