Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Unable to access tomcat protected resource using Cookie manager for JSessionID  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement to access a web service running inside a tomcat server protected by form_authentication using java application(not browser).
I tried the following code to get the JSESSIONID as a cookie and set it using the default cookie manager in all the outgoing request. But for some reason the tomcat always redirects the request to the login page and instead of receiving the soap output/or wsdl i am receiving the login page. I tried using a web debugger tool and am able to see the cookie being sent to the server.

Please tell me what I might be doing wrong.

PS: I have written it as a small code to test it please ignore some extra statements which are not adding value
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!