Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 46549 invoked from network); 4 Sep 2003 09:25:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Sep 2003 09:25:51 -0000 Received: (qmail 89540 invoked by uid 500); 4 Sep 2003 09:25:14 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 89478 invoked by uid 500); 4 Sep 2003 09:25:12 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 89458 invoked from network); 4 Sep 2003 09:25:12 -0000 Date: Thu, 04 Sep 2003 11:25:13 +0200 To: axis-dev@ws.apache.org Subject: Serializer not found Content-Type: text/plain; charset=iso-8859-15; format=flowed From: Adam Wasserman Organization: marviQ MIME-Version: 1.0 Message-ID: User-Agent: Opera7.11/Win32 M2 build 2887 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello all, I am having a problem getting Axis to use the Serializer I have provided. I am using the EJB provider within Tomcat to invoke a bean in JBoss running somewhere else. I can successfully deploy the service. The test client is able to send the request, which Axis forwards to the bean in JBoss. The problem arises when the array of objects returned (they are called Weeks) needs to be serialized. The request itself sends no arguments. Tomcat's localhost_log records this Exception: 2003-09-04 11:08:57 StandardWrapperValve[AxisServlet]: Servlet.service() for servlet AxisServlet threw exception AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.IOException: No serializer found for class com.marviq.apps.util.Week in registry org.apache.axis.encoding.TypeMappingImpl@e4e358 faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: java.io.IOException: No serializer found for class com.marviq.apps.util.Week in registry org.apache.axis.encoding.TypeMappingImpl@e4e358 at org.apache.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1281) at org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:795) at org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(SerializationContextImpl.java:866) at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:179) at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509) at org.apache.axis.message.MessageElement.output(MessageElement.java:783) at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270) at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:483) at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:375) at org.apache.axis.Message.getContentType(Message.java:399) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:887) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) etc. The service is deployed with a TypeMapping, which I show below: Interestingly enough, I see in the axis.log that the WeekSerializerFactory is being instantiated. However, the getSerializerAs() is never called. My suspicion is that I'm missing something terribly important about namespaces. I hope this question doesn't sound completely ignorant. Anybody have any ideas? I'd very much appreciate it! Adam -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/