加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

weblogic Error 404--Not Found

发布时间:2020-12-17 01:23:46 所属栏目:安全 来源:网络整理
导读: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

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 同级目录,内容为:

<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems,Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>

? <jsp-descriptor>

??? <jsp-param>

????? <param-name>pageCheckSeconds</param-name>

????? <param-value>0</param-value>

??? </jsp-param>

? </jsp-descriptor>

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

</weblogic-web-app>

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读