论坛首页 入门技术论坛

请教spring+axis出错原因。

浏览 3827 次
该帖已经被评为新手帖
作者 正文
   发表时间:2007-01-09  
开发配置完成后发布到weblogic上去后,输入http://10.1.4.88:7001/vvgoo_ysk/axis
出现页面。
And now... Some Services
* AdminService (wsdl)
   AdminService
* Version (wsdl)
   getVersion
* YskWebservice (wsdl)

但是点击所有的(wsdl)连接,都出现404错误,是什么原因呀?


Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

   发表时间:2007-01-09  
找到原因了,我设置web.xml的时候
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/axis/*</url-pattern>
</servlet-mapping>
而spring+axis的wsdl是去/services下找的。
将上面改成
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
同时访问路径也相应地变为
http://10.1.4.88:7001/vvgoo_ysk/services

就ok了。

0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics