Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Null Session for Virtual Host

Kurt Blackmore

2003-08-21


We're running into an odd problem with the Session being null when we
try accessing a webapp as a virtual host. If the URL specifies the
webapp, a Session is created and the app works as expected. For
example...

The server.xml virtual host entry looks like:

<Host name="registration.mydomain.com" debug="0" appBase="webapps"
   unpackWARs="true" autoDeploy="true">

  <Context path="" docBase="mywebapp" debug="0"/>
</Host>

The first thing the webapp's index.jsp does is call getSession(true).

When using a URL like the following, the webapp loads normally:

http://registration.mydomain.com/mywebapp

When the URL is like this one, the Session is null:

http://registration.mydomain.com/

We obviously don't have something configured quite right, but have been
unable to determine what. Any assistance you can provide is greatly
appreciated.

Thanks,
Kurt


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.