Happy to see you happy again. Werner
Jan Verhamme wrote: > Hello, > > Just to keep you informed. I have solved my problem. > Apparently a stable version of jaxen (version 1.1.1) was added to our > framework (it used to be the beta-10 version). The jaxen pom.xml in our > maven repository contained dependencies that shouldn't have been there > (xercesImpl-2-6-2, xmlParserAPIs-2-6-2 and xalan-2-6-2). > > Removing them solved my problem. > > Kind regards > Jan Verhamme > > Werner Guttmann schreef: >> HI Jan, >> >> if I wwre you, I'd ask the same question at the spring-ws mailing >> list/forum, maybe pointing out that you are under the impression that a >> <Fault> element should be dealt with by the framework and not the be >> passed to an underlying XML data binding framework. >> >> Werner >> >> Jan Verhamme wrote: >>> Hello, >>> >>> Indeed I'm not mapping this Fault class at all. >>> >>> What do you suggest that I do? >>> >>> Kind regards >>> Jan Verhamme >>> >>> >>> >>> Werner Guttmann schreef: >>>> Hi, >>>> >>>> are you actually 'mapping' a Fault class at all ? If not, it looks like >>>> Spring-WS is passing the content of a <SOAP:Fault> element to Castor, >>>> which imho it should not. >>>> >>>> Werner >>>> >>>> Jan Verhamme wrote: >>>>> Hello, >>>>> >>>>> Recently I upgraded towards Spring-WS 1.5.4 and Castor 1.2. I used to >>>>> have a working webservice client using Spring-WS 1.5.0 and Castor 1.1.1. >>>>> The client also uses XWWS (basic authentication). >>>>> >>>>> When testing the client I receive the following error-message below. >>>>> >>>>> Does anybody know what is causing error? >>>>> >>>>> Thank you >>>>> Kind regards >>>>> Jan >>>>> >>>>> >>>>> 17-okt-2008 10:42:44 >>>>> com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory createEnvelope >>>>> SEVERE: SAAJ0511: Unable to create envelope from given source >>>>> 17-okt-2008 10:42:44 com.sun.xml.wss.impl.SecurableSoapMessage >>>>> findSoapHeader >>>>> SEVERE: WSS0369: Error getting SOAPHeader from SOAPEnvelope due to >>>>> Unable to create envelope from given source: >>>>> 10:42:44,287 WARN [XwsSecurityInterceptor] Could not validate request: >>>>> com.sun.xml.wss.XWSSecurityException: >>>>> com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create >>>>> envelope from given source: ; nested exception is >>>>> com.sun.xml.wss.XWSSecurityException: >>>>> com.sun.xml.wss.XWSSecurityException: >>>>> com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create >>>>> envelope from given source: >>>>> org.springframework.oxm.castor.CastorUnmarshallingFailureException: >>>>> Castor unmarshalling exception: The class for the root element 'Fault' >>>>> could not be found.; nested exception is >>>>> org.exolab.castor.xml.MarshalException: The class for the root element >>>>> 'Fault' could not be found. >>>>> at >>>>> org.springframework.oxm.castor.CastorUtils.convertXmlException(CastorUtils.java:50) >>>>> at >>>>> org.springframework.oxm.castor.CastorMarshaller.convertCastorException(CastorMarshaller.java:431) >>>>> at >>>>> org.springframework.oxm.castor.CastorMarshaller.unmarshalDomNode(CastorMarshaller.java:335) >>>>> at >>>>> org.springframework.oxm.AbstractMarshaller.unmarshalDomSource(AbstractMarshaller.java:292) >>>>> at >>>>> org.springframework.oxm.AbstractMarshaller.unmarshal(AbstractMarshaller.java:122) >>>>> at >>>>> org.springframework.ws.support.MarshallingUtils.unmarshal(MarshallingUtils.java:65) >>>>> at >>>>> org.springframework.ws.client.core.WebServiceTemplate$3.extractData(WebServiceTemplate.java:373) >>>>> at >>>>> org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:559) >>>>> at >>>>> org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:501) >>>>> at >>>>> org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:350) >>>>> at >>>>> org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:344) >>>>> at >>>>> org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:336) >>>>> at >>>>> be.ugent.doza.aandoct.webservice.service.phd.PhdServiceImpl.getPhdList(PhdServiceImpl.java:77) >>>>> at >>>>> be.ugent.doza.aandoct.midtier.webservice.phd.PhdServiceImplTest.testGetPhds(PhdServiceImplTest.java:89) >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> at >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>> at >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>> at >>>>> org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:163) >>>>> at >>>>> org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233) >>>>> at >>>>> org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333) >>>>> at >>>>> org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217) >>>>> at >>>>> org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197) >>>>> at >>>>> org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143) >>>>> at >>>>> org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:142) >>>>> at >>>>> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) >>>>> at >>>>> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) >>>>> at >>>>> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) >>>>> at >>>>> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) >>>>> at >>>>> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) >>>>> at >>>>> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) >>>>> at >>>>> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >>>>> at >>>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) >>>>> at >>>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) >>>>> at >>>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) >>>>> at >>>>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) >>>>> Caused by: org.exolab.castor.xml.MarshalException: The class for the >>>>> root element 'Fault' could not be found. >>>>> at >>>>> org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:761) >>>>> at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:640) >>>>> at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:747) >>>>> at >>>>> org.springframework.oxm.castor.CastorMarshaller.unmarshalDomNode(CastorMarshaller.java:332) >>>>> ... 33 more >>>>> Caused by: org.xml.sax.SAXException: The class for the root element >>>>> 'Fault' could not be found. >>>>> at >>>>> org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1589) >>>>> at >>>>> org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1486) >>>>> at >>>>> org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:246) >>>>> at >>>>> org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:183) >>>>> at >>>>> org.exolab.castor.xml.util.DOMEventProducer.start(DOMEventProducer.java:111) >>>>> at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:637) >>>>> ... 35 more >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe from this list, please visit: >>>>> >>>>> http://xircles.codehaus.org/manage_email >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

