title: JBoss served application - using apache proxypass session is not accessible
body: <p>Am encountering a strange (to me) situation with a java application served out of JBoss.</p>
  
  <p><strong>--Background--</strong></p>
  
  <p>1)
  JBoss is installed in a Linux environment.</p>
  
  <p>For the sake of explanation, the IP address on my environment is: 99.999.999.99</p>
  
  <p>2)
  Within the environment, I have JBoss running at: <a href="http://127.0.0.1:8080" rel="nofollow">http://127.0.0.1:8080</a></p>
  
  <p>With several applications which can be reached at: <a href="http://127.0.0.1:8080/APPLICATION_NAME" rel="nofollow">http://127.0.0.1:8080/APPLICATION_NAME</a></p>
  
  <p>3)
  I have apache routing traffic to my IP address as follows:</p>
  
  <pre><code>ProxyPass / http://127.0.0.1:8080/app1/
  ProxyPassReverse / http://127.0.0.1:8080/app1/
  
  ProxyPass /app2/ http://127.0.0.1:8080/app2/
  ProxyPassReverse /app2/ http://127.0.0.1:8080/app2/
  
  ProxyPass /app3/ http://127.0.0.1:8080/app3/
  ProxyPassReverse /app3/ http://127.0.0.1:8080/app3/
  </code></pre>
  
  <p>4)
  When I access 99.999.999.99 I am able to access app1, which functions as expected (except for the issue below).</p>
  
  <p>When I access 99.999.999.99/app2 I am able to access app2.</p>
  
  <p><strong>--Issue--</strong></p>
  
  <p>1)
  Inside of app1, I have a jsp page which writes to the session:</p>
  
  <p>_sessionTest1.jsp
  session.setAttribute("test", "test");</p>
  
  <p>2)
  The problem is that after running this JSP, the session will not contain the data that was set.</p>
  
  <p>3)
  If I remove the apache proxies, and instead, expose JBoss root, with also 
  the administration links and JMX console, the session will be updated as expected.</p>
  
  <p>When configured in this manner, the way I access the application is:</p>
  
  <p>99.999.999.99/app1</p>
  
  <p>Where 99.999.999.99 will show my JBoss root.</p>
  
  <p>4)
  Is it expected that the session for an application would not be accessible if configured as above?</p>
  
  <p>Thanks!</p>