Apache CXF Web Services Book Forum

Image of Apache CXF Web Service Development


Forum about Apache CXF Web Service Development Book and CXF.

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Forum » CXF Services Book » Apache CXF Web Service Book Forum » Error Running in glassh fish v2.1

Pages: [1]
Author Topic: Error Running in glassh fish v2.1
takepmpexam
Member
Posts: 3
Post Error Running in glassh fish v2.1
on: February 19, 2010, 20:34

Hi , I get this error when i run the client inside Eclipse. The Server code is running via Glasshfish Server (v 2.1) . Please help . If i run the server/client using the Ant Build targets it is running fine .

Client Error :
.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws
m.RMAssertionBuilder]; root of factory hierarchy
[java] Feb 19, 2010 3:26:44 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
[java] INFO: Creating Service {http://order.demo/}OrderProcessService from class demo.order.OrderProcess
[java] Exception in thread “main” javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
[java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
[java] at $Proxy32.processOrder(Unknown Source)
[java] at demo.order.client.Client.main(Client.java:27)
[java] Caused by: org.apache.cxf.binding.soap.SoapFault: Fault occurred while processing.
[java] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
[java] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
[java] at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
[java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
[java] at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96
[java] at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
[java] at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
[java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
[java] at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:672)
[java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2210)
[java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2087)
[java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1985)

Server Error :

[#|2010-02-19T15:26:45.010-0500|WARNING|sun-appserver2.1|org.apache.cxf.phase.PhaseInterceptorChain|_ThreadID=19;_ThreadName=httpSSLWorkerThread-9080-0;_RequestID=42d1df0d-2554-4d5d-af97-2a61c40ab32b;|Application {http://order.demo/}OrderProcessImplService#{http://order.demo/}processOrder has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:85)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:60)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)

Naveen
Administrator
Posts: 13
Post Re: Error Running in glassh fish v2.1
on: February 19, 2010, 20:46

Can you let me know which chapter code are you trying to run or the code is from one of the posts.
Most likely the web service client that you are running would be different.

takepmpexam
Member
Posts: 3
Post Re: Error Running in glassfish v2.1
on: February 19, 2010, 21:24

Thanks for your reply ..I am trying to run it from Chapter 2 . I followed exactly from this link .Instead of using Jetty Server (build –> Server ) I am just deploying it in GlassFish v2.1 .Please let me know Thanks

http://cxf.soaweb.co.in/index.php/2010/02/07/creating-cxf-web-services-using-xsd-first-approach/

Naveen
Administrator
Posts: 13
Post Re: Error Running in glassh fish v2.1
on: February 21, 2010, 06:41

I haven’t deployed CXF application with GlassFish server. But you probably need to delete some dependent library which is already provided with Glassfish METRO implementation.I will download GlassFish and check whats required and would follow up with a post.

takepmpexam
Member
Posts: 3
Post Re: Error Running in glass fish v2.1
on: February 21, 2010, 12:55

Thanks and Please keep me posted !!

Pages: [1]
Forum Server by: Vast HTML, Version: 1.3
Page loaded in: 0.054 seconds.


Post to Twitter Tweet This Post Post to Delicious Delicious Post to Digg Digg This Post