Can't find serializer...
kanno Jun 9, 2005 8:39 PMHeya all,
I followed all the instructions on the wiki page to create a document literal web service. I've wrapped my original interface and I'm returning an array of objects in a bean. The web service call comes in a-ok, but when trying to write the response, I get the message:
java.io.IOException: No serializer found for class profiles.SeacProfileBean in registry org.jboss.axis.encoding.TypeMappingImpl@d9d6ae at org.jboss.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1484)
In the .wsdd file published on the server (in the data directory):
<typeMapping qname='ns2:SeacProfileBean' xmlns:ns2='http://service.profiles/types' type='java:profiles.SeacProfileBean' serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory' deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory' encodingStyle=''> <typeDesc> <elementDesc fieldName='profileName' xmlName='profileName'/> <elementDesc fieldName='username' xmlName='username'/> <elementOrder> <element name='profileName'/> <element name='username'/> </elementOrder> </typeDesc> </typeMapping>
When I turn on "DEBUG" for org.jboss.axis... I see where the error is occurring...
2005-06-09 14:11:46,750 DEBUG [org.jboss.axis.utils.BeanPropertyDescriptor] got: [Lprofiles.SeacProfileBean;@13a0067 2005-06-09 14:11:46,750 DEBUG [org.jboss.axis.encoding.ser.BeanSerializer] Item type is null 2005-06-09 14:11:46,750 DEBUG [org.jboss.axis.encoding.SerializationContextImpl] Enter:getSerializer: [class=class profiles.SeacProfileBean,xmlType=null]
I'm wondering why there's a little L in front of this line:
2005-06-09 14:11:46,750 DEBUG [org.jboss.axis.utils.BeanPropertyDescriptor] got: [Lprofiles.SeacProfileBean;@13a0067
Anyone else come across a problem like this? Seems like the type mapping has been registered... not sure why it can't be found. Is there a way to see what type mappings are registered?
Thanks,
Ryan
p.s. I've created an ant build file that simplifies deploying a JBoss web service if anyone is interested, I'll post a link on the wiki.