温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

weblogic 部署后出现Error 404–Not Found

发布时间:2020-07-23 05:17:20 来源:网络 阅读:19559 作者:Mr_sheng 栏目:建站服务器


weblogic 部署后出现Error 404–Not Found

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.


遇到一个问题,就是将一个webservice工程发布到linux下weblogic中,

1) 发布在本地tomcat中:http://localhost:8080/npmService/services可以正确的得到wsdl文件一览

2) 发布Weblogic后,修改web.xml文件

< !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">后weblogic能够正常启动

3) 通过:http://localhost:8080/console,能够正常登录到weblogic控制台

4) 输入http://localhost:8080/npmService/services出现上面404错误

5) 解决方法

添加weblogic.xml文件到web.xml同级目录,内容为:

http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

 

< jsp-descriptor>

< jsp-param>

< param-name>pageCheckSeconds

< param-value>0

< /jsp-param>

< /jsp-descriptor>

< context-root>/npmService< /context-root>

 

6) 总结:404错误首先明确方向,是请求路劲错误。


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI