You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by menonv <me...@cpw.co.uk> on 2001/10/04 22:57:33 UTC

mod_jk & Tomcat 4.0

Hello,
	Is there a mod_jk version that is compatible with Catalina 4.0? Is
that something is out/being worked on? Does the new version of the server
have something that is the equivalent of the ajp13 connector?

Thanks

Vinay


Disclaimer

This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no representations as regards the absence of viruses in this E-mail. If you have received this E-mail in error please notify our ISe Response Team immediately by telephone on + 44 (0)20 8896 5828 or via E-mail at postmaster@cpw.co.uk Please then immediately destroy this E-mail and any copies of it.

Please feel free to visit our website: http://www.phonehouse.com


RE: tomcat 4 & apache & mod_webapp welcome-file-list

Posted by "Kendal L. Montgomery" <th...@columbus.rr.com>.
Did anyone ever come up with an answer for this?  I've searched exhaustively
about this with no luck. Maybe I'm just missing something, but...

I am experiencing the same thing with Tomcat 4.0.2-LE / JVM 1.4.0 / Apache
1.3.23.  This is REALLY annoying, but if someone could tell me what I'm
doing wrong, I'd love to know.

Here is my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.d
td">
<web-app>
  <servlet>
    <servlet-name>PostMultipartServlet</servlet-name>
    <display-name>PostMultipartServlet</display-name>
    <description>multipart/form-data test servlet</description>

<servlet-class>org.athlonia.servlet.test.PostMultipartServlet</servlet-class
>
  </servlet>
  <servlet-mapping>
    <servlet-name>PostMultipartServlet</servlet-name>
    <url-pattern>/PostMultipartServlet</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>
      30
    </session-timeout>
  </session-config>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

when I try to hit the page: http://localhost/multipart/

I get a page cannot be displayed error in IE 5.5, saying something about a
dns error.

If I do http://localhost/multipart/index.html, I get the desired page.

My httpd.conf mod_webapp section looks like this:

#
# Webapp: Tomcat (Catalina) 4.0 connector
#
<IfModule mod_webapp.c>
  WebAppConnection warpConnection warp localhost:8008

  WebAppDeploy examples warpConnection /examples/
  WebAppDeploy multipart warpConnection /multipart/
</IfModule>

Let's see.. what else...


My server.xml section looks like this:


-- snip --
  <!-- 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="/home/httpd/webapps" acceptCount="10" debug="0"/>

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

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

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="/home/httpd/webapps"
unpackWARs="false">
        <Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/var/log/catalina" prefix="localhost_access_" suffix=".log"
pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="localhost_" suffix=".log"
timestamp="true"/>


        <!-- Multipart Test Webapp Context -->
        <Context path="/multipart" docBase="multipart.war" debug="0">
          <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="webapp_localhost_multipart_"
suffix=".log" timestamp="true"/>
        </Context>

      </Host>

    </Service>

-- snip --

Also, I noticed that the web.xml for the examples doesn't have a
<welcome-file-list> section, but it's behavior seems correct, with the
exception that it's index.html is in a /jsp or /servlet subdirectory.  I
tried removing the <welcome-file-list> section from my web.xml and still got
the same incorrect behavior as with it in place.  So...

Any information would be much appreciated!  Thanks.

Kendal L. Montgomery
...the comPuter Wizard...
theWizK@columbus.rr.com
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Click here for Qwest's 5 cent State-to-State flat rate calling plan, plus
get your own 800 number at no charge!
http://qwesteferral.com/r.jsp?a=RyYO5xpYanlfVU541Lz2HA$$
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_

-----Original Message-----
From: Dom [mailto:dombat@free.fr]
Sent: Friday, October 05, 2001 2:15 PM
To: tomcat-user@jakarta.apache.org; Tomcat Developer List
Subject: tomcat 4 & apache & mod_webapp welcome-file-list

Tomcat 4 + Apache + mod_webapp.so :
It looks like welcome-file-list in web.xml doesn't work with web
applications in virtual hosts ?

Dom


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


RE: tomcat 4 & apache & mod_webapp welcome-file-list

Posted by "Kendal L. Montgomery" <th...@columbus.rr.com>.
Did anyone ever come up with an answer for this?  I've searched exhaustively
about this with no luck. Maybe I'm just missing something, but...

I am experiencing the same thing with Tomcat 4.0.2-LE / JVM 1.4.0 / Apache
1.3.23.  This is REALLY annoying, but if someone could tell me what I'm
doing wrong, I'd love to know.

Here is my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.d
td">
<web-app>
  <servlet>
    <servlet-name>PostMultipartServlet</servlet-name>
    <display-name>PostMultipartServlet</display-name>
    <description>multipart/form-data test servlet</description>

<servlet-class>org.athlonia.servlet.test.PostMultipartServlet</servlet-class
>
  </servlet>
  <servlet-mapping>
    <servlet-name>PostMultipartServlet</servlet-name>
    <url-pattern>/PostMultipartServlet</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>
      30
    </session-timeout>
  </session-config>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

when I try to hit the page: http://localhost/multipart/

I get a page cannot be displayed error in IE 5.5, saying something about a
dns error.

If I do http://localhost/multipart/index.html, I get the desired page.

My httpd.conf mod_webapp section looks like this:

#
# Webapp: Tomcat (Catalina) 4.0 connector
#
<IfModule mod_webapp.c>
  WebAppConnection warpConnection warp localhost:8008

  WebAppDeploy examples warpConnection /examples/
  WebAppDeploy multipart warpConnection /multipart/
</IfModule>

Let's see.. what else...


My server.xml section looks like this:


-- snip --
  <!-- 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="/home/httpd/webapps" acceptCount="10" debug="0"/>

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

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

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="/home/httpd/webapps"
unpackWARs="false">
        <Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/var/log/catalina" prefix="localhost_access_" suffix=".log"
pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="localhost_" suffix=".log"
timestamp="true"/>


        <!-- Multipart Test Webapp Context -->
        <Context path="/multipart" docBase="multipart.war" debug="0">
          <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="webapp_localhost_multipart_"
suffix=".log" timestamp="true"/>
        </Context>

      </Host>

    </Service>

-- snip --

Also, I noticed that the web.xml for the examples doesn't have a
<welcome-file-list> section, but it's behavior seems correct, with the
exception that it's index.html is in a /jsp or /servlet subdirectory.  I
tried removing the <welcome-file-list> section from my web.xml and still got
the same incorrect behavior as with it in place.  So...

Any information would be much appreciated!  Thanks.

Kendal L. Montgomery
...the comPuter Wizard...
theWizK@columbus.rr.com
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Click here for Qwest's 5 cent State-to-State flat rate calling plan, plus
get your own 800 number at no charge!
http://qwesteferral.com/r.jsp?a=RyYO5xpYanlfVU541Lz2HA$$
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_

-----Original Message-----
From: Dom [mailto:dombat@free.fr]
Sent: Friday, October 05, 2001 2:15 PM
To: tomcat-user@jakarta.apache.org; Tomcat Developer List
Subject: tomcat 4 & apache & mod_webapp welcome-file-list

Tomcat 4 + Apache + mod_webapp.so :
It looks like welcome-file-list in web.xml doesn't work with web
applications in virtual hosts ?

Dom


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


tomcat 4 & apache & mod_webapp welcome-file-list

Posted by Dom <do...@free.fr>.
Tomcat 4 + Apache + mod_webapp.so :
It looks like welcome-file-list in web.xml doesn't work with web
applications in virtual hosts ?

Dom