axis2 struts整合报错

问题描述

我的步骤:根据网上的帖子一步一步的实现如下:1、下载axis2-1.6.2-war2、在我的struts项目中的web.xml中增加<servlet><servlet-name>AxisServlet</servlet-name><servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class><load-on-startup>1</load-on-startup></servlet><servlet-mapping><servlet-name>AxisServlet</servlet-name><url-pattern>/servlet/AxisServlet</url-pattern></servlet-mapping><servlet-mapping><servlet-name>AxisServlet</servlet-name><url-pattern>*.jws</url-pattern></servlet-mapping><servlet-mapping><servlet-name>AxisServlet</servlet-name><url-pattern>/services/*</url-pattern></servlet-mapping>3、拷贝axis2-1.6.2-war解压缩文件中的lib到我的lib,modules到我的WEB-INF下4、在我的WEB-INF下增加conf文件夹,将axis2-1.6.2-war解压缩文件中的axis2.xml拷贝进来5、在我的WEB-INF下增加service.xml<?xmlversion="1.0"encoding="UTF-8"?><servicename="AxisService"targetNamespace="http://www.wujianjun.org"><Description>测试spring与axis集成(web工程)</Description><parametername="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter><parametername="SpringBeanName">com.test.HelloWorld</parameter><operationname="showName"><messageReceiverclass="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/></operation><operationname="getName"><messageReceiverclass="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/></operation></service>6、修改struts.xml,让容器不拦截services/AxisService启动tomcat成功,然后在IE中尝试访问http://localhost:8080/test/services/AxisService或者http://localhost:8080/test/services/AxisService?wsdltomcat报错:07:03:39,232|ERROR|[AxisEngine]Theservicecannotbefoundfortheendpointreference(EPR)/test/services/AxisServiceorg.apache.axis2.AxisFault:Theservicecannotbefoundfortheendpointreference(EPR)/test/services/AxisService请高手帮忙。关于该类问题,网上一搜一大堆,但是未找到解决的方式

解决方案

解决方案二:
错误原因貌似是engine部署失败,导致AxisService服务部署失败。
解决方案三:
问题已经远程帮你解决啦,给分哟。问题的根源是service.xml配置的不对
解决方案四:
引用2楼hzw19810701的回复:

问题已经远程帮你解决啦,给分哟。问题的根源是service.xml配置的不对

时间: 2025-01-30 10:27:45

axis2 struts整合报错的相关文章

spring mvc与struts 整合报错

问题描述 spring mvc与struts 整合报错 报错如下求帮忙,谢谢严重: Exception starting filter struts2Unable to load configuration. - action - file:/E:/java/eclipse/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/bishe/WEB-INF/classes/struts.xml:11:74 at org.apa

ssh整合报错,出现了空指针

问题描述 ssh整合报错,出现了空指针 18-Feb-2016 23:52:29.943 INFO [RMI TCP Connection(3)-127.0.0.1] org.apache.struts2.config.AbstractBeanSelectionProvider.info Choosing bean (struts) for (org.apache.struts2.dispatcher.DispatcherErrorHandler) 18-Feb-2016 23:52:43.05

maven 整合springmvc spring myatis整合报错

问题描述 maven 整合springmvc spring myatis整合报错 java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at java.util.concurrent.FutureTask.

学习struts convention报错,搞不定,求支援

问题描述 学习struts convention报错,搞不定,求支援 web.xml: <!-- struts 配置 --> struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern&

axis2 webservice访问报错,下标越界

问题描述 axis2 webservice访问报错,下标越界 使用axis2做webservice.服务可以正常发布,在使用一个类调用服务时服务端报数组下标越界,谁可以帮忙解答一下. 服务端:public String createContract(String json){ return "aa"; } 客户端: try { call = (Call) service.createCall(); call.setTargetEndpointAddress(url); call.set

hibernate与oracle数据库整合报错

问题描述 hibernate与oracle数据库整合报错 Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException: 数据库版本与驱动版本一致,请教哪位高手指点一下.

eclipse-Eclipse struts 404报错

问题描述 Eclipse struts 404报错 谁能帮我看看上图到底哪错了吗,我都把struts简化成这样了它还给我报404错? 下面是LoginAction.java代码: import com.opensymphony.xwork2.ActionSupport; public class LoginAction extends ActionSupport{ private String username; private String password; public String ge

myeclipsespringmvc mybatis 整合报错

问题描述 myeclipsespringmvc mybatis 整合报错 Error while adding the mapper 'interface com.bdqn.mapper.HouseMapper' to configuration. org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumbe

ssh整合报错404

问题描述 struts-config.xml<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstruts-configPUBLIC"-//ApacheSoftwareFoundation//DTDStrutsConfiguration1.2//EN""http://struts.apache.org/dtds/struts-config_1_2.dtd"><