微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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 @R_237_4045@ion 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 错误首先明确方向,是请求路劲错误

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐