Hello,

I have deployed basic web services with no problem using AXIS 1.1 (e.g. simple 
string and int returns using the standard java classes (java.lang, 
java.util).

However when I attempt to deploy more complex services using custom classes 
and jar files, I get a java.lang.reflect.InvocationTargetException. Is there 
anything I need to set up regarding classpath in Tomcat (4.1.27) or any AXIS 
settings I need to check as I have never had this problem come up before. It 
appears either the custom classes cannot be found or some other problem 
occurs when the service is run. No output is logged in the Tomcat log.

Note that when running outside Tomcat/Axis as a standalone application the 
code works fine (i.e. I'm sure it's not a code-related problem)

The output from TCPMON is as follows:
Request:

POST /axis/services/getTotalAuthorTitles HTTP/1.0 
Content-Type: text/xml; charset=utf-8 
Accept: application/soap+xml, application/dime, multipart/related, text/* 
User-Agent: Axis/1.1 
Host: myhost.testloc.edu.au 
Cache-Control: no-cache 
Pragma: no-cache 
SOAPAction: "" 
Content-Length: 442 
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <ns1:getTitles 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="WSTest2">
   <arg1 xsi:type="xsd:string">Smith, John</arg1>
  </ns1:getTitles>
 </soapenv:Body>
</soapenv:Envelope>

Response:

HTTP/1.1 500 Internal Server Error 
Content-Type: text/xml; charset=utf-8 
Date: Sun, 16 Nov 2003 23:23:48 GMT 
Server: Apache Coyote/1.0 
Connection: close 
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>java.lang.reflect.InvocationTargetException</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

Thanks.

Scott.

Reply via email to