This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Session expired and 400 error urgent please reply Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Session expired and 400 error urgent please reply" Watch "Session expired and 400 error urgent please reply" New topic
Author

Session expired and 400 error urgent please reply

brahmanandam konikineni
Greenhorn

Joined: Jul 21, 2011
Posts: 3



I increased the default Session id length to 128:-


Problem faced:


1. When the user clicks the link it shows the HTTP 400 error and URL shows
session=1FE3DDF28484E473A32E0A09E823D9D240F563A675C5BCE8F64F6DEE9163CC7DF7002BC6D339706B1AA72E1D41549A52E1245A2FD720BEB11A1B6E3DE43CC3651E3C3AF4F16CA4A32E72C85B654C1BFFF67D836C0634ED2E31CE1B32F0193C8D52F82F431DCB4133CFA81F896665B74EE5E6831727782130187FF8B7B43530E0.tomcatA

This happens first two times when we try to login and third time we are able to login to application.

2. When the user logs into application and goes to Administration link and clicks the Scheduler History link.
Then searches for any of the Job and runs it, he is getting kicked out of the application.


• When ever we hit the application(login page), I found in the view source of the page that "jessionid" is created and sent in the JSP.
• The same jsessionid appears on the URL along with the HTTP 400 error when we enter username and password and try to login.
• This scenario repeats for 2 times. And for the 3rd time, the session is not appearing on the JSP(View source) and hence the HTTP 400 is not occurring.
• And the URL doesn't have the jsessionid as well
brahmanandam konikineni
Greenhorn

Joined: Jul 21, 2011
Posts: 3
My worker property file




worker.list=loadbalancer, tomcatD


worker.tomcatA.type=ajp13
worker.tomcatA.host=hostname
worker.tomcatA.port=8009
worker.tomcatA.lbfactor=1
worker.tomcatA.redirect=tomcatE
worker.tomcatA.cachesize=80
worker.tomcatA.cache_timeout=600
worker.tomcatA.socket_keepalive=True
worker.tomcatA.socket_timeout=300



worker.tomcatB.type=ajp13
worker.tomcatB.host= hostname
worker.tomcatB.port=8109
worker.tomcatB.lbfactor=8
worker.tomcatB.redirect=tomcatE
worker.tomcatB.cachesize=80
worker.tomcatB.cache_timeout=600
worker.tomcatB.socket_keepalive=True
worker.tomcatB.socket_timeout=300



worker.tomcatC.type=ajp13
worker.tomcatC.host=hostname
worker.tomcatC.port=8209
worker.tomcatC.lbfactor=8
worker.tomcatC.redirect=tomcatE
worker.tomcatC.cachesize=80
worker.tomcatC.cache_timeout=600
worker.tomcatC.socket_keepalive=True
worker.tomcatC.socket_timeout=300



worker.tomcatE.type=ajp13
worker.tomcatE.host=hostname
worker.tomcatE.port=8309
worker.tomcatE.lbfactor=3
worker.tomcatE.redirect=tomcatB
worker.tomcatE.cachesize=80
worker.tomcatE.cache_timeout=600
worker.tomcatE.socket_keepalive=True
worker.tomcatE.socket_timeout=300



worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcatB, tomcatC, tomcatE, tomcatA
worker.loadbalancer.sticky_session=1



worker.tomcatD.type=ajp13
worker.tomcatD.host= host name
worker.tomcatD.port=8009
worker.tomcatD.lbfactor=1
worker.tomcatD.redirect=tomcatE
worker.tomcatD.cachesize=80
worker.tomcatD.cache_timeout=600
worker.tomcatD.socket_keepalive=True
worker.tomcatD.socket_timeout=300

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session expired and 400 error urgent please reply