Greetings: I am looking for help with an issue that I cannot find the answer to on the web or list-archives. My issue is this:
I use Tomcat 5.5 and jdk 1.5 on linux. 1)I have a custom jsp tag that puts string data in a Session attribute when the jsp page loads (via pageRequest.getSession().setAttribute("var",value). 2)The jsp page is a form that submits to data to a servlet. The servlet retrieves the data request.getSession().getAttribute("var") to compare it with data from another form field. Under normal deployement with tomcat running on port 8080 and the app at context /myapp (http://localhost:8080/myapp) the servlet is able to retrieve the "var" out of the session and read it. The problem-issue is when I setup the apache/tomcat proxy (http not modjk). When I access the application with Apache on port 80 through the proxy on port 8082 (http://myhost.localhost/myapp), the request.getSession().getAttribute("var") within the servlet returns null. When I access the application throgh the proxied port (http://myhost.localhost:8082/myapp) the session attribute is not null. Also, when I access the application through port 80, the Tomcat manager webapp reports double the amount of sessions being created. Here is the connector setting in sever.xml <Connector port="8082" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" acceptCount="100" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> Here is the host setting in server.xml <Host name="myhost.localhost" appBase="myhost" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>myhost.localhost.org</Alias> <Context path="" docBase="/usr/local/tomcat/myhost" /> <Context path="/manager" debug="0" privileged="true" docBase="${catalina.home}/server/webapps/manager" /> </Host> Here is the apache virtual host proxy configuration: <VirtualHost *:80> ServerName myhost.localhost DocumentRoot /usr/local/tomcat/myhost Options Indexes ProxyPass / http://myhost.localhost:8082/myhost/ ProxyPassReverse / http://myhost.localhost:8082/myhost/ </VirtualHost> Does anyone know what is going on here? any help is greatly appreciated. Thanks. Bill -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]