On Wed, Jan 30, 2002 at 01:04:37PM -0800, August Gresens wrote: > > On Tuesday, January 29, 2002, at 04:45 PM, [EMAIL PROTECTED] wrote: > > >On Tue, Jan 29, 2002 at 07:31:38PM -0800, August Gresens wrote: > >>Using the method described in the RUNNING.txt that comes with the > >>Tomcat > >>installation, I'm trying to install multiple instances of Tomcat 4.1 on > >>a Linux server, so that multiple developers can work independently. > >> > >>I'm running into some problems, however. Here is what I have done so > >>far.. > >> > >>1. I copy the appropriate directories (conf, webapps, work, logs) from > >>the Tomcat installation into a directory in my user's home directory > >>called "tomcat" > >>1. I configure the CATALINA_BASE ENVIRONMENT for each user to be > >>CATALINA_BASE=$HOME/tomcat > >>2. In USER B's server.xml file, I change the port attribute of the > >>Connector element to be 8081 (not used by my machine). > > > >Try changing <Server port="8005" shutdown="SHUTDOWN" debug="0"> to > >use a different port number. > > > >Also, have you disabled the AJP1.3 connector on port 8009? > > > > > > I've tried changing the server port to no avail. The AJP1.3 Connector > was commented out (the default). > > What other ports are in use? > > Has anyone had any success doing this at all?
Sort of... I just configed two of my tomcats to work in a simalar way to your setup. (I'm using 4.0.2B2 - what ever that release was... :) I've attached one of the server.xml files with all the comments removed. The file does a little more than you wanted... It also sets up ajp13 ports for mod_jk. For each tomcat, make the numbers with ### around them unique. <Server port="###11005###" shutdown="SHUTDOWN" debug="0"> <Service name="Tomcat-Standalone"> <Connector className="org.apache.catalina.connector.http.HttpConnector" port="###8081###" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="60000"/> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="###11009###" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/> <Engine jvmRoute="###tomcat1###" name="Standalone" defaultHost="localhost" debug="0"> I hope this helps. Jonathan.
<Server port="11005" shutdown="SHUTDOWN" debug="0"> <Service name="Tomcat-Standalone"> <Connector className="org.apache.catalina.connector.http.HttpConnector" port="8081" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="60000"/> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="11009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/> <Engine jvmRoute="tomcat1" 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" /> <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"/> <Context path="/manager" docBase="manager" debug="0" privileged="true"/> <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> <Service name="Tomcat-Apache"> <Engine className="org.apache.catalina.connector.warp.WarpEngine" name="Apache" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm" /> </Engine> </Service> </Server>
-- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>