Ok, the weird thing is, I don¹t get a stack trace at all. I simply get a
blank screen whenever I run the application with the weblogic port set to
80. It works fine when the port is set to any other value.
What I ended up doing to fix this was overriding your getHostPort() method
in your HttpServerCall class with the following:
Public int getHostPort(){
if (getRequestHeaders().getFirstValue()(HttpConstants.HEADER_HOST,
true).indexOf(³:²)==-1)
return 80;
if(!hostParsed){
parseHost();
return super.getHostPort();
}
And then overriding the constructor in HTTPRequest to always append the port
number to the stringbuffer. (removing the IF logic surrounding it)
When I did that, it worked whether I used a port number or not.
The thing I don¹t get though, is why does the port number even matter, if
this code is not executed until the servlet container has received the
request anyway. (In which case the url would have to have specified the
correct port number). Why do you need to worry about them at all?
In my situation, in our environment there is a front end apache which routes
requests to our servlet container, so the incoming url won¹t be the actual
url of the servlet container itself, and incoming url will always be on port
80. Thus, I need this to work.
I know there has to be something I¹ve overlooked.
From: Jerome Louvel <[EMAIL PROTECTED]>
Reply-To: <[email protected]>
Date: Tue, 1 Jul 2008 13:27:01 +0200
To: <[email protected]>
Subject: RE: More on port 80 - VirtualHost.resourcePort property
Mark,
We need more details to help you out like stack traces and design details. I
noticed you use ServerServletConverter but what do you have behind, a
component, an application?
Best regards,
Jerome
De : Mark Cornelius [mailto:[EMAIL PROTECTED]
Envoyé : lundi 30 juin 2008 18:37
À : [email protected]
Objet : More on port 80 - VirtualHost.resourcePort property
I read in an earlier thread someone having trouble with port 80 needed to
set this property, but when/where do you do it?
--
________________________________
Mark E. Cornelius