You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Valkanas Nikos <nb...@hq.otenet.gr> on 2002/08/01 21:25:37 UTC

Apache - Tomcat blues...

Hi all,

I am kind new to tomcat, so any help would be appreciated. I have problems with the communication between apache and tomcat.

I am using apache 1.3.26 compiled from sources, tomcat 4.0.4 from binaries and connectors 4.0.4 compiled from sources, all running on Linux Redhat 7.2.

Tomcat and apache run very well as standalones.

Problem: I experience major headaches trying to redirect jsp pages from apache to tomcat. Initially I got "Web application not yet deployed". Following the archives I fixed the virtual host in server.xml so that I no longer get the previous error, the connection just hangs indefinitely.

I am trying to load http://www.test1.gr/jsp/hello.jsp (location: /www/test1/htdocs/jsp/hello.jsp

Logs show:

2002-08-01 21:31:29 WarpEngine[Apache]: Mapping request
2002-08-01 21:31:29 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:33342 to localhost/127.0.0.1:8008

Nothing is shown in Apache logs.

Any ideas would be appreciated, I have wasted allready a whole day on this.

Thanks,
Nick

(Configuration files)

httpd.conf:

[...]
LoadModule webapp_module        libexec/mod_webapp.so
[...]

<VirtualHost 10.0.0.30>
ServerAdmin root@localhost
DocumentRoot /www/test1/htdocs
ServerName www.test1.gr
ServerAlias www.test1-test.gr
WebAppConnection warpConnection warp 127.0.0.1:8008
WebAppDeploy jsp warpConnection /jsp/
WebAppInfo /webapp-info
<Directory /www/test1/htdocs>
   Options FollowSymLinks
</Directory>
ScriptAlias /cgi-bin/ /www/test1/cgi-bin/
ErrorLog /www/test1/logs/test1-error.log
CustomLog /www/test1/logs/test1-access.log combined
</VirtualHost>


server.xml:

[...]
<!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="false" appBase="webapps"
     acceptCount="10" debug="1"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" defaultHost="localhost" debug="1">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
      <Host name="www.test1.gr" debug="1" appBase="/www/test1/htdocs" unpackWARs="true">
         <Context path="/jsp"
                   docBase="/www/test1/htdocs/jsp"
                   crossContext="false"
                   debug="1"
                   reloadable="false" >
         </Context>
      </Host>

    </Engine>

  </Service>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>