Yes but I generate on same folder many classes generated from differents wsdl files then ObjectFactory has been replaced by the last generated file Gaetan
________________________________ De : Raymond Feng [mailto:[email protected]] Envoyé : jeudi 1 avril 2010 00:30 À : [email protected] Objet : Re: RE : Problem with "nor any of its super class is known to this context." Thank you for sharing the results. If you generate such classes from wsimport, the ObjectFactory should have the "create" methods, right? Raymond From: Ruault Gaetan <mailto:[email protected]> Sent: Wednesday, March 31, 2010 1:59 PM To: [email protected] Subject: RE: RE : Problem with "nor any of its super class is known to this context." Hi, i also compare 1.5 and 1.6 and i see that @XmlSeeAlso code are correct in 1.6. Then, after a long debug along Tuscany classes I find that the problem is on my code. My Object Factory(@XmlRegistry) doesn't contains the create method for GetToken object. sorry for your lost time. Thanks Gaetan ________________________________ De : Raymond Feng [mailto:[email protected]] Envoyé : mercredi 31 mars 2010 18:24 À : [email protected] Objet : Re: RE : Problem with "nor any of its super class is known to this context." It seems that 1.6 release already contains the code to deal with @XmlSeeAlso. Can you open a JIRA and attach your sample with it? I can try to reproduce the problem and see what's going on. Thanks, Raymond From: Ruault Gaetan <mailto:[email protected]> Sent: Wednesday, March 31, 2010 8:26 AM To: [email protected] Subject: RE : Problem with "nor any of its super class is known to this context." Hi, I compare source from tuscany 1.6 and your svn revison but i don't find any change on @xmlSeeAlso computing. and differences between files are not only on the file JAXBContextHelper.java file, it need change on Operation and on SimpleTypeMapperImpl classes Gaetan ________________________________ ________________________________ De: Raymond Feng [mailto:[email protected]] Date: mar. 30/03/2010 18:05 À: [email protected] Objet : Re: Problem with "nor any of its super class is known to this context." We fixed this issue in 2.x to honor the @XmlSeeAlso (which in turn tells the JAXB runtime extra classes referenced) at the interface level. The fix is pretty much isolated in one class: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper We can port it to 1.x if necessary. Thanks, Raymond From: Ruault Gaetan <mailto:[email protected]> Sent: Tuesday, March 30, 2010 8:11 AM To: [email protected] Subject: Problem with "nor any of its super class is known to this context." hi, I have a service Interface like this : @WebService(name = "GetTokenPort", targetNamespace = "http://linedata.com/WS/GetToken/1.0") @XmlSeeAlso({ ObjectFactory.class, }) @Remotable public interface GetTokenPort { @WebMethod(operationName = "GetToken", action = "E6F64756A4F5562746E6562705F20514F43594D4A336F646") @WebResult(name = "transactionToken", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0") @RequestWrapper(localName = "GetToken", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0", className = "fr.maif.parnasse.webservicemi.webservice.GetToken") @ResponseWrapper(localName = "GetTokenResp", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0", className = "fr.maif.parnasse.webservicemi.webservice.GetTokenResp") public String getToken( @WebParam(name = "sessionID", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0") String sessionID, @WebParam(name = "objectType", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0") String objectType, @WebParam(name = "objectReference", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0") String objectReference, @WebParam(name = "operation", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0") String operation, @WebParam(name = "timeStamp", targetNamespace = "http://linedata.com/WS/GetToken/parts/1.0") String timeStamp) throws GetTokenFault ; } and when i call it i Get this error : org.apache.axis2.AxisFault: javax.xml.bind.MarshalException - with linked exception: [javax.xml.bind.JAXBException: class fr.maif.parnasse.webservicemi.webservice.GetToken nor any of its super class is known to this context.] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.SOAPMessageFormatter.getBytes(SOAPMessageFormatter.java:118) at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:87) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker$1.run(Axis2BindingInvoker.java:172) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:170) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:124) at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:67) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193) at $Proxy40.getToken(Unknown Source) at fr.maif.parnasse.webservicemi.modifieradressemail.impl.ModifierAdresseMailImpl.modifierAdresseMail(ModifierAdresseMailImpl.java:90) 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.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156) at org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193) at $Proxy34.modifierAdresseMail(Unknown Source) at Exec.main(Exec.java:19) Caused by: javax.xml.stream.XMLStreamException: javax.xml.bind.MarshalException - with linked exception: [javax.xml.bind.JAXBException: class fr.maif.parnasse.webservicemi.webservice.GetToken nor any of its super class is known to this context.] at org.apache.tuscany.sca.databinding.jaxb.axiom.JAXBDataSource.serialize(JAXBDataSource.java:119) at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:664) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:918) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:240) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:228) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471) at org.apache.axis2.transport.http.SOAPMessageFormatter.getBytes(SOAPMessageFormatter.java:110) ... 36 more Caused by: javax.xml.bind.MarshalException - with linked exception: [javax.xml.bind.JAXBException: class fr.maif.parnasse.webservicemi.webservice.GetToken nor any of its super class is known to this context.] at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:331) at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:257) at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(Unknown Source) at org.apache.tuscany.sca.databinding.jaxb.axiom.JAXBDataSource$1.run(JAXBDataSource.java:108) at java.security.AccessController.doPrivileged(Native Method) at org.apache.tuscany.sca.databinding.jaxb.axiom.JAXBDataSource.serialize(JAXBDataSource.java:99) ... 44 more Caused by: javax.xml.bind.JAXBException: class fr.maif.parnasse.webservicemi.webservice.GetToken nor any of its super class is known to this context. at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:242) at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:257) at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:649) at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:151) at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:185) at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:305) at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:312) at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:71) at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:490) at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:328) ... 49 more Caused by: javax.xml.bind.JAXBException: class fr.maif.parnasse.webservicemi.webservice.GetToken nor any of its super class is known to this context. at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:556) at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:644) ... 56 more can you help me to find where is my mistake thanks gaetan
