axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oliver.kowa...@t-online.de (Oliver Graemer)
Subject AXIS + JRun -> Array - Deserializer exception
Date Tue, 05 Mar 2002 19:01:02 GMT
Hi,

I've made a simple soap-java-client (with axis nightly build 03.03.2002) 
which retrieves an array of user defined types ('Buchung') from a 
.NET-WebService. 
If I deploy it on my development server (TOMCAT 4.0.1) all works as expected.
If I deploy it on our production server (JRUN 3.1) I get this exception 
thrown:

'org.xml.sax.SAX.Exception : No deserializier defined for array type 
urn:MyURN:Buchung.'

In the webapp folder  (on JRun) of the java-client I've deployed an 
'lib'-directory with following jar-files:
axis.jar
common-logging.jar
jdom.jar
xerces.jar

I think the problem is related to XML parsing on the JRun-Server?! But I'm 
not sure.
The problem is, I've to show my boss an working example!
I hope someone of you can help me.

with best regards,
Oliver

code from the WSDL2Java generated  SvcSoapStub class :
...
Class beansf = 
org.apache.axis.encoding.ser.BeanSerializerFactory.class; 
Class beandf = 
org.apache.axis.encoding.ser.BeanDeserializerFactory.class; 
Class arraysf = 
org.apache.axis.encoding.ser.ArraySerializerFactory.class; 
Class arraydf = 
org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; 
...
qName = new javax.xml.rpc.namespace.QName("urn:MyURN", 
"ArrayOfBuchung"); 
            cachedSerQNames.add(qName);
            cls = Test.Buchung[].class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(arraysf);
            cachedDeserFactories.add(arraydf);

qName = new javax.xml.rpc.namespace.QName("urn:MyURN", "Buchung");
            cachedSerQNames.add(qName);
            cls = Test.Buchung.class;
            cachedSerClasses.add(cls);
            cachedSerFactories.add(beansf);
            cachedDeserFactories.add(beandf);
...
For me it looks ok.

Mime
View raw message