WebService问题

1.报错:

 

javax.servlet.ServletException: javax.servlet.ServletException: org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing
	org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:462)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	java.lang.Thread.run(Thread.java:619)

 因为没有引入axis的modules文件夹到工程的WEB-INF目录

 

 

2.报错:

org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: null

原因是在要通过soap协议传输的POJO对象(主要是getter/setter方法)中包含了不能序列化的对象。。因为有些属性没有办法序列化,我最后又封装了一层,这样才成功

 

3.返回对象中不能有list,要转成数组

你可能感兴趣的:(webservice)