Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Session problems when proxying to Jetty from Apache

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all,

I have a Jetty server running a simple J2EE application on port 8085. In Apache I have a RewriteRule which simply proxies to the Jetty server when given a certain URL pattern. See an
example below of my Apache virtual host:



The RewriteRule seems to be working ok and it takes the user to the Jetty app. The Jetty app has a logon admin screen. Most of the time, when the user has logged onto the admin screen
and tries to perform an action, the app redirects the user to the logon screenagain. When the user logs in again the app then redirects them to the originally intended url.

The app uses Spring MVC and Acegi security. I know that the problem is session related. Furthermore, if I use the app without via Apache e.g. http://localhost:8085/MyApp it works fine
without any problems. So it seems like the sessions are nto being maintained properly. Any ideas? I'm beginning to think that maybe I should be using mod_proxy (http://docs.codehaus.org/display/JETTY/Configuring+mod_proxy)


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!