我正在开发一项网络服务,这给了我一个特殊的错误。当我从SOAP UI中点击任何操作时,它会给我这个错误:
[2/26/14 4:46:58:179 EST] 0000006b AxisEngine E org.apache.axis2.engine.AxisEngine receive java.lang.InstantiationException: com.raghav.RaghavService
org.apache.axis2.AxisFault: java.lang.InstantiationException: com.raghav.RaghavService
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:242)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:208)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:1544)
当我启动我的服务器(WAS 8.5)时,我收到此错误:
CWNEN0009E: The injection engine failed to process the XML code from the deployment descriptor due to the following error: An injection target for the com.raghav.RaghavService/raghavFacade reference cannot be processed because neither the setRaghavFacade method nor the raghavFacade field exist on the com.raghav.RaghavService class.
在soap UI中,当我尝试运行操作时出现此错误:
<faultcode>axis2ns1:Server</faultcode>
<faultstring>Internal Error</faultstring>
编辑:
RaghavService.java:
package com.raghav.RaghavService;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.ejb.EJB;
import javax.jws.WebResult;
import javax.jws.WebService;
@WebService
public class RaghavService {
@EJB
RaghavLocal raghavFacade;
@WebResult(name = "updateMyResponse")
public MyResponse updateMyResponse(Remit remit) {
return response;
}
}
我在这里分裂我的头发,但我无法理解造成这个问题的原因。非常感谢任何帮助。