tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolle <wo...@dorf.RWTH-Aachen.DE>
Subject Re: mod_ssl breaks response.encodeURL()? !SOLUTION!
Date Mon, 07 May 2001 02:10:12 GMT
Hello,
in the TC3.2.2b4 version you don't have to patch the
HttpServletResponseFacade.java, it's already implemented
you must only do this:
1. copy  jnet.jar and jsse.jar in your TC/lib dir
2. set
TOMCAT_OPTS=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

Greetings,
Michael

Jeff Kilbride wrote:

> Has this fix been added to 3.2.2? I seem to remember seeing that it had
> been.
>
> Thanks,
> --jeff
>
> ----- Original Message -----
> From: "Mark Johnson" <markj@gilanet.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Tuesday, April 24, 2001 3:50 PM
> Subject: Re: mod_ssl breaks response.encodeURL()? !SOLUTION!
>
> > Thanks to a tip from maciejka@tiger.com.pl, I've got this working on
> Tomcat
> > 3.2.1 with gnu/linux+apache+mod_ssl.
> >
> > Here's HOWTO:
> > 1. Get jsse-1.0.2-do.zip and unpack. In lib/ are three jars. Put 'em in
> your
> > CLASSPATH.
> > 2. Patch:
> >
> $JAKARTA_HOME/jakarta-tomcat/src/share/org/apache/tomcat/facade/HttpServletR
> esponseFacade.java
> >
> > with:
> >
> >             return (false);
> >         if (!request.getServerName().equalsIgnoreCase(url.getHost()))
> >             return (false);
> > -        // Set the URL port to HTTP default if not available before
> > comparing
> > +        // Set the URL port to protocol default if not available before
> > comparing
> >          int urlPort = url.getPort();
> >          if (urlPort == -1) {
> > -            urlPort = 80;
> > +            if("http".equalsIgnoreCase(url.getProtocol())) {
> > +                urlPort = 80;
> > +            } else if ("https".equalsIgnoreCase(url.getProtocol())) {
> > +                urlPort = 443;
> > +            }
> >          }
> >
> > 3. compile the class file to
> >
> $TOMCAT_HOME/classes/org/apache/tomcat/facade/HttpServletResponseFacade.clas
> s
> >
> > 4. Done!
> >
> > Mark Johnson wrote:
> >
> > > My app uses the HttpSession interface. In order to handle client
> > > browsers which don't accept cookies, I used the
> > > response.encodeURL("myURL") method.
> > >
> > > Using apache without mod_ssl, and using a browser set to deny cookies, I
> > > detect the method in action when the jsessionid is appended to the
> > > URL's. Everything is dandy!
> > >
> > > However, when I run apache with mod_ssl, it is as if the method has not
> > > been invoked.
> > >
> > > I speculate that this effect is related to mod_ssl's use of another
> > > port, 443. Perhaps response.encodeURL("myURL") only works on the port
> > > number in httpd.conf's Port directive.
> > >
> > > Can anyone explain what's going on? Better yet, how do I solve the
> > > problem?
> > >
> > > TIA
> >

--
__
Gruss,
Wolle

-------------------------------------------------------
                      mwollenhaupt@web.de



Mime
View raw message