Geet Srivastava

Greenhorn
+ Follow
since May 04, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Geet Srivastava

I do not know anything about ivy, but basic thing is shared.loader is for libraries that are used across webapps. if you have deployed your app at folder other than webapps, then you need to set the docBase in context.xml appropriately. Any app specific libraries must be in WEB-INF\lib of the app.
If knowing this you are changing shared.loader, then please ignore my comments.
12 years ago
CATALINA_HOME = parent of the lib folder where you have catalina.jar.

when you run it from command-line, does it show correct values for java and tomcat environment variables? if not, check if you have setenv.bat in bin folder.

why do not you just comment AprLifecycleListener in server.xml first and see if the error still comes? If it still comes, it means tomcat is reading some other server.xml. It may throw up some other error if classloader is confused. In that case, check catalina.policy for permissions and catalina.properties for jar folders.
12 years ago
is org.apache.catalina.core.AprLifecycleListener class present in your catalina.jar?
12 years ago
Compare the xmls between 5.5 and 6 at every exit (server side) and entry point (browser) and see if that gives you any clue.
12 years ago
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!
12 years ago
anyone? even if you are unsure, just throw some ideas so that I can think out of the box here. my situation is like
12 years ago
you mentioned that your 5's server.xml and 7's server.xml look pretty much the same with respect to ssl. executor is the only big difference. so, test it and see if it can be ruled out. it should not take more than few minutes to do it. there is no need to depend on guess work when something can be tested very quickly.
more threads do not always mean more performance in practice.
12 years ago
did you try with less number of threads (say 50), minSpare (25) and prestartminSpareThreads=false in executor?
12 years ago
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
12 years ago