spring+axis2奇葩问题吐槽

首先。贴个异常:

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方法。

总之碰到问题要淡定,一点点的去查,心态好了,什么都好搞定。做个记录!


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值