Hi Marc, I had a look you on your server.xml.
Do you have a ROOT directory in your server.xml? If yes, move it out of the webapps and they restart your Tomcat and test. Alternativly, try giving a context name other then root to your context in server.xml. In server.xml <Context path="/foo" docBase="/var/www/html" debug="9"/> in httpd.conf JkMount /foo local_pt1 JkMount /foo/*.jsp local_pt1 Let me know if it works. Raj Marc wrote: > Hi, > here I attach my conf files: I've modified server.xml and workers.properties > (submitted by Raj), just creating a new context on the server.xml to support my > default application, at the root path. I can connect to this page, located in > /var/www/html using > - Tomcat, on port 8080 > - Apache, on port 80 (before configuring the ajp13 worker) > > I'm using the mod_jk, no eapi version, provided in the last jk1.2 release. > > Seems that the connector is running, because in catalina_log.2002-10-08.txt: > 2002-10-08 21:26:34 Ajp13Connector[8009] Opening server socket on all host IP > addresses > 2002-10-08 21:26:34 Ajp13Connector[8009] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][0] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][1] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][2] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][3] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][4] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][5] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][6] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][7] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][8] Starting background thread > 2002-10-08 21:26:34 Ajp13Processor[8009][9] Starting background thread > > When I start apache (after tomcat starts), seems that all is ok: > [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (172)]: Into > jk_uri_worker_map_t::uri_worker_map_alloc > [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (375)]: Into > jk_uri_worker_map_t::uri_worker_map_open > [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (396)]: > jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 > [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (299)]: Into > jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added > [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (408)]: Into > jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules > [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (422)]: > jk_uri_worker_map_t::uri_worker_map_open, done > [Tue Oct 08 21:29:24 2002] [jk_worker.c (88)]: Into wc_open > [Tue Oct 08 21:29:24 2002] [jk_worker.c (222)]: Into build_worker_map, creating > 1 workers > [Tue Oct 08 21:29:24 2002] [jk_worker.c (228)]: build_worker_map, creating > worker local_pt1 > [Tue Oct 08 21:29:24 2002] [jk_worker.c (148)]: Into wc_create_worker > [Tue Oct 08 21:29:24 2002] [jk_worker.c (162)]: wc_create_worker, about to > create instance local_pt1 of ajp13 > [Tue Oct 08 21:29:24 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory > [Tue Oct 08 21:29:24 2002] [jk_worker.c (171)]: wc_create_worker, about to > validate and init local_pt1 > [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate > [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate > for worker local_pt1 contact is localhost:8009 > [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init > [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, > setting socket timeout to 0 > [Tue Oct 08 21:29:24 2002] [jk_worker.c (187)]: wc_create_worker, done > [Tue Oct 08 21:29:24 2002] [jk_worker.c (238)]: build_worker_map, removing old > local_pt1 worker > [Tue Oct 08 21:29:24 2002] [jk_worker.c (250)]: build_worker_map, done > [Tue Oct 08 21:29:24 2002] [jk_worker.c (111)]: wc_open, done 1 > > (I don't know why the previos actions are repeated, seems that mounts the worker > two times) > > [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (172)]: Into > jk_uri_worker_map_t::uri_worker_map_alloc > [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (375)]: Into > jk_uri_worker_map_t::uri_worker_map_open > [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (396)]: > jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 > [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (299)]: Into > jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added > [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (408)]: Into > jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules > [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (422)]: > jk_uri_worker_map_t::uri_worker_map_open, done > [Tue Oct 08 21:29:25 2002] [jk_worker.c (88)]: Into wc_open > [Tue Oct 08 21:29:25 2002] [jk_worker.c (222)]: Into build_worker_map, creating > 1 workers > [Tue Oct 08 21:29:25 2002] [jk_worker.c (228)]: build_worker_map, creating > worker local_pt1 > [Tue Oct 08 21:29:25 2002] [jk_worker.c (148)]: Into wc_create_worker > [Tue Oct 08 21:29:25 2002] [jk_worker.c (162)]: wc_create_worker, about to > create instance local_pt1 of ajp13 > [Tue Oct 08 21:29:25 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory > [Tue Oct 08 21:29:25 2002] [jk_worker.c (171)]: wc_create_worker, about to > validate and init local_pt1 > [Tue Oct 08 21:29:25 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate > [Tue Oct 08 21:29:25 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate > for worker local_pt1 contact is localhost:8009 > [Tue Oct 08 21:29:25 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init > [Tue Oct 08 21:29:25 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, > setting socket timeout to 0 > [Tue Oct 08 21:29:25 2002] [jk_worker.c (187)]: wc_create_worker, done > [Tue Oct 08 21:29:25 2002] [jk_worker.c (238)]: build_worker_map, removing old > local_pt1 worker > [Tue Oct 08 21:29:25 2002] [jk_worker.c (250)]: build_worker_map, done > [Tue Oct 08 21:29:25 2002] [jk_worker.c (111)]: wc_open, done 1 > > > When I get a jsp page through apache, seems that apache forwards the request to > tomcat, but finally cannot connect to connector, an errno=110 is given > > [Tue Oct 08 21:29:50 2002] [jk_uri_worker_map.c (460)]: Into > jk_uri_worker_map_t::map_uri_to_worker > [Tue Oct 08 21:29:50 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI > '/index.jsp' > [Tue Oct 08 21:29:50 2002] [jk_uri_worker_map.c (558)]: > jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match local_pt1 -> *.jsp > [Tue Oct 08 21:29:50 2002] [jk_uri_worker_map.c (460)]: Into > jk_uri_worker_map_t::map_uri_to_worker > [Tue Oct 08 21:29:50 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI > '/index.jsp' > [Tue Oct 08 21:29:50 2002] [jk_uri_worker_map.c (558)]: > jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match local_pt1 -> *.jsp > [Tue Oct 08 21:29:50 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name > local_pt1 > [Tue Oct 08 21:29:50 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done > found a worker > [Tue Oct 08 21:29:50 2002] [jk_ajp_common.c (1391)]: Into > jk_worker_t::get_endpoint > [Tue Oct 08 21:29:50 2002] [jk_ajp_common.c (1107)]: Into jk_endpoint_t::service > > [Tue Oct 08 21:29:50 2002] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb > [Tue Oct 08 21:29:50 2002] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done > > [Tue Oct 08 21:29:50 2002] [jk_connect.c (132)]: Into jk_open_socket > [Tue Oct 08 21:29:50 2002] [jk_connect.c (139)]: jk_open_socket, try to connect > socket = 6 > [Tue Oct 08 21:32:59 2002] [jk_connect.c (148)]: jk_open_socket, after connect > ret = -1 > [Tue Oct 08 21:32:59 2002] [jk_connect.c (177)]: jk_open_socket, connect() > failed errno = 110 > [Tue Oct 08 21:32:59 2002] [jk_ajp_common.c (626)]: In > jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 110 > [Tue Oct 08 21:32:59 2002] [jk_ajp_common.c (872)]: Error connecting to the > Tomcat process. > [Tue Oct 08 21:32:59 2002] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, > ajp_send_request failed in send loop 0 > [Tue Oct 08 21:32:59 2002] [jk_connect.c (132)]: Into jk_open_socket > [Tue Oct 08 21:32:59 2002] [jk_connect.c (139)]: jk_open_socket, try to connect > socket = 6 > [Tue Oct 08 21:36:08 2002] [jk_connect.c (148)]: jk_open_socket, after connect > ret = -1 > [Tue Oct 08 21:36:08 2002] [jk_connect.c (177)]: jk_open_socket, connect() > failed errno = 110 > [Tue Oct 08 21:36:08 2002] [jk_ajp_common.c (626)]: In > jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 110 > [Tue Oct 08 21:36:08 2002] [jk_ajp_common.c (872)]: Error connecting to the > Tomcat process. > [Tue Oct 08 21:36:08 2002] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, > ajp_send_request failed in send loop 1 > [Tue Oct 08 21:36:08 2002] [jk_connect.c (132)]: Into jk_open_socket > [Tue Oct 08 21:36:08 2002] [jk_connect.c (139)]: jk_open_socket, try to connect > socket = 6 > [Tue Oct 08 21:39:17 2002] [jk_connect.c (148)]: jk_open_socket, after connect > ret = -1 > [Tue Oct 08 21:39:17 2002] [jk_connect.c (177)]: jk_open_socket, connect() > failed errno = 110 > [Tue Oct 08 21:39:17 2002] [jk_ajp_common.c (626)]: In > jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 110 > [Tue Oct 08 21:39:17 2002] [jk_ajp_common.c (872)]: Error connecting to the > Tomcat process. > [Tue Oct 08 21:39:17 2002] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, > ajp_send_request failed in send loop 2 > [Tue Oct 08 21:39:17 2002] [jk_ajp_common.c (1375)]: Into jk_endpoint_t::done, > closing connection 0 > [Tue Oct 08 21:39:17 2002] [jk_ajp_common.c (561)]: In > jk_endpoint_t::ajp_close_endpoint > > > Any ideas?? Is errno=110 a OS error? > > With tomcat and apache running, I tried to connect via telnet: > > [root@telemako logs]# telnet localhost 80 > Trying 217.116.2.172... > Connected to localhost. > Escape character is '^]'. > > Connection closed by foreign host. (Ctrl+C) > [root@telemako logs]# > > [root@telemako logs]# telnet localhost 8080 > Trying 217.116.2.172... > telnet: connect to address 217.116.2.172: Connection refused > [root@telemako logs]# telnet localhost 8009 > Trying 217.116.2.172... > > (finally a timeout is given) > > > thank you all!!!! > > Best regards!!!! > > > Marc > > PD: Configuration is RedHat 7.2, Tomcat 4.1.12, Apache 1.3.22 and jdk 1.4.1. I > only have access to the machine throug telnet or a web application called webmin > (I don't know if this can affect), but I tried the same using 'curl', with the > same result (curl http://localhost:80/index.jsp) > sonam singh wrote: > > >>whih verison of mod_jk u'r using specify . when u try >>to run the apache is it showing any error . try to >>connect the tomcat directly nto through apache + >>tomcat . >> >>regards >>Sonam Singh >> >>--- Raj Saini <[EMAIL PROTECTED]> wrote: >> >>>Hi Marc, >>> >>>Telnet to the port 8009 shows that your JK connecter >>>is listening on >>>port 8009. You won't get any output. >>> >>>Now there can be the conflict of host now. What is >>>the defaulthost >>>attribute of your Engine tag and name attribute of >>>the Host tag in your >>>server.xml? Are they both set to localhost? >>> >>>Can you post your complete server.xml file? >>> >>>BTW, are you running apache and tomcat on the same >>>host? >>> >>>Raj >>> >>>Marc wrote: >>> >>>>Hi Raj (and thank you for your help yesterday)... >>>>I tried to connect using telenet to localhost 8009 >>> >>>and... there wasn't >>> >>>>connection >>>>refused, but the connection wasn't accepted >>> >>>(showed the Escape character >>> >>>>... ), >>>>finally I killed the telnet process because no >>> >>>response was given. >>> >>>>I think that the ajp13 connector (tomcat) is not >>> >>>running in the rigth >>> >>>>way, >>>>because, seems that apache finds the worker (the >>> >>>worker name is ok): >>> >>>> > [Tue Oct 08 02:49:21 2002] >>> >>>[jk_worker.c (187)]: >>> >>>> wc_create_worker, done >>>> > [Tue Oct 08 02:49:21 2002] >>> >>>[jk_worker.c (238)]: >>> >>>> build_worker_map, removing old local_pt1 >>> >>>worker >>> >>>> > [Tue Oct 08 02:49:21 2002] >>> >>>[jk_worker.c (250)]: >>> >>>> build_worker_map, done >>>> > [Tue Oct 08 02:49:21 2002] >>> >>>[jk_worker.c (111)]: wc_open, >>> >>>> done 1 >>>> >>>>My workers.properties is: >>>>ps=/ >>>> >>>>worker.list=local_pt1 >>>> >>>>worker.local_pt1.port=8009 >>>>worker.local_pt1.host=localhost >>>>worker.local_pt1.type=ajp13 >>>> >>>>worker.local_pt1.lbfactor=1 >>>> >>>>My server.xml: >>>><!-- 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"/> >>>> >>>>And, in catalina_log, seems that the connector >>> >>>starts all threads: >>> >>>>2002-10-08 02:35:06 Ajp13Connector[8009] Opening >>> >>>server socket on all >>> >>>>host IP >>>>addresses >>>>2002-10-08 02:35:06 Ajp13Connector[8009] Starting >>> >>>background thread >>> >>>>2002-10-08 02:35:06 Ajp13Processor[8009][0] >>> >>>Starting background thread >>> >>>>2002-10-08 02:35:06 Ajp13Processor[8009][1] >>> >>>Starting background thread >>> >>>>2002-10-08 02:35:06 Ajp13Processor[8009][2] >>> >>>Starting background thread >>> >>>>2002-10-08 02:35:06 Ajp13Processor[8009][3] >>> >>>Starting background thread >>> >>>>2002-10-08 02:35:06 Ajp13Processor[8009][4] >>> >>>Starting background thread >>> >>>> >>>>Any ideas? >>>> >>>>Regards! >>>> >>>>Marc >>>> >>>>Raj Saini wrote: >>>> >>>> >>>> >>>>>Hi Marc, >>>>> >>>>>Though I am not expert in the JK Connectors, But >>>> >>>it is very clear that >>> >>>>>mod_jk part at apache is not able to connect to >>>> >>>the tomcat process. >>> >>>>>There may be three reason for this:- >>>>> >>>>>1. Your JK connector on tomcat is not listening on >>>> >>>port 8009. >>> >>>>>2. The host name of the worker in >>>> >>>worker.properties and tomcat does >>> >>>>not >>>> >>>> >>>>>match. >>>>>3. Tomct is not running at all. >>>>> >>>>>Pleas double check your JK connector configuration >>>> >>>in server.xml. >>> >>>>Check >>>> >>>> >>>>>the default host name in tomcat and >>>> >>>worker.properties for the >>> >>>>local_pt1 >>>> >>>> >>>>>match. >>>>> >>>>>Try telneting to the host and port you have >>>> >>>configured in >>> >>>>worker.properties. >>>> >>>> >>>>>Raj >>>>> >>>>>Marc Vila Pérez wrote: >>>>> >>>>> >>>>>>Hi! >>>>>>I'm trying to connect apache with tomcat, using >>>>> >>>jk (ajp13), in my >>> >>>>>>mod_jk.log (debug log level), I can read this: >>>>>> >>>>>>[Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c >>>>> >>>(172)]: Into >>> >>>>>>jk_uri_worker_map_t::uri_worker_map_alloc >>>>>>[Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c >>>>> >>>(375)]: Into >>> >>>>>>jk_uri_worker_map_t::uri_worker_map_open >>>>>>[Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c >>>>> >>>(396)]: >>> >>>>>>jk_uri_worker_map_t::uri_worker_map_open, rule >>>>> >>>map size is 1 >>> >>>>>>[Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c >>>>> >>>(299)]: Into >>> >>>>>>jk_uri_worker_map_t::uri_worker_map_open, suffix >>>>> >>>rule >>> >>>>/.jsp=local_pt1 >>>> >>>> >>>>>>was added >>>>>>[Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c >>>>> >>>(408)]: Into >>> >>>>>>jk_uri_worker_map_t::uri_worker_map_open, there >>>>> >>>are 1 rules >>> >>>>>>[Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c >>>>> >>>(422)]: >>> >>>>>>jk_uri_worker_map_t::uri_worker_map_open, done >>>>>>[Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: >>>>> >>>Into wc_open >>> >>>>>>[Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: >>>>> >>>Into >>> >>>>build_worker_map, >>>> >>>> >>>>>>creating 1 workers >>>>>>[Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: >>>>> >>>build_worker_map, >>> >>>>>>creating worker local_pt1 >>>>>>[Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: >>>>> >>>Into >>> >>>>wc_create_worker >>>> >>>> >>>>>>[Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: >>>>> >>>wc_create_worker, >>> >>>>about >>>> >>>> >>>>>>to create instance local_pt1 of ajp13 >>>>>>[Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c >>>>> >>>(108)]: Into >>> >>>>>>ajp13_worker_factory >>>>>>[Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: >>>>> >>>wc_create_worker, >>> >>>>about >>>> >>>> >>>>>>to validate and init local_pt1 >>>>>>[Tue Oct 08 02:49:20 2002] [jk_ajp_common.c >>>>> >>>(1206)]: Into >>> >> >>=== message truncated === >> >>__________________________________________________ >>Do you Yahoo!? >>Faith Hill - Exclusive Performances, Videos & More >>http://faith.yahoo.com >> >>-- >>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > ------------------------------------------------------------------------ > > <Server port="8005" shutdown="SHUTDOWN" debug="0"> > > <!-- ApacheConfig Listener to generate the mod_jk.conf files > <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"/> > --> > > <!-- Uncomment these entries to enable JMX MBeans support > <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" > debug="0"/> > --> > > <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > debug="0"/> > > <!-- Global JNDI resources --> > <GlobalNamingResources> > > <!-- Test entry for demonstration purposes --> > <Environment name="simpleValue" type="java.lang.Integer" value="30"/> > > <!-- Editable user database that can also be used by > UserDatabaseRealm to authenticate users --> > <Resource name="UserDatabase" auth="Container" > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved"> > </Resource> > <ResourceParams name="UserDatabase"> > <parameter> > <name>factory</name> > <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> > </parameter> > <parameter> > <name>pathname</name> > <value>conf/tomcat-users.xml</value> > </parameter> > </ResourceParams> > > </GlobalNamingResources> > > <!-- A "Service" is a collection of one or more "Connectors" that share > a single "Container" (and therefore the web applications visible > within that Container). Normally, that Container is an "Engine", > but this is not required. > > Note: A "Service" is not itself a "Container", so you may not > define subcomponents such as "Valves" or "Loggers" at this level. > --> > > <!-- Define the Tomcat Stand-Alone Service --> > <Service name="Tomcat-Standalone"> > > <!-- A "Connector" represents an endpoint by which requests are received > and responses are returned. Each Connector passes requests on to the > associated "Container" (normally an Engine) for processing. > > By default, a non-SSL HTTP/1.1 Connector is established on port 8080. > You can also enable an SSL HTTP/1.1 Connector on port 8443 by > following the instructions below and uncommenting the second Connector > entry. SSL support requires the following steps (see the SSL Config > HOWTO in the Tomcat 4.0 documentation bundle for more detailed > instructions): > * Download and install JSSE 1.0.2 or later, and put the JAR files > into "$JAVA_HOME/jre/lib/ext". > * Execute: > %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) > $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) > with a password value of "changeit" for both the certificate and > the keystore itself. > > By default, DNS lookups are enabled when a web application calls > request.getRemoteHost(). This can have an adverse impact on > performance, so you can disable it by setting the > "enableLookups" attribute to "false". When DNS lookups are disabled, > request.getRemoteHost() will return the String version of the > IP address of the remote client. > --> > > <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > port="8080" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" connectionTimeout="20000" > useURIValidationHack="false" /> > <!-- Note : To disable connection timeouts, set connectionTimeout value > to -1 --> > > <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> > <!-- > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > port="8443" minProcessors="5" maxProcessors="75" > enableLookups="true" > acceptCount="10" debug="0" scheme="https" secure="true" > useURIValidationHack="false"> > <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" > clientAuth="false" protocol="TLS" /> > </Connector> > --> > > <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> > <!-- > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > port="8009" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" connectionTimeout="20000" > useURIValidationHack="false" > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > --> > > <!-- Define an AJP 1.3 Connector on port 8009 --> > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" > port="8009" minProcessors="10" maxProcessors="75" > acceptCount="10" debug="0"/> > > <!-- Define a Proxied HTTP/1.1 Connector on port 8082 --> > <!-- See proxy documentation for more information about using this. --> > <!-- > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > port="8082" minProcessors="5" maxProcessors="75" > enableLookups="true" > acceptCount="10" debug="0" connectionTimeout="20000" > proxyPort="80" useURIValidationHack="false" /> > --> > > <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 --> > <!-- > <Connector className="org.apache.catalina.connector.http.HttpConnector" > port="8083" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" /> > --> > > <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 --> > <!-- > <Connector className="org.apache.catalina.connector.http10.HttpConnector" > port="8084" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" /> > --> > > <!-- An Engine represents the entry point (within Catalina) that processes > every request. The Engine implementation for Tomcat stand alone > analyzes the HTTP headers included with the request, and passes them > on to the appropriate Host (virtual host). --> > > <!-- Define the top level container in our container hierarchy --> > <Engine name="Standalone" defaultHost="localhost" debug="0"> > > <!-- The request dumper valve dumps useful debugging information about > the request headers and cookies that were received, and the response > headers and cookies that were sent, for all requests received by > this instance of Tomcat. If you care only about requests to a > particular virtual host, or a particular application, nest this > element inside the corresponding <Host> or <Context> entry instead. > > For a similar mechanism that is portable to all Servlet 2.3 > containers, check out the "RequestDumperFilter" Filter in the > example application (the source for this filter may be found in > "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters"). > > Request dumping is disabled by default. Uncomment the following > element to enable it. --> > <!-- > <Valve className="org.apache.catalina.valves.RequestDumperValve"/> > --> > > <!-- Global logger unless overridden at lower levels --> > <Logger className="org.apache.catalina.logger.FileLogger" > prefix="catalina_log." suffix=".txt" > timestamp="true"/> > > <!-- Because this Realm is here, an instance will be shared globally --> > > <!-- This Realm uses the UserDatabase configured in the global JNDI > resources under the key "UserDatabase". Any edits > that are performed against this UserDatabase are immediately > available for use by the Realm. --> > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > debug="0" resourceName="UserDatabase"/> > > <!-- Comment out the old realm but leave here for now in case we > need to go back quickly --> > <!-- > <Realm className="org.apache.catalina.realm.MemoryRealm" /> > --> > > <!-- Replace the above Realm with one of the following to get a Realm > stored in a database and accessed via JDBC --> > > <!-- > <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" > driverName="org.gjt.mm.mysql.Driver" > connectionURL="jdbc:mysql://localhost/authority" > connectionName="test" connectionPassword="test" > userTable="users" userNameCol="user_name" userCredCol="user_pass" > userRoleTable="user_roles" roleNameCol="role_name" /> > --> > > <!-- > <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" > driverName="oracle.jdbc.driver.OracleDriver" > connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" > connectionName="scott" connectionPassword="tiger" > userTable="users" userNameCol="user_name" userCredCol="user_pass" > userRoleTable="user_roles" roleNameCol="role_name" /> > --> > > <!-- > <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" > driverName="sun.jdbc.odbc.JdbcOdbcDriver" > connectionURL="jdbc:odbc:CATALINA" > userTable="users" userNameCol="user_name" userCredCol="user_pass" > userRoleTable="user_roles" roleNameCol="role_name" /> > --> > > <!-- Define the default virtual host --> > <Host name="localhost" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > > <!-- Normally, users must authenticate themselves to each web app > individually. Uncomment the following entry if you would like > a user to be authenticated the first time they encounter a > resource protected by a security constraint, and then have that > user identity maintained across *all* web applications contained > in this virtual host. --> > <!-- > <Valve className="org.apache.catalina.authenticator.SingleSignOn" > debug="0"/> > --> > > <!-- Access log processes all requests for this virtual host. By > default, log files are created in the "logs" directory relative to > $CATALINA_HOME. If you wish, you can specify a different > directory with the "directory" attribute. Specify either a relative > (to $CATALINA_HOME) or absolute path to the desired directory. > --> > <!-- > <Valve className="org.apache.catalina.valves.AccessLogValve" > directory="logs" prefix="localhost_log." suffix=".txt" > pattern="common" resolveHosts="false"/> > --> > > <!-- Logger shared by all Contexts related to this virtual host. By > default (when using FileLogger), log files are created in the "logs" > directory relative to $CATALINA_HOME. If you wish, you can specify > a different directory with the "directory" attribute. Specify either a > relative (to $CATALINA_HOME) or absolute path to the desired > directory.--> > <Logger className="org.apache.catalina.logger.FileLogger" > directory="logs" prefix="localhost_log." suffix=".txt" > timestamp="true"/> > > <!-- Define properties for each web application. This is only needed > if you want to set non-default properties, or have web application > document roots in places other than the virtual host's appBase > directory. --> > > <!-- Tomcat Root Context --> > <!-- > <Context path="" docBase="ROOT" debug="0"/> > --> > > <!-- 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>username</name><value>sa</value></parameter> > <parameter><name>password</name><value></value></parameter> > <parameter><name>driverClassName</name> > <value>org.hsql.jdbcDriver</value></parameter> > <parameter><name>url</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> > <ResourceLink name="linkToGlobalResource" > global="simpleValue" > type="java.lang.Integer"/> > </Context> > > > <Context path="" docBase="/var/www/html" debug="9"/> > > </Host> > > </Engine> > > </Service> > > </Server> > > > ------------------------------------------------------------------------ > > ps=/ > #worker.list=ajp13 > > #worker.ajp13.port=8009 > #worker.ajp13.host=localhost > #worker.ajp13.type=ajp13 > > # workers.properties - > # > # This file provides jk derived plugins with the needed information to > # connect to the different tomcat workers. Note that the distributed > # version of this file requires modification before it is usable by a > # plugin. > # > #------ worket list ------------------------------------------ > worker.list=local_pt1 > #, local_pt2 > > > #------ local_pt worker defincation-------------------- > # Defining a worker named local_pt1 and of type ajp13 > # > worker.local_pt1.port=8009 > worker.local_pt1.host=localhost > worker.local_pt1.type=ajp13 > > # > # Specifies the load balance factor when used with a load balancing worker > # ----> lbfactor must be > 0 > # ----> Low lbfactor means less work done by the worker. > worker.local_pt1.lbfactor=1 > > > > ------------------------------------------------------------------------ > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>