Hi guys,
I'm involed in a project where session beans need to be exposed as web services (WS). The trouble is that the methods to be exposed as WS return complex object generated by JAXB compiler upon the XML schema. When I try with simple objects or JavaBeans everything works fine. But with JAXB objects I'm getting the following error:
Caused by: java.io.IOException: java.io.IOException: No serializer found for class java.lang.Class in registry org.jboss.axis.encoding.TypeMappingImpl@fa7139
at org.jboss.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:362)
at org.jboss.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1453)
at org.jboss.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:892)
at org.jboss.axis.message.RPCParam.serialize(RPCParam.java:265)
at org.jboss.axis.message.RPCElement.outputImpl(RPCElement.java:445)
at org.jboss.axis.message.SOAPElementAxisImpl.output(SOAPElementAxisImpl.java:1449)
at org.jboss.axis.message.SOAPBodyAxisImpl.outputImpl(SOAPBodyAxisImpl.java:157)
at org.jboss.axis.message.SOAPEnvelopeAxisImpl.outputImpl(SOAPEnvelopeAxisImpl.java:588)
at org.jboss.axis.message.SOAPElementAxisImpl.output(SOAPElementAxisImpl.java:1449)
at org.jboss.axis.MessagePart.writeTo(MessagePart.java:299)
All JAXB objects have one attribute named version which is of type java.lang.Class but even if I remove it the problem will remain. Do you have any idea what to do? I'm using JBoss 4.0.2, j2se1.4.2_08 and jwsdp 1.5. The webservices are declared as rpcliteral (or rpcencoded - the result is the same).
Any help or hint is appreciated. Thanks in advance.
Michal
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884538#3884538
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884538
|