I just started following this list, but I have tried to look in the 
archives and in deja news for an explanation for the "duplicate connection 
name" error. This error occurs when I restart Apache.

I am using a hosted server where I do not have root. Currently tomcat 4.0.1 
and apache 1.3 are installed. The Tomcat standalone http server works fine 
at port 8080, and apache is running on port 80. This system is using the 
2.1.3 glibc libraries, so I cannot use the precompiled versions mod_webapp 
(which seem to use 2.2).

1. I obtained the source from this url:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src/webapp-module-1.0.1-tc401-src.tar.gz
 


2. built the module:
support/buildconfs.sh
configure --with-apxs
make

3. copied apache-1.3/mod_webapp.so to the apache libexec directory

4. added the following to httpd.conf
LoadModule webapp_module       libexec/mod_webapp.so
...
AddModule mod_webapp.c
...
WebAppConnection conn warp localhost:8008
WebAppDeploy xx  conn /xx

5. the server.xml file contains the information that came with it:

  <!-- Define an Apache-Connector Service -->
   <Service name="Tomcat-Apache">
     <Connector className="org.apache.catalina.connector.warp.WarpConnector"
      port="8008" minProcessors="5" maxProcessors="75"
      enableLookups="true"
      acceptCount="10" debug="0"/>
     <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
     <Engine className="org.apache.catalina.connector.warp.WarpEngine"
      name="Apache" debug="0" appBase="webapps">
       <Logger className="org.apache.catalina.logger.FileLogger"
               prefix="apache_log." suffix=".txt"
               timestamp="true"/>
       <Realm className="org.apache.catalina.realm.MemoryRealm" />
     </Engine>
   </Service>


6. When I restart apache I get the "duplicate connection name" error 
reported for the WebAppConnection statement.

7. I have the same setup running locally on a machine where I do have root 
access, and it is working fine. The only difference between the systems 
that I am aware of is that it is glibc 2.2. And I am not sure what the 
apache version of the hosted system is, but I am pretty sure it is 
1.3.something.


-- what causes the "duplicate connection name" errors?
-- are there any other choices for accessing Tomcat through port 80? I am 
aware of using a ProxyPass directive in Apache, but using that approach 
static content will always be served by Tomcat.
- what does the "replace localhost..." comment in the server.xml file mean? 
There is no "localhost" parameter in either 4.0.1 or 4.0.3.

thanks,
Greg


Greg Munger   -   219-926-7604    - Lake Point Interactive   -   www.lpiweb.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to