You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by José Miguel Vieira <mi...@bookmarc.pt> on 2001/10/17 15:56:52 UTC
typemappings
Hello,
I'm trying to deploy a service, using a deploy.xml file, but I can't get
the typeMappings to work, and every time I try to deploy the service I get
the following error message:
Processing file: deploy.xml
<ns1:Fault xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
<ns1:faultcode
xmlns:ns4="http://xml.apache.org/axis/">ns4:Server.generalException</ns1:faultcode>
<ns1:faultstring>java.lang.reflect.InvocationTargetException: AxisFault
faultCode: http://xml.apache.org/axis/:Server.generalException
faultString: java.lang.StringIndexOutOfBoundsException: String index out
of range: -1
The deploy.xml file:
<m:deploy xmlns:m="AdminService">
<service name="EmployeeService" pivot="RPCDispatcher">
<option name="className" value="EmployeeService"/>
<option name="methodName" value="getEmployeeByLogin, getEmployee"/>
<typeMappings>
<typeMapping qname="employeeNS:Employee"
classname="pt.bookmarc.sib.objects.Employee"
serializer="pt.bookmarc.sib.objects.EmployeeSerializer"
deserializerFactory="pt.bookmarc.sib.objects.EmployeeSerializerFactory"/>
</typeMappings>
</service>
</m:deploy>
If I replace the typeMappings with the beanMappings the service is deployed.
Does anyone has any suggestions?
Thank you,
José Miguel Vieira