You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephen Nelson-Smith <sa...@gmail.com> on 2008/02/28 13:21:25 UTC
Strange Redirection
I have deployed an application under Tomcat, fronted by Apache. I am
experiencing what looks like strange redirects when I try to use the
application.
The front page is a login screen, but if I try to login, Tomcat
attempts to locate a resource called /Login.jsp, which doesn't exist.
The page should attempt to load the servlet "piston" defined in my
WEB-INF/web.xml
I don't understand what is happening - any pointers or explanations
would help enormously.
Configs:
Apache:
<VirtualHost 10.1.1.204>
ProxyPass / ajp://localhost:8009/
ProxyPass /servlet ajp://localhost:8009/servlet
ProxyPass /piston ajp://localhost:8009/piston
ProxyPass /manager ajp://localhost:8009/manager
ProxyPass /link ajp://localhost:8009/link
ProxyPass /ajax ajp://localhost:8009/ajax
ProxyVia on
</VirtualHost>
Tomcat:
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<GlobalNamingResources>
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service name="Tomcat-Standalone">
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
proxyName="test.name.com" proxyPort="80"/>
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="0"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0" resourceName="UserDatabase"/>
<Host appBase="/home/sites/home" liveDeploy="false"
autoDeploy="false" debug="4" name="test.name.com" >
<Alias>10.1.1.204</Alias>
<Context cachingAllowed="true" cookies="true"
crossContext="true" debug="0" docBase="web"
path="" privileged="false" reloadable="true" >
<Logger className="org.apache.catalina.logger.FileLogger" debug="0"
directory="logs" prefix=test.name.com_log."
suffix=".txt" timestamp="true" verbosity="1"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
OS is RHEL 5, Apache is httpd-2.2.3-11.el5_1.3, Tomcat is 4.1.31 from
binary release, Java is 1.4.2_11
Thanks in advance,
S.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Strange Redirection
Posted by Stephen Nelson-Smith <sa...@gmail.com>.
On Thu, Feb 28, 2008 at 12:38 PM, Pid <p...@pidster.com> wrote:
> Stephen Nelson-Smith wrote:
> > I have deployed an application under Tomcat, fronted by Apache. I am
> > experiencing what looks like strange redirects when I try to use the
> > application.
> >
> > The front page is a login screen, but if I try to login, Tomcat
> > attempts to locate a resource called /Login.jsp, which doesn't exist.
> >
> > The page should attempt to load the servlet "piston" defined in my
> > WEB-INF/web.xml
>
> what is the HTML / JSP source of the front page?
login.jsp
I think it looks like the application has an exception throwing
mechanism that was written under windows, and sends the user back to
Login,jsp.
Does my config look sane? I am not sure if I need all those proxy
passes, as I had hoped just / -> / would do the trick.
S.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Strange Redirection
Posted by Pid <p...@pidster.com>.
Stephen Nelson-Smith wrote:
> I have deployed an application under Tomcat, fronted by Apache. I am
> experiencing what looks like strange redirects when I try to use the
> application.
>
> The front page is a login screen, but if I try to login, Tomcat
> attempts to locate a resource called /Login.jsp, which doesn't exist.
>
> The page should attempt to load the servlet "piston" defined in my
> WEB-INF/web.xml
what is the HTML / JSP source of the front page?
p
> I don't understand what is happening - any pointers or explanations
> would help enormously.
>
> Configs:
>
> Apache:
>
> <VirtualHost 10.1.1.204>
> ProxyPass / ajp://localhost:8009/
> ProxyPass /servlet ajp://localhost:8009/servlet
> ProxyPass /piston ajp://localhost:8009/piston
> ProxyPass /manager ajp://localhost:8009/manager
> ProxyPass /link ajp://localhost:8009/link
> ProxyPass /ajax ajp://localhost:8009/ajax
> ProxyVia on
> </VirtualHost>
>
> Tomcat:
>
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
>
>
> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
> debug="0"/>
> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> debug="0"/>
>
> <GlobalNamingResources>
>
> <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved">
> </Resource>
> <ResourceParams name="UserDatabase">
> <parameter>
> <name>factory</name>
> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
> </parameter>
> <parameter>
> <name>pathname</name>
> <value>conf/tomcat-users.xml</value>
> </parameter>
> </ResourceParams>
>
> </GlobalNamingResources>
>
> <Service name="Tomcat-Standalone">
>
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true"
> proxyName="test.name.com" proxyPort="80"/>
>
> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> port="8080" minProcessors="5" maxProcessors="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="10" debug="0" connectionTimeout="0"
> useURIValidationHack="false"
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> <Engine name="Standalone" defaultHost="localhost" debug="0">
>
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> debug="0" resourceName="UserDatabase"/>
>
> <Host appBase="/home/sites/home" liveDeploy="false"
> autoDeploy="false" debug="4" name="test.name.com" >
> <Alias>10.1.1.204</Alias>
> <Context cachingAllowed="true" cookies="true"
> crossContext="true" debug="0" docBase="web"
> path="" privileged="false" reloadable="true" >
> <Logger className="org.apache.catalina.logger.FileLogger" debug="0"
> directory="logs" prefix=test.name.com_log."
> suffix=".txt" timestamp="true" verbosity="1"/>
> </Context>
> </Host>
> </Engine>
> </Service>
> </Server>
>
> OS is RHEL 5, Apache is httpd-2.2.3-11.el5_1.3, Tomcat is 4.1.31 from
> binary release, Java is 1.4.2_11
>
> Thanks in advance,
>
> S.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org