Get the App
SLTechnology News&Howtos  ›  Servers  › 

Error 404-Not Found appears after weblogic deployment

Shulou Source: shulou.com Published: 2022-06-02 12:19:51 10月10日 Update

Error 404--Not Found error

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.

One problem encountered is to publish a webservice project to weblogic under linux.

1) publish in local tomcat: http://localhost:8080/npmService/services can correctly get a list of wsdl files.

2) modify the web.xml file after publishing Weblogic

< !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

After the weblogic can start normally.

3) through: http://localhost:8080/console, you can log in to the weblogic console normally

4) input http://localhost:8080/npmService/services has the error of 404 above

5) solution

Add the weblogic.xml file to the web.xml sibling directory with the following contents:

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) Summary: the 404 error is first of all a clear direction, which is the wrong request for road strength.

Tags: Error file list content sibling that is project console direction method directory problem control login input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Apple Microsoft OPPO Reno MariaDB