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

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

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值