Andre

Thanks for taking the time to respond to my plea.  :-)

> the way you describe it sounds like an authentication problem, where a bunch 
> of near simultaneous requests to the server (for embedded images, css, etc.) 
> all hit some "not yet authenticated" condition, and all together (or rather 
> each separately) return a 401 or similar (or a login page instead of a 
> requested image e.g.).  Maybe there is something new in that respect with 
> Windows Server 2012, which your application's authentication framework does 
> not handle well ?

My problem is that I don't know what changed in Win 2012 that would cause 
Tomcat to behave differently.  Perhaps it's a default security setting that 
changed?  FYI, I can request image files from the 2008 server w/o being logged 
in and they display just fine.

Below is a sample from my localhost_access_log.  Notice that all the files, 
except for the favicon which we don't have, all return a status of 200 and size 
3715 - the welcome file - no matter what was requested.  200 means OK, right?

10.25.20.35 - - [03/Dec/2014:11:50:04 -0500] "GET /app/ HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:50:05 -0500] "GET /app/include/styles.css 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:50:05 -0500] "GET /app/css/GridStyle.css 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:50:05 -0500] "GET /app/images/back2.gif 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:50:06 -0500] "GET /images/favicon.ico HTTP/1.1" 
404 987
10.25.20.35 - - [03/Dec/2014:11:51:27 -0500] "POST /app/Login HTTP/1.1" 200 5526
10.25.20.35 - - [03/Dec/2014:11:51:27 -0500] "GET /app/include/styles.css 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:51:27 -0500] "GET /app/images/back2.gif 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:51:27 -0500] "GET /app/css/GridStyle.css 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:51:27 -0500] "GET /app/images/f15.jpg HTTP/1.1" 
200 3715
10.25.20.35 - - [03/Dec/2014:11:51:28 -0500] "GET /app/images/tab-off.gif 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:51:28 -0500] "GET /images/favicon.ico HTTP/1.1" 
404 987
10.25.20.35 - - [03/Dec/2014:11:59:08 -0500] "GET /app/main/main.jsp HTTP/1.1" 
200 3715
10.25.20.35 - - [03/Dec/2014:11:59:08 -0500] "GET /app/include/styles.css 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:59:08 -0500] "GET /app/images/back2.gif 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:59:08 -0500] "GET /app/css/GridStyle.css 
HTTP/1.1" 200 3715
10.25.20.35 - - [03/Dec/2014:11:59:08 -0500] "GET /app/images/favicon.ico 
HTTP/1.1" 200 3715

> (or the structure of your application).
> (e.g. the login page itself contains references to images and css which 
> themselves are in a protected area and so on).

Eh, the login page itself is really plain - no images in it.  Just the pages 
afterwards once you log in.

--
Cris Berneburg, Lead Software Engineer
CACI, IRMA Project, 703-679-5313


-----Original Message-----
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Thursday, December 11, 2014 1:22 PM
To: Tomcat Users List
Subject: Re: tomcat on windows 2012 weirdness

Cris Berneburg - US wrote:
> Hi Folks
> 
> I'm having trouble with my JSP web app using Tomcat 6 and 7 on Windows Server 
> 2012.
>  
> The issue is that no matter what file I request in the browser URL, it always 
> returns the app welcome file, that is, the login page.  Even when requesting 
> an image.  The one exception is that after logging in, the main menu page 
> appears, but none of the graphics or CSS files load.  Clicking on the app 
> links, it just brings up the welcome page again.  Checking the Tomcat log 
> files, I see that Tomcat is returning the welcome page instead of the files 
> requested in the main menu page.
> 
> Using the Tomcat manager, I see that my application has a ridiculous number 
> of sessions, instead of just one.  I interpret that for every single file 
> requested, a new Tomcat session is being generated and possibly invalidated..
> 
> FYI, using the same setup on Windows Server 2003 and 2008 works fine.  
> Opening the same firewall ports on all three OS's has been done.  Even 
> disabling the firewall on 2012 does not affect the issue in any way.  And to 
> make things even weirder, accessing the application from a browser on the 
> server itself using localhost works fine!
> 
> I wonder if there is some mystery setting somewhere that is crippling the 
> app.  Got any suggestions?  Please help.  Thanks!
> 

Without realling getting to the bottom of it, the way you describe it sounds 
like an authentication problem, where a bunch of near simultaneous requests to 
the server (for embedded images, css, etc.) all hit some "not yet 
authenticated" condition, and all together (or rather each separately) return a 
401 or similar (or a login page instead of a requested image e.g.).

Maybe there is something new in that respect with Windows Server 2012, which 
your application's authentication framework does not handle well ?
(or the structure of your application).
(e.g. the login page itself contains references to images and css which 
themselves are in a protected area and so on).




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to