SSL, IIS, and Tomcat 4.1.12

2002-12-17 Thread Michael McLawhorn

I have spent the last several hours hacking around in the archives and have 
seen the same question asked several times, but no clear answer given.  I 
have also spent about ten hours with various configuration tweaks.

I am trying to get Tomcat to act as an application server behind IIS.
With http connections, this has been working without difficulty.  I want to 
modify it to work with SSL.  I can get Tomcat to server SSL w/o difficulty, 
I can get IIS to serve SSL without a problem.  However, when I try to use 
https://myserver/mywebapp, the browser hangs indefinitely.  Sometimes it 
returns after several minutes with a page with all links of the form 
http://myserver:443/*.  Viewing the logfiles, it appears that when an 
https:// request is initiated, the web app is running without problems and 
the redirector is running without problems.

So why is the browser hanging, and what can I do to fix the configuration?

Mike McLawhorn



_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: File access from a servlet.

2002-12-17 Thread Michael McLawhorn
Servlets have different security restrictions on which files they can touch 
and interact with.



From: Patrick Martz [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: File access from a servlet.
Date: Tue, 17 Dec 2002 10:42:00 -0800

Hi all.

I'm currently working on a java servlet with tomcat and I want it to be 
able
to load a different data file dependent on certain parameters passed to the
servlet. The problem is that if I just try to open the file with the file
name (i.e. FileInputStream fin = new FileInputStream(blah.dta);) it fails
to find the file. I am guessing this is because the runtime directory is
different from the directory the servlet is running in? (the data file and
the servlet are in the same directory, but the servlet fails to find the
file still). So my question is, is there a way to get the current runtime
directory for Tomcat so that I can perhaps supply a relative path to get to
the file and have the servlet be able to open it? Thanks!

Patrick

P.S. For debugging purposes I HAVE tested opening of the file from a stub
class and it works just fine that way, but fails from the servlet.

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: SSL, IIS, and Tomcat 4.1.12

2002-12-17 Thread Michael McLawhorn

I just wanted to follow up on this.  When I tried installing 4.1.17 over my 
existing 4.1.12, it cleared the problem right up.  I can't say how much of a 
relief this finally is.


From: Michael McLawhorn [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: SSL, IIS, and Tomcat 4.1.12
Date: Tue, 17 Dec 2002 11:16:10 -0600


I have spent the last several hours hacking around in the archives and have 
seen the same question asked several times, but no clear answer given.  I 
have also spent about ten hours with various configuration tweaks.

I am trying to get Tomcat to act as an application server behind IIS.
With http connections, this has been working without difficulty.  I want to 
modify it to work with SSL.  I can get Tomcat to server SSL w/o difficulty, 
I can get IIS to serve SSL without a problem.  However, when I try to use 
https://myserver/mywebapp, the browser hangs indefinitely.  Sometimes it 
returns after several minutes with a page with all links of the form 
http://myserver:443/*.  Viewing the logfiles, it appears that when an 
https:// request is initiated, the web app is running without problems and 
the redirector is running without problems.

So why is the browser hanging, and what can I do to fix the configuration?

Mike McLawhorn



_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]