• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Migration issue Tomcat 5.5.32 to 6.0.32. 6.0 is returning same size data for all requests

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We have build our server on top of tomcat. It has been working fine on 5.5.23 and now we decided to move to 6.0.23.
We installed 6.0.23, made changes in server.xml and tested HTTPS - example/docs etc apps seem to be working fine. Then, we stopped tomcat, removed tomcat applications, copied our apps from 5.5 and made necessary changes in server.xml, context.xml and web.xml at conf, added context files for various apps in conf/Catalina/localhost/ and updated lib folder to include jars for our server.
Now, when we run, it does not load login page for the server (every resource is protected and requires a successful login). Browser gets the page, but when it goes to get the css, js, gifs and other files referenced from the login page, it throws up errors like returned data 'text/xml' is not 'text/css' etc (error console of firefox is filled with errors). When I looked at the access log file('common' format), it showed same response length for all request.

>sample from Tomcat 6.0.32 access log (here 'byte sent' is always 15906)
same 15906 for all other requests here
127.0.0.1 - - [04/May/2011:17:59:52 +0530] "GET /plat/tag/plat/titlebarlib.js HTTP/1.1" 200 15906
127.0.0.1 - - [04/May/2011:17:59:52 +0530] "GET /plat/plat.js HTTP/1.1" 200 15906
127.0.0.1 - - [04/May/2011:17:59:52 +0530] "GET /plat/tag/input/buttonlib.js HTTP/1.1" 200 15906
127.0.0.1 - - [04/May/2011:17:59:52 +0530] "GET /plat/tag/misc/msgboxlib.js HTTP/1.1" 200 15906
same 15906 for all other requests here

>Compare that with Tomcat 5.5.23 access log (here byte sent is proper)
other requests with proper 'byte sent' information
127.0.0.1 - - [04/May/2011:11:55:24 +0530] "GET /plat/tag/plat/titlebarlib.js HTTP/1.1" 200 643
127.0.0.1 - - [04/May/2011:11:55:24 +0530] "GET /plat/plat.js HTTP/1.1" 200 75268
127.0.0.1 - - [04/May/2011:11:55:24 +0530] "GET /plat/tag/input/buttonlib.js HTTP/1.1" 200 527
127.0.0.1 - - [04/May/2011:11:55:24 +0530] "GET /plat/tag/misc/msgboxlib.js HTTP/1.1" 200 752
other requests with proper 'byte sent' information

Additional information:
OS = Windows 2000 Server
JAVA = 1.6.0_24
Authentication/Authorization = JAAS

Any help is greatly appreciated.

thanks & regards,
-Geet
 
Geet Srivastava
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anyone? even if you are unsure, just throw some ideas so that I can think out of the box here. my situation is like
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, that "same size" data is probably some sort of error message from Tomcat, not from your application.

One possibility is that your application does not correctly trap and report exceptions so you end up with the repeated error message.

Are there any:



traps in your code?
 
Geet Srivastava
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did not find that kind of code, but I did find the cause.

While solving something else during migration, servlet's url pattern to name mapping was changed in few web.xmls. It caused every request to go to login servlet and that kept returning the same page for every request. That's why access log showed same size.

thanks William anyways!
 
reply
    Bookmark Topic Watch Topic
  • New Topic