examples/servlet path broken?
I've "upgraded" to Tomcat 4.1.12, and the servlet examples don't work any more. The servlet examples use a path like ".../examples/servlet/HelloWorldExample" to access individual servlets. The only way I could make HelloWorldExample work was to give it the full monty in examples/WEB-INF/web.xml by defining it as a servlet and providing a mapping, a la: HelloWorldExample HelloWorldExample HelloWorldExample /HelloWorldExample Is there a more generic solution that would re-enable the usage the examples expect? -- Daryl Lee Marietta, GA -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Can't find ${server}/conf/workers2.properties
I had a problem getting mod_jk2 to run that I could only get around by hardcoding a path in a source file. I'd like to undo that if I can get someone to point me the way. The error was on Tomcat (4.1.12) startup, and it reported that it was unable to find "${serverRoot}/conf/workers2.properties". My (rather distasteful, desperate) solution was to change jk/native2/common/jk_workerEnv.c where config.file was set and replace the "${serverRoot}" portion in with "/usr/local/apache2". I was eventually able to get the mod_jk2 connector working. I would clearly love to undo that bit of hardcoding. Can someone point me to the error of my ways? -- Daryl Lee Marietta, GA -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Almost there...Updated Apach-Tomcat with mod_jk
Denise, we may be fellow-strugglers wading through the same swamp. I am trying to configure mod_jk2, and am also getting a workers file not found (in my case it's workers2.properties). So far as I can tell, jk2.properties specifies the base directory for the Apache server in a 'serverRoot' property. When tomcat starts, it reports that it cannot find "${serverRoot}/conf/workers2.properties", when in fact it is there. I have another query into this same list asking about that problem. On Sat, Dec 14, 2002 at 10:01:23AM -0500, Denise Mangano wrote: > I also found this in my cataline.out log. > INFO: Loading registry information > Dec 13, 2002 4:29:37 PM org.apache.commons.modeler.Registry getRegistry > INFO: Creating new Registry instance > Dec 13, 2002 4:29:38 PM org.apache.commons.modeler.Registry getServer > INFO: Creating MBeanServer > Dec 13, 2002 4:29:39 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on port 8080 > mod_jk location: libexec/mod_jk.so > Make sure it is installed corectly or set the config location > Using > Can't find workers.properties at > /usr/local/jakarta-tomcat-4.1.17/conf/jk/workers.properties > Please install it in the default location or set the config location > Using > Starting service Tomcat-Standalone > Apache Tomcat/4.1.17 > Dec 13, 2002 4:29:44 PM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on port 8080 > Dec 13, 2002 4:29:44 PM org.apache.jk.common.ChannelSocket init > INFO: JK2: ajp13 listening on /0.0.0.0:8009 > Dec 13, 2002 4:29:44 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=2/46 > config=/usr/local/jakarta-tomcat-4.1.17/conf/jk2.properties > > It gives me an error that it can't find workers.properties, but it is in > fact there... > > Thanks, > Denise > > -Original Message- > From: Denise Mangano > To: '[EMAIL PROTECTED]' > Sent: 12/13/2002 10:36 PM > Subject: Almost there...Updated Apach-Tomcat with mod_jk > > Here is an update. I managed to get passed the configure fail I was > getting, and got through the build of mod_jk. I followed everything to > the T, and I am back to the almost the same boat that I was in > yesterday. > > Before mod_jk setup I could access http://localhost:8080 as well as > http://localhost. Both apache and Tomacat were working fine. Yesterday > > after mod_jk install Tomcat stopped working. This time, after second > try, I can still access both. However, even though I installed mod_jk I > > need to input the :8080. > > I restarted apache, and found the following error: > > [Fri Dec 13 21:37:08 2002] [error] Error while opening the workers, jk > will not work > [Fri Dec 13 21:37:12 2002] [error] (2)No such file or directory: Error > while opening the workers, jk will not work > > Which file is trying to access the workers.properties file that I > created? I searched the server.xml, the httpd.conf, and the mod_jk.conf > > files and could find nothing that called for it > > As you can see I cannot access the files without using the port :8080 > attached to the end of localhost - if I try to it is still looking in my > > Apache web directory... > > [Fri Dec 13 22:04:59 2002] [error] [client 216.164.30.185] File does not > > exist: /var/www/html/examples/jsp/num/numguess.jsp > > Any thoughts? I can post my files, if anyone is willing to take a look > at it... > > Thanks. > Denise > > > -- > 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]> > > -- Daryl Lee Marietta, GA -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Can't open workers2.properties
I am trying to get Apache 2.0.43 and Tomcat 4.1.12 connected with mod_jk2, and am stuck on an error I can't understand. The error is reported in catalina.out when tomcat starts, and is: [Sat Dec 14 00:58:10 2002] (error ) [jk_config_file.c (261)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties [Sat Dec 14 00:58:10 2002] ( info ) [jk_config.c (246)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers2.properties In jk2.properties, I have the following directive: # Dynamic Library serverRoot=/usr/local/apache2 The file /usr/local/apache2/conf/worker2.properties exists with the correct permissions (world rw), and appears to me to be properly formatted. It bothers me a little that the error report does not expand ${serverRoot}, which makes me question whether it's being expanded internally, but surely if that were the problem noone would be succeeding with jk2. As always, any help is appreciated. -- Daryl Lee Marietta, GA -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Apache connector-localhost only
I have ports 80 and 8080 both open. In particular, when I hit the host from inside the firewall, but from another host, the connector fails. Thus, http://localhost/... works, but http://tigger/... fails. On Fri, Dec 13, 2002 at 09:15:39AM -0500, Denise Mangano wrote: > Daryl, > > Just out of curiosity, does your web server get mapped through a firewall? > I had to open port 8080 on my firewall in order to pull up the Tomcat index > page using my domain name > > Hope that helps... > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -----Original Message- > From: Daryl Lee [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 7:44 AM > To: Tomcat User List > Subject: Apache connector-localhost only > > > I cannot get my Apache-Tomcat mod_jk connector to work for anything other > than localhost. Apache 2.0.43, Tomcat 4.1.12, Linux (Redhat 8.0). Trying > to run http://localhost/examples/HelloWorldExample works, but if "localhost" > is replaced with either an IP address or a valid hostname, the error_log > reports "file does not exist: /usr/local/apache2/htdocs/examples". > > I've inspected mod_jk.config, and it looks sane. I have ServerAlias > directives for the VirtualHost in it. I have also turned UseCanonicalName > on in Apache (in a desperate attempt to try anything that sounded remotely > like it might have an effect). > -- > Daryl Lee > Marietta, GA > > -- > 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]> > > -- Daryl Lee Marietta, GA -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Apache connector-localhost only
I cannot get my Apache-Tomcat mod_jk connector to work for anything other than localhost. Apache 2.0.43, Tomcat 4.1.12, Linux (Redhat 8.0). Trying to run http://localhost/examples/HelloWorldExample works, but if "localhost" is replaced with either an IP address or a valid hostname, the error_log reports "file does not exist: /usr/local/apache2/htdocs/examples". I've inspected mod_jk.config, and it looks sane. I have ServerAlias directives for the VirtualHost in it. I have also turned UseCanonicalName on in Apache (in a desperate attempt to try anything that sounded remotely like it might have an effect). -- Daryl Lee Marietta, GA -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>