軸ClassNotFoundExceptionが:は、私は枢軸Webサービスでカスタムオブジェクトを返すようにしようとすると、私は次のエラーを取得しています
aug 22, 2017 12:11:52 PM org.apache.axis.deployment.wsdd.WSDDService deployTypeMapping
SEVERE: Unable to deploy typemapping: {http://server}Case
java.lang.ClassNotFoundException: server._case
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1269)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1104)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
私のケースクラスを見つけることができないWebサービスのように思えるが、それは、WSDLで定義されています。
これは私のコードです: ケース:
package server;
import java.io.Serializable;
public class Case implements Serializable {
private static final long serialVersionUID = -1549174508068625157L;
private String id;
public Case() {
}
public Case(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
CaseServiceImpl:
package server;
public class CaseServiceImpl implements CaseService {
//This one works
@Override
public String hello(String message) {
return message;
}
//This one doesn't show up
@Override
public Case test() {
return new Case("TR-1");
}
}
CaseServiceImpl.wsdl(自動生成):
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://server" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://server" xmlns:intf="http://server" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://server" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="test">
<complexType/>
</element>
<element name="testResponse">
<complexType>
<sequence>
<element name="testReturn" type="impl:Case"/>
</sequence>
</complexType>
</element>
<complexType name="Case">
<sequence>
<element name="id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="hello">
<complexType>
<sequence>
<element name="message" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="helloResponse">
<complexType>
<sequence>
<element name="helloReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="testResponse">
<wsdl:part element="impl:testResponse" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:message name="helloResponse">
<wsdl:part element="impl:helloResponse" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:message name="helloRequest">
<wsdl:part element="impl:hello" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:message name="testRequest">
<wsdl:part element="impl:test" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="CaseServiceImpl">
<wsdl:operation name="test">
<wsdl:input message="impl:testRequest" name="testRequest">
</wsdl:input>
<wsdl:output message="impl:testResponse" name="testResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="hello">
<wsdl:input message="impl:helloRequest" name="helloRequest">
</wsdl:input>
<wsdl:output message="impl:helloResponse" name="helloResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CaseServiceImplSoapBinding" type="impl:CaseServiceImpl">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="test">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="testRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="testResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="hello">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="helloRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="helloResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CaseServiceImplService">
<wsdl:port binding="impl:CaseServiceImplSoapBinding" name="CaseServiceImpl">
<wsdlsoap:address location="http://localhost:8080/MORPOC_SOAP/services/CaseServiceImpl"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
私が行方不明ですように私は感じます私は何かを知りません。誰かが私を正しい方向に向けることができますか?
なぜこれがdownvotedでしたか? –