首先。贴个异常:
HTTP Status 500 - File "/axis2-web/listSingleService.jsp" not found
type Exception report
message File "/axis2-web/listSingleService.jsp" not found
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: File "/axis2-web/listSingleService.jsp" not found恶心吧!
org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.axis2.transport.http.AbstractAgent.renderView(AbstractAgent.java:119)
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:200)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:186)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.security.config.debug.DebugFilter.invokeWithWrappedRequest(DebugFilter.java:69)
org.springframework.security.config.debug.DebugFilter.doFilter(DebugFilter.java:58)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
无非就是servcies.xml里找不到你要请求的webservcies名称而已。
好咱们来分析问题
1.servcies.xml是否配置正确的<service name="serviceName"> 名称 --->不知道在哪是吧,查看我的另一篇文章spring+axis2集成发布wsdl去
2.确定请求http://localhost:8080/project/services/serviceName?wsdl 一致了。OK ,请查看application*.xml文件中是否有注入这么一段话:
<!-- 配置axis2交给spring管理,该配置必须存在 -->
<bean id="applicationContext"
class="org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder" />
3.第二步也OK了。异常如旧。不知道咋搞了吧。。哈哈......
接下里就是考验的时候了。反正我这次碰到的奇葩问题就是:
services方法的参数bean中的其中一个属性未给get-set方法。
总之碰到问题要淡定,一点点的去查,心态好了,什么都好搞定。做个记录!