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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to