Error 404--Not Found (while using apache and weblogic)

一世执手 提交于 2020-01-04 08:11:29

问题


I have an application deployed in weblogic, and am using apche server.Normally, when I enter the url for the application, it should display a jsp (1) kind of please wait then this one will redirect to another jsp (2).

the problem is when I enter the url of the application, it displays jsp (1) "please wait" and while redirecting it gives the error (Error 404--Not Found).

What do you think the problem is ?


回答1:


A 404 simply means that the URL is invalid or that the resource actually isn't there where you think it is.

First test its availablility independently with an absolute URL. Such as http://example.com/context/page.jsp. If that doesn't work, then verify if the resource is actually there in your webapp where you expect it to be. If that does work, then you likely used a relative URL in the redirect such as:

<meta http-equiv="refresh" content="3;url=/page.jsp">

You need to be aware that any relative URL's in the page are relative to the absolute URL of the current request. Thus, if the page was requested with for example http://example.com/context/wait.jsp, then the above relative URL will resolve to http://example.com/page.jsp. This is thus not going to work if the page is actually located at http://example.com/context/page.jsp. You should then replace the URL by the right relative URL:

<meta http-equiv="refresh" content="3;url=page.jsp">

or just an absolute URL:

<meta http-equiv="refresh" content="3;url=http://example.com/context/page.jsp">


来源:https://stackoverflow.com/questions/743541/error-404-not-found-while-using-apache-and-weblogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!