You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/10/12 15:23:18 UTC

BugRat Report #251 has been filed.

Bug report #251 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/251>

REPORT #251 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: 3.2b6
   JVM Release: 1.2.2
   Operating System: Solaris
   OS Release: 2.7
   Platform: sparc

Synopsis: 
JSP error-page doesn't work with virtual hosts

Description:
When calling an errorpage from a virtual hosts context, the hostname for the error-page becomes "localhost".

Here's the excerpt from tomcat.log with debug=99, trimmed for brevity.


ContextManager: ProcessRequest: R( /asdasd.jsp)
ContextManager: Host = dev2.paperx.com
.
.
ContextManager: After processing: R(  + /asdasd.jsp + null
)
.
.
2000-10-12 02:59:08 - Ctx( dev2.paperx.com: ): Get real path /asdasd.jsp /export
.
.
Ctx( dev2.paperx.com: ): getResourceURL=file:/export/web/dev2/softsite/asdasd.jsp request=/asdasd.jsp
Ctx( dev2.paperx.com: ): 404 R(  + /asdasd.jsp + null) JSP
 file not found
ContextManager: ProcessRequest: R( /error.jsp)
ContextManager: Host = localhost


There you go - notice how the host has switched from "dev2.paperx.com" to "localhost.