tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dbgroups" <dbgro...@dbgroups.com>
Subject Re: Apache 2.0.35+Tomcat 4.0.3
Date Mon, 15 Apr 2002 00:21:02 GMT
To make tomcat as a servlet container for apache 2:
    1) Do i need both mod_webapp.so and mod_jk.so? i make it work fine using
mod_jk for apache 1.3.22 and tomcat 3.3
    2) i use tomcat-4.0.3 for jdk1.4 with the mod_webapp.so and mod_jk-01.so
from Linux-1386. i can make tomcat-4.0.3 run as a default standalone http.
But Apache 2.0.35 gives errors: undefined symbol ap_table-get when it
attenps to load either mod_jk of mod_webapp.
    3) Coud someone take a look at my httpd.config and server.xml to see
what i did wrong?

Here is the server.xml
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- 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" appBase="webapps"

acceptCount="10" debug="0"/>

<!-- Define an AJP 1.3 Connector on port 8009 -->

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"

port="8009" minProcessors="5" maxProcessors="75"

acceptCount="10" debug="0"/>

<Engine className="org.apache.catalina.connector.warp.WarpEngine"

name="Apache" debug="0">

<!-- 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="dev1.dbgroups.com">

<Context path=""

docBase="/data/ws/dev1/web

crossContext="false"

debug="0"

reloadable="true" />

<Context path="dbgroups.com"

docBase="/data/ws/dbgroups.com/web

crossContext="false"

debug="0"

reloadable="true" />

</Host>

</Engine>

</Service>

<!-- Define the Tomcat Stand-Alone Service -->

<Service name="Tomcat-Standalone">

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->

<Connector className="org.apache.catalina.connector.http.HttpConnector"

port="8080" minProcessors="5" maxProcessors="75"

enableLookups="true" redirectPort="8443"

acceptCount="10" debug="0" connectionTimeout="60000"/>

<!-- Define an AJP 1.3 Connector on port 8009 -->

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"

port="8009" minProcessors="5" maxProcessors="75"

acceptCount="10" debug="0"/>

<Engine name="Standalone" defaultHost="localhost" debug="0">

<Logger className="org.apache.catalina.logger.FileLogger"

prefix="catalina_log." suffix=".txt"

timestamp="true"/>

<Realm className="org.apache.catalina.realm.MemoryRealm" />

<!-- Define the default virtual host -->

<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">

<Valve className="org.apache.catalina.valves.AccessLogValve"

directory="logs" prefix="localhost_access_log." suffix=".txt"

pattern="common"/>

<Logger className="org.apache.catalina.logger.FileLogger"

directory="logs" prefix="localhost_log." suffix=".txt"

timestamp="true"/>

<!-- Tomcat Root Context -->

<!--

<Context path="" docBase="ROOT" debug="0"/>

-->

<!-- Tomcat Manager Context -->

<Context path="/manager" docBase="manager"

debug="0" privileged="true"/>

<!-- Tomcat Examples Context -->

<Context path="/examples" docBase="examples" debug="0"

reloadable="true" crossContext="true">

<Logger className="org.apache.catalina.logger.FileLogger"

prefix="localhost_examples_log." suffix=".txt"

timestamp="true"/>

<Ejb name="ejb/EmplRecord" type="Entity"

home="com.wombat.empl.EmployeeRecordHome"

remote="com.wombat.empl.EmployeeRecord"/>

<Environment name="maxExemptions" type="java.lang.Integer"

value="15"/>

<Parameter name="context.param.name" value="context.param.value"

override="false"/>

<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"

type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/EmployeeAppDb">

<parameter><name>user</name><value>sa</value></parameter>

<parameter><name>password</name><value></value></parameter>

<parameter><name>driverClassName</name>

<value>org.hsql.jdbcDriver</value></parameter>

<parameter><name>driverName</name>

<value>jdbc:HypersonicSQL:database</value></parameter>

</ResourceParams>

<Resource name="mail/Session" auth="Container"

type="javax.mail.Session"/>

<ResourceParams name="mail/Session">

<parameter>

<name>mail.smtp.host</name>

<value>localhost</value>

</parameter>

</ResourceParams>

</Context>

</Host>

</Engine>

</Service>

</Server>


Here is relevant part of my httpd.config file:
LoadModule jk_module modules/mod_jk-01.so

AddModule mod_jk.c

JkWorkersFile /apps/tomcat-4.0.3/conf/jk/workers.properties

JkLogFile /apps/httpd-2.0.35/logs/mod_jk.log

JkLogLevel info

LoadModule webapp_module modules/mod_webapp.so

AddModule mod_webapp.c

NameVirtualHost 192.168.1.65

<VirtualHost 192.168.1.65>

ServerAdmin admin@dbgroups.com

DocumentRoot /data/ws/dev1/web

ServerName dev1.dbgroups.com

JkMount /*.jsp ajp13

JkMount /*.do ajp13

Alias /dbgroups.com /data/ws/dbgroups.com/web

# The MOD_WEBAPP connector for this VirtualHost

WebAppConnection warpConnection warp localhost:8008

WebAppDeploy dbgroups.com warpConnection /dbgroups.com/

</VirtualHost>

# Virtual Host for all web applications from appsdev1.dbgroups.com

<VirtualHost 192.168.1.65:80>

ServerAdmin admin@dbgroups.com

DocumentRoot /apps/tomcat-4.0.3/webapps/ROOT

ServerName appsdev1.dbgroups.com

JkMount /*.jsp ajp13

JkMount /*.do ajp13

Alias /com.dbgroups.ppf /apps/tomcat-4.0.3/webapps/com.dbgroups.ppf

# The MOD_WEBAPP connector for this VirtualHost

WebAppConnection warpConnection warp localhost:8008

WebAppDeploy com.dbgroups.ppf warpConnection /com.dbgroups.ppf/

# MOD_WEBAPP connector to applications from tomcat

WebAppDeploy examples warpConnection /examples/

WebAppDeploy manager warpConnection /manager/

WebAppDeploy tomcat-docs warpConnection /tomcat-docs/

WebAppDeploy webdav warpConnection /webdav/

</VirtualHost>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message