错误404 - 未找到(同时使用Apache和WebLogic) [英] Error 404--Not Found (while using apache and weblogic)

查看:265
本文介绍了错误404 - 未找到(同时使用Apache和WebLogic)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经部署在WebLogic应用程序,并且正在使用apche的server.Normally,当我输入的URL的应用程序,它应该显示一个jsp(1)种请稍候那么这个人会重定向到另一个JSP(2 )。

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).

问题是,当我进入应用程序的URL,它显示JSP(1)请稍候,并同时重定向它给人的错误。(错误404 - 未找到)

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 ?

推荐答案

一个404只是意味着该网址是无效的,或者,你认为这是资源实际上是不存在的。

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

先用一个绝对的URL独立测试其可用性等。如 http://example.com/context/page.jsp 。如果不工作,然后验证如果资源是居然还有在你的webapp,你希望它是。如果这样做的工作,那么你很可能使用了相对URL的重定向,如:

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">

您需要知道,任何相对URL的页面是相对于当前请求的绝对URL。因此,如果有请求,例如 http://example.com/context/wait.jsp 页面,则上述相对URL将解析为 http://example.com/page.jsp 。这是这样行不通,如果页面实际上是位于 http://example.com/context/page.jsp 。然后,您应该通过正确的相对URL更换网址:

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">

或只是一个绝对网址:

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

这篇关于错误404 - 未找到(同时使用Apache和WebLogic)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆