Hi all,
I created a web service with Apache CXF. When I test it, I receive this
error and I can’t see why. Who can help me?
*My test main is:*
/ public static void main(String args[]) throws Exception {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(ISessionHibernate.class);
factory.setAddress("http://localhost:8080/WMSCXF/sessionHibernate");
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
ISessionHibernate client = (ISessionHibernate) factory.create();
SessionInfoVO session=null;
session=client.getSessionInfoWithHibernate();
}/
*The error is:*
/feb 08, 2012 4:21:08 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
Informazioni: Creating Service
{http://impl.entryFlow.sca.command.logit.com/}SessionHibernateService from
WSDL: http://localhost:8080/WMSCXF/sessionHibernate?wsdl
feb 08, 2012 4:21:09 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
Informazioni: Creating Service
{http://impl.entryFlow.sca.command.logit.com/}SessionHibernateService from
WSDL: http://localhost:8080/WMSCXF/sessionHibernate?wsdl
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Marshalling
Error: class org.hibernate.impl.SessionImpl nor any of its super class is
known to this context.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
at $Proxy21.getSessionInfoWithHibernate(Unknown Source)
at com.logit.command.sca.test.Test4.main(Test4.java:20)
Caused by: org.apache.cxf.binding.soap.SoapFault: Marshalling Error: class
org.hibernate.impl.SessionImpl nor any of its super class is known to this
context.
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)/
Thank
--
View this message in context:
http://cxf.547215.n5.nabble.com/javax-xml-ws-soap-SOAPFaultException-Marshalling-Error-tp5466848p5466848.html
Sent from the cxf-user mailing list archive at Nabble.com.