RE: Apache as front-end for several tomcat
Are the Tomcat instance running on the same physical server and you are just using IP Aliases, or are the workers running on 3 sperate backend machines? You apache config looks OK, so I don't believe its an issue with Apache Virtual Host configuration. I believe all work in being forwarded to Demo1 only. I believe you can have multiple instances of tomcat listening on the same port by specifying an IP address in the connector. But I find it much easier just to congigure each instance to listen on a different port. If you check your other 2 workers log files, you will probably see an error similar to Bind address already in use. Modify each Tomcat instance to the SHUTDOWN and AJP listener are each on unique ports; For example, In each respective instance server.xml use; Demo1 Shutdown: 8001 Demo1 HTTP: 8081 Demo1 AJP Listener: 8101 Demo2 Shutdown: 8002 Demo2 HTTP: 8082 Demo2 AJP Listeer: 8102 Demo3 Shutdown: 8003 Demo3 HTTP: 8083 Demo3 AJP Listern: 8103 Restart each instance (check the catalina.out for errors) Modify your workers.properties file to relect the new AJP listen ports Restart Apache -Original Message- From: Dan Barron [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:48 PM To: Tomcat Users List; Tomcat Users List Subject: Re: Apache as front-end for several tomcat If you are running multiple instances of Tomcat, from what I understand and from my configuration (i run two Tomcat/mod_jk2 with Apache) you would then need each of them to listen on a different port. Right now the only instance that will receive requests via the worker is the instance that is using port 8009. At 01:33 PM 3/30/2005, Christophe Lemaire wrote: Not sure. I have seen several config of name based virtual hosts that listen on the same port. On 30-mars-05, at 23:02, Didier McGillis wrote: would it be the fact that your sending the requests through the same port number? From: Christophe Lemaire [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Apache as front-end for several tomcat Date: Wed, 30 Mar 2005 22:12:27 +0200 Hello, I would like to setup a Apache 2.0.53 as front-end for several Tomcat 5.0.19. I use JK1.2.8 as connector. I have defined one worker per tomcat server. I use three name based virtual hosts in the apache config. The problem is only the first virtual host works. In the mod_jk.log, I can see that every request sent to the apache are checked with the JkMount from the first virtual host only. Here are my config files : workers.properties --- worker.list=demo1,demo2,demo3,stat worker.demo1.type=ajp13 worker.demo1.host=192.168.0.1 worker.demo1.port=8009 worker.demo2.type=ajp13 worker.demo2.host=192.168.0.2 worker.demo2.port=8009 worker.demo3.type=ajp13 worker.demo3.host=192.168.0.3 worker.demo3.port=8009 worker.stat.type=ajp13 worker.stat.host=192.168.0.3 worker.stat.port=7201 - end of workers.properties --- In the httpd.conf file, I include the file mod_jk.conf (no other virtual hosts are defined in httpd.conf): mod_jk.conf --- # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T NameVirtualHost *:81 VirtualHost *:81 ServerName demo1.myweb.org JkMount /*/tracking/* stat JkMount /tracking/* stat JkMount /web/* demo1 JkMount /ald/* demo1 JkMount /htmleditor/* demo1 JkMount /* demo1 /VirtualHost VirtualHost *:81 ServerName demo2.myweb.org JkMount /*/tracking/* stat JkMount /* demo2 /VirtualHost VirtualHost *:81 ServerName demo3.myweb.org JkMount /*/tracking/* stat JkMount /* demo3 /VirtualHost - end of mod_jk.conf --- Extract from mod_jk.log : URL typed in the browser : http://demo3.myweb.org:81/ [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 6 maps [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/tracking/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/web/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/ald/*' [Wed Mar 30 22:15:46 2005] [12762:8192] [debug] map_uri_to_worker::jk_uri_worker_map.c (718):
RE: Why so much virtual memory?
On a related note, It would appear to me that java is not adhering to the -Xmx option; I have several instances that report using 3-4X RSS Memory what -Xmx is set to. For example, Instance1: CATALINA_OPTS=-sqerver -Xms64m -Xmx128m PS Ouput: USER%CPU%MEMVSZ RSS instanc10.7 8.9 509284 343636 Running on Redhat ES3 U4, Sun J2SDK 1.4.2_04 Anyone seen similar behaviour, tomcat or Java issue?, explanations? -Original Message- From: David Causse [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 11:45 AM To: Tomcat Users List Subject: Re: Why so much virtual memory? Mark Winslow wrote: I start Tomcat 5.5.7 and it immediately reports about 450 megabytes of virtual memory usage in the linux app top. Is this normal? Is it just allocating it or is it really using it? It takes about 1 to 2 seconds to start and there's no way an application can write 450 megs of disk memory in that time period, or at least I don't think it can. I'm asking because I'm wondering what my memory requirements are going to be for a collocated server I'm setting up. The ISP charges more for more memory. I'm looking at 512 megs, but can pay about 50% more and get 1024. If Tomcat could run more efficiently without having to put things in virtual memory, I may want to pay the extra money. Thanks. IMHO you don't have to worry about memory. You should not look at VIRT but only RES or %MEM (linux ps). Memory management with is very difficult to tune well, you'll need to test a lot of arguments. If you don't run into OutOfMemory exception you don't have to worry, unused memory is wasted memory. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 / Admin How ?
Just verified; Tomcat 5.5.6 Does resolve the Service Tree Issue On a side note, save yourself some trouble/work by altering the 5.5.6 installation path to; C:\Program Files\Apache Software Foundation\jakarta-tomcat-5.5.6 Then just extract jakarta-tomcat-5.5.6-admin.zip to C:\Program Files\Apache Software Foundation\ Restart Tomcat, and all should be well, including the Administration tools. Just login with the username/password supplied during initial TC 5.5.6 install. User admin in role admin, manager was created in in tomcat-users.xml during initial installation, so you shouldn't have to modify tomcat-users.xml any furhter. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 8:17 AM To: Tomcat Users List Subject: RE: Tomcat 5.5 / Admin How ? There was an issue with the left-hand tree in 5.5.4. I don't know whether 5.5.4's admin distribution was repackaged. If not, you should acquire 5.5.6-alpha. I see Yoav has also replied to a separate email with a similar statement. Allistair. -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: 14 December 2004 14:11 To: Tomcat Users List Subject: RE: Tomcat 5.5 / Admin How ? But does it work. It don't seem to in 5.5.4 (and that's supposed to be a stable version - not beta or alpha). See the other threads on the subject for more details of the problems. Steve. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 14 December 2004 13:55 To: Tomcat Users List Subject: RE: Tomcat 5.5 / Admin How ? Hi, Can any one guide me or point me to the documents where i will get the steps to assimilate the admin with tomcat ?? Ahh, the Borg. Anyways, simple: - Download jakarta-tomcat-v5.5.6-zip, extract to C:\. - Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\. - Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in the Manager app how-to. - That's it. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log File Rotation in Tomcat 4.1?
How are other admins handling log file rotation and clean up with Tomcat 4.1 on Linux in a Multiple Tomcat instance hosting environment? Is there any way to have Logger::FileLogger not insert a timestamp in the filename? (Short of re-writing the class?) My initial plan was to use something like the logrotate utility to stop Tomcat, rotate the logs out (catalina.out becomes catalina.out.1, access.log becomes access.log.1, etc.), then start Tomcat up again. But I would have to create a separate logrotation config file for each Tomcat instance (I was hoping for a more elegant solution). Thanks! James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log on linux
I don't believe this is Tomcat at all, and is more likely the result of a log rotation application. What Linux Distribution are you using? RedHat uses an application called logrotate. Sounds to me like you are either; Writing your logs to some place like /var/log You have a logrotate entry defined to rotate the files in your Tomcat Logging Directory (In Redhat, take a look at /etc/logrotate.d, and man logrotate) -Original Message- From: Andrea Prandini [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 7:52 AM To: 'Tomcat Users List' Subject: Log on linux Hi, I've got some production enviorment installed on linux with Tomcat 5 and Tomcat 4.1. I've configured tomcat for logging as configured in the standard server.xml (using FileLogger) and everything works fine. My problem is that i find too many log files with the extension .gz. Seems that there's a scheduled job that compress the log files stored in logs directory. The first time creates localhost_log.2004-11-28.txt.1.gz, after few days localhost_log.2004-11-28.txt.1.gz.1.gz and on. Someone can help me and told if this is a configurations of tomcat. Thanks in advance Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Administration Application
Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at Tomcat 5.5 is on Windows. Anyway, was looking at the files for the tar.gz release of the admin tools. Verify that you do indeed have a conf\Catalina\localhost\admin.xml (double check file permissions as well) This is what re-maps requests for /admin to \server\webapps\admin. To me, it does not appear to have a proper context path specified? Is the context mapping assumed? Based on the name of the file? If required? Modify conf\Catalina\localhost\admin.xml with a path, like so; Context docBase=${catalina.home}/server/webapps/admin path=/admin privileged=true antiResourceLocking=false antiJARLocking=false /Context This should override the generic page in \webapps\ROOT\admin\ -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 2:52 PM To: Tomcat Users List Subject: RE: Tomcat Administration Application James, I'm on RedHat Linux V9. Everything (tomcat and the admin package) is installed in the jakarta-tomcat-5.5.4 directory. Even if I undeploy the admin application and then deploy it specifying the $CATALINA_HOME/server/webapps/admin directory I still get the same same message telling me to download and install the separate admin application. There must be something (can anyone tell me what?) pointing /admin to the web page that displays this message. Steve. -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: 10 December 2004 20:13 To: Tomcat Users List; Tomcat Users List Subject: RE: Tomcat Administration Application Did you simply extract the .zip file into your Tomcat 5.5.4 install directory? The .zip has a file path of jakarta-tomcat-5.5.4\, but the default installation directory is Tomcat 5.5\ So if you simply extracted the zip into your install directory, look for a directory named jakarta-tomcat-5.5.4 Drag Drop those directory contents to the true tomcat installation directory. Perhaps the .zip could be re-packaged and remove the path jakarta-tomcat-5.5.4 from the archive? This would allow users to simply unzip admin.zip into their installation directory. James -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 1:47 PM To: Tomcat Users List Subject: RE: Tomcat Administration Application Wade, Forgive me but I'm a novice at this stuff. How can I modify the link ? The context name is 'admin' but when I key in http://localhost:8080/admin I get the same message telling me to download and install the separate admin application. Steve. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: 10 December 2004 17:27 To: Tomcat Users List Subject: Re: Tomcat Administration Application Kelly, Steve wrote: I've just installed Tomcat 5.5.4. I also downloaded the separate Tomcat Administration application. But when I click the Tomcat Administration button I still get the message saying the web application is no longer installed by default. From the Tomcat manager it says that application 'admin' is running. What else do I need to do to get into it ? TIA, Steve. Well, I assume that first page you are talking about is static, so it has no idea about the management app. You could probably find and modify the link, and the other thing is from your manager application find the context for the admin app and type in http://yourservername:yourport/contextname Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Admin Tool Server::Service Drop Down not Populating (was RE: Tomcat Administration Application)
Unfortunately, my installation exhibits the same behavior. Typically, the Service (Catalina) menu option shows a drop down of configured Hosts, Valves, and Connectors. Clicking the Drop Down (Magnifying glass?) returns nothing under the branch. Going to the Actions Drop Down, and choosing 'Delete Existing..' does return a list of the configured Services. Anyone else on List know cause/solution? My Environments: Tomcat 5.5.4 Windows 2000 Pro Windows 2003 Server Standard Sun J2SE 5.0 -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 12:27 PM To: Tomcat Users List Subject: RE: Tomcat Administration Application James, Thanks for that. That's done the trick. Dunno why there was not a valid admin.xml file as there is on the Windows install. However, I still have a problem. I'd expect to see a tree a bit like this when I get into the admin application: Tomcat Server Service (Catalina) Host (localhost) Context (/) Context (/admin) Context (/manager) Etc But I just see as far down as Service(Catalina). Any clues. TIA Steve. -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 15:54 To: Tomcat Users List Subject: RE: Tomcat Administration Application Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at Tomcat 5.5 is on Windows. Anyway, was looking at the files for the tar.gz release of the admin tools. Verify that you do indeed have a conf\Catalina\localhost\admin.xml (double check file permissions as well) This is what re-maps requests for /admin to \server\webapps\admin. To me, it does not appear to have a proper context path specified? Is the context mapping assumed? Based on the name of the file? If required? Modify conf\Catalina\localhost\admin.xml with a path, like so; Context docBase=${catalina.home}/server/webapps/admin path=/admin privileged=true antiResourceLocking=false antiJARLocking=false /Context This should override the generic page in \webapps\ROOT\admin\ -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 2:52 PM To: Tomcat Users List Subject: RE: Tomcat Administration Application James, I'm on RedHat Linux V9. Everything (tomcat and the admin package) is installed in the jakarta-tomcat-5.5.4 directory. Even if I undeploy the admin application and then deploy it specifying the $CATALINA_HOME/server/webapps/admin directory I still get the same same message telling me to download and install the separate admin application. There must be something (can anyone tell me what?) pointing /admin to the web page that displays this message. Steve. -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: 10 December 2004 20:13 To: Tomcat Users List; Tomcat Users List Subject: RE: Tomcat Administration Application Did you simply extract the .zip file into your Tomcat 5.5.4 install directory? The .zip has a file path of jakarta-tomcat-5.5.4\, but the default installation directory is Tomcat 5.5\ So if you simply extracted the zip into your install directory, look for a directory named jakarta-tomcat-5.5.4 Drag Drop those directory contents to the true tomcat installation directory. Perhaps the .zip could be re-packaged and remove the path jakarta-tomcat-5.5.4 from the archive? This would allow users to simply unzip admin.zip into their installation directory. James -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 1:47 PM To: Tomcat Users List Subject: RE: Tomcat Administration Application Wade, Forgive me but I'm a novice at this stuff. How can I modify the link ? The context name is 'admin' but when I key in http://localhost:8080/admin I get the same message telling me to download and install the separate admin application. Steve. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: 10 December 2004 17:27 To: Tomcat Users List Subject: Re: Tomcat Administration Application Kelly, Steve wrote: I've just installed Tomcat 5.5.4. I also downloaded the separate Tomcat Administration application. But when I click the Tomcat Administration button I still get the message saying the web application is no longer installed by default. From the Tomcat manager it says that application 'admin' is running. What else do I need to do to get into it ? TIA, Steve. Well, I assume that first page you are talking about is static, so it has no idea about the management app. You could probably find and modify the link, and the other thing is from your manager application find the context for the admin app and type in http://yourservername:yourport/contextname Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: Tomcat Administration Application
Did you simply extract the .zip file into your Tomcat 5.5.4 install directory? The .zip has a file path of jakarta-tomcat-5.5.4\, but the default installation directory is Tomcat 5.5\ So if you simply extracted the zip into your install directory, look for a directory named jakarta-tomcat-5.5.4 Drag Drop those directory contents to the true tomcat installation directory. Perhaps the .zip could be re-packaged and remove the path jakarta-tomcat-5.5.4 from the archive? This would allow users to simply unzip admin.zip into their installation directory. James -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 1:47 PM To: Tomcat Users List Subject: RE: Tomcat Administration Application Wade, Forgive me but I'm a novice at this stuff. How can I modify the link ? The context name is 'admin' but when I key in http://localhost:8080/admin I get the same message telling me to download and install the separate admin application. Steve. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: 10 December 2004 17:27 To: Tomcat Users List Subject: Re: Tomcat Administration Application Kelly, Steve wrote: I've just installed Tomcat 5.5.4. I also downloaded the separate Tomcat Administration application. But when I click the Tomcat Administration button I still get the message saying the web application is no longer installed by default. From the Tomcat manager it says that application 'admin' is running. What else do I need to do to get into it ? TIA, Steve. Well, I assume that first page you are talking about is static, so it has no idea about the management app. You could probably find and modify the link, and the other thing is from your manager application find the context for the admin app and type in http://yourservername:yourport/contextname Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
Just a simple questions, then an answer. If you are front-ending Tomcat with a web server, why are you passing things like .html, .gif, .jpg, etc. to Tomcat to process? The web server itself is a bit more efficient in handling this content. Secondly, what web server front end are you using? On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my workers, I set URI matching in my Apache Virtual Hosts Config; Add something similar to the following for each vhost (copy pasts is a wonderful thing). VirtualHost myhost.com:80 ... Location /*.jsp JkUriSet worker ajp13:localhost:8201 /Location Location /*.do JkUriSet worker ajp13:localhost:8201 /Location Location /servlet/* JkUriSet worker ajp13:localhost:8201 /Location Location /servlets/* JkUriSet worker ajp13:localhost:8201 /Location Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:08 AM To: Tomcat Users List Subject: Help with mod_jk2 Hello all, I have gotten mod_jk2 working just fine for multiple instances of tomcat and jvm. However, could one of you jk2 experts help me streamline this? worker2.properties is a pain for each instance. Is there a way to set it so that all processes are processed by tomcat instead of having the list every single uri mapping? Heres example of a set of entries in my workers2.properties for one instance: [channel.socket:groupname] info=ajp13 forwarding to privatejvm.com debug=0 group=groupname port=8059 host=localhost [ajp13:groupname] channel:channel.socket:groupname group=groupname [uri:domain1.com:80/*.html] group=ajp13:groupname [uri:domain1.com:80/*.jsp] group=ajp13:groupname [uri:domain1.com:80/*.xml] group=ajp13:groupname [uri:domain1.com:80/*.do] group=ajp13:groupname [uri:domain1.com:80/*.gif] group=ajp13:groupname [uri:domain1.com:80/*.jpg] group=ajp13:groupname [uri:domain1.com:80/*.png] group=ajp13:groupname [uri:domain1.com:80/servlet/*] group=ajp13:groupname [uri:domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname [uri:www.domain1.com:80/*.html] group=ajp13:groupname [uri:www.domain1.com:80/*.jsp] group=ajp13:groupname [uri:www.domain1.com:80/*.xml] group=ajp13:groupname [uri:www.domain1.com:80/*.do] group=ajp13:groupname [uri:www.domain1.com:80/*.gif] group=ajp13:groupname [uri:www.domain1.com:80/*.jpg] group=ajp13:groupname [uri:www.domain1.com:80/*.png] group=ajp13:groupname [uri:www.domain1.com:80/servlet/*] group=ajp13:groupname [uri:www.domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:www.domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:www.domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname then I have to do the above for domain2.com with different group name and port# Am I doing this right? It seems like a lot of entries compared to the old mod_jk. Thanks in advance! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: administration webapp
In server.xml, I'm not exactly sure what MD2 is. I know what MD5 is, and it's clear that your passwords in tomcat-users.xml are clear text. Try removing digest= from Realm and restart. -Original Message- From: Michael Simpson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 7:08 AM To: '[EMAIL PROTECTED]' Subject: administration webapp Hello list. Just joined the list and I'm very new to Tomcat. I have a problem accessing the administration webapp and manager webapp links from the default Tomcat home page. The following is listed on the home page: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. This is the code from tomcat_users.xml : ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ user username=express password=thames roles=manager,admin/ /tomcat-users And this is a snippet from server.xml : Realm className=org.apache.catalina.realm.MemoryRealm debug=99 digest=MD2 / I've looked at the manuals, etc. but it just does not seem to work - access always fails. Can anyone see the obvious mistake here. Thanks in advance. -- Michael Simpson Systems Development Express Newspapers mailto:[EMAIL PROTECTED] 020-7922-7225 (w) 020-7922-7799 (f) -- The NMA: Opening Up Newspapers http://www.nmauk.co.uk Visit Express Newspapers and OK Magazine online picture archive at http://www.expresspictures.com/ ###2004### Any views or opinions are solely those of the author and do not necessarily represent those of Express Newspapers The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.If you are not the intended recipient of this message please do not read ,copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. E-mail communications may be monitored. ##EXN2000## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with mod_jk2
I set the Apache Vhost DocumentRoot to the same directory where the JSP pages reside; i.e. DocumentRoot /home/tomcatapp/webapps/ROOT -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 1:22 PM To: Tomcat Users List Subject: RE: Help with mod_jk2 Ok I got it working by adding the opening and closing IfModule mod_jk2.c I didnt think those worked with apache2. Still have problem, How do you handle the images? Images dont show up. Do I need to add jkuriset for images? Thanks you guys have been most helpful! John Hello, Using jkUriSet I get this now: [Thu Oct 14 10:57:32 2004] [notice] uriEnv.setAttribute() the worker directive is deprecated. Use 'group' instead. (I removed all the uri mapping for that instance in workers2) And tomcat isnt getting routed to port 80. Any ideas? Thanks! Just a simple questions, then an answer. If you are front-ending Tomcat with a web server, why are you passing things like .html, .gif, .jpg, etc. to Tomcat to process? The web server itself is a bit more efficient in handling this content. Secondly, what web server front end are you using? On Apache2/Tomcat4.1/mod_jk2, workers2.properties only defines my workers, I set URI matching in my Apache Virtual Hosts Config; Add something similar to the following for each vhost (copy pasts is a wonderful thing). VirtualHost myhost.com:80 ... Location /*.jsp JkUriSet worker ajp13:localhost:8201 /Location Location /*.do JkUriSet worker ajp13:localhost:8201 /Location Location /servlet/* JkUriSet worker ajp13:localhost:8201 /Location Location /servlets/* JkUriSet worker ajp13:localhost:8201 /Location Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:08 AM To: Tomcat Users List Subject: Help with mod_jk2 Hello all, I have gotten mod_jk2 working just fine for multiple instances of tomcat and jvm. However, could one of you jk2 experts help me streamline this? worker2.properties is a pain for each instance. Is there a way to set it so that all processes are processed by tomcat instead of having the list every single uri mapping? Heres example of a set of entries in my workers2.properties for one instance: [channel.socket:groupname] info=ajp13 forwarding to privatejvm.com debug=0 group=groupname port=8059 host=localhost [ajp13:groupname] channel:channel.socket:groupname group=groupname [uri:domain1.com:80/*.html] group=ajp13:groupname [uri:domain1.com:80/*.jsp] group=ajp13:groupname [uri:domain1.com:80/*.xml] group=ajp13:groupname [uri:domain1.com:80/*.do] group=ajp13:groupname [uri:domain1.com:80/*.gif] group=ajp13:groupname [uri:domain1.com:80/*.jpg] group=ajp13:groupname [uri:domain1.com:80/*.png] group=ajp13:groupname [uri:domain1.com:80/servlet/*] group=ajp13:groupname [uri:domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname [uri:www.domain1.com:80/*.html] group=ajp13:groupname [uri:www.domain1.com:80/*.jsp] group=ajp13:groupname [uri:www.domain1.com:80/*.xml] group=ajp13:groupname [uri:www.domain1.com:80/*.do] group=ajp13:groupname [uri:www.domain1.com:80/*.gif] group=ajp13:groupname [uri:www.domain1.com:80/*.jpg] group=ajp13:groupname [uri:www.domain1.com:80/*.png] group=ajp13:groupname [uri:www.domain1.com:80/servlet/*] group=ajp13:groupname [uri:www.domain1.com:80/manager/*] context=/manager group=ajp13:groupname [uri:www.domain1.com:80/admin/*] context=/admin group=ajp13:groupname [uri:www.domain1.com:80/servlets-examples/*] context=/servlets-examples group=ajp13:groupname then I have to do the above for domain2.com with different group name and port# Am I doing this right? It seems like a lot of entries compared to the old mod_jk. Thanks in advance! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: Tomcat 5 pause (free gmail account for fix :-)
Are you defining any Memory Min/Max (-Xms/-Xmx) constraints on the JVM? Are you collecting any verbose GC information (-verbose:gc)? How much physical memory available on the machine? At times of 100% CPU Utilization, is it java that is consumnig the majority of it? -Original Message- From: Sam Gallant [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:17 PM To: [EMAIL PROTECTED] Subject: Tomcat 5 pause (free gmail account for fix :-) Everyone, Thanks in advance for any help. Also I have a gmail invite for the person who has a fix for this if they are interested. My company has been using Tomcat for several years, but a problem has crept up that we have not been able to solve. Basically, tomcat will stop processing requests for 2-60 second period several times a day. Here is a list of software that we have tried. (Note we have tried changing each key componant to see if we isolate the componant that is the problem, but no luck yet) OS: RedHat 9 AS3 Threading model: linux threads nptl JVM: sun 1.4.2_4 latest ibm Http connector: ajp w/apache 2 and coyote connector JBDC connector 1.0 1. Doesn't always happen durning old gen garbage collection, but does sometimes 2. Before switching to incremental gc we received out of memory errors which resulted in Tomcat completly hanging 3. After switching to incremental gc the effect changed to 2-60 second periods of time that Tomcat won't process request, but it does resume on its' own. 4. Cpu usage for most of the day is less than 20% utiliztion, but when the problem occurs the cpu spikes to 100% utiliztion briefly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 Ready/Recommended For Production?
On a somewhat related note; Anyone have best practices/recommendations on handling traditional .htaccess control on content? I don't particularly care to have the 2 separate layers of security, purely from an ease of administration perspective. .htaccess controls are totally bypassed when requesting content handled by Tomcat. For example, simply clicking cancel during the authentication dialog box will still present the default index.jsp page, or ignored all together if requesting the .jsp directly. In addition to creating the .htaccess, you then must also create your Tomcat Security Realm. Is there anyway to have Apache Tomcat use the same user/pass file? Can a Realm be created that is simply; username:MD5 encrypted password (such as the format of .htaccess) I'd rather not have to go to the extent of creating user/password pairs in a database, then setting up something like mod_auth_mysql and JDBC for centralized authentication (is this even possible?). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 2:27 PM To: Tomcat Users List Subject: RE: mod_jk2 Ready/Recommended For Production? I have been using mod_jk2 for a couple of years now, and I have not had to compile it, either. I use it on Linux production systems... (currently I am using Redhat Enterprise Linux and the Fedora binary). The biggest problem has always been extremely poor documentation. However, the Fedora download has a directory structure that quickly shows you where to place the needed files. I was setup in less than 30 seconds. I am a big fan of a 3-tier architecture. I think it's important to have web requests intercepted on one layer, and only handed off to the processing layer (tomcat) when need be. Apache is likely much better than tomcat in serving static content, and even though tomcat has lots of security, I feel much more comfortable with Apache being at the front door, because of its extremely wide use and history. -Raiden Johnson On Thu, 14 Oct 2004, Angus Mezick wrote: I have been using mod_jk2 for a long time now. I have no idea why so many people dislike it (well, after they get it compiled that is). I might just be blessed in that I run on win2k servers and can just get the binary for mod_jk2. I have never had to deal with the pain of compiling this thing. It is working great for me on a rather busy little cluster of servers. --Angus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 7:27 PM To: Tomcat Users List Subject: Re: mod_jk2 Ready/Recommended For Production? Boy am I confused now. If mod_jk2 is dead, so what is everyone using? Still using just the first mod_jk? I had just gotten everythign working with mod_jk2 - more or less- but configurationwise mod_jk2 is a pain since the syntax was completely changed and requires you to map every nook and cranny. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache MaxClients vs. what in JK2 configuration?
I believe the equivalent is maxProcessors -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:41 AM To: Tomcat Users List Subject: Re: Apache MaxClients vs. what in JK2 configuration? Is the answer to this, that the associated connector on Tomcat's end just allows as many connections as needed? And you don't get to (nor want to) define a max limit? Thank you, -Raiden Johnson On Tue, 12 Oct 2004 [EMAIL PROTECTED] wrote: Hello, I currently have one Apache instance talking to one Tomcat instance. However, I really want to understand the relationship between client connections, because I plan to make this two Apache servers talking to one or two Tomcat servers. In Apache you can configure the maximum number of connections via MaxClients? What is the counterpart for JK2? If I have two Apache instances (each with 200 MaxClients) talking to one Tomcat server, I need to configure Tomcat for 400 maximum connections, right? Where do I do this? (I can see it for the Coyote connector on 8080, but not for the 8009 connector). Thank you, -Raiden Johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
allowTrace noSuchMethodException in Multiple Instace Admin TC 4.1.30
In a Multiple Instance Tomcat 4.1.30 deployment, receiving the following error when attempting to view the 'Connector' through TC admin; Page reports; HTTP Status 500 - Error retrieving attribute allowTrace type Status report message Error retrieving attribute allowTrace description The server encountered an internal error (Error retrieving attribute allowTrace) that prevented it from fulfilling this request. Log file shows; 2004-10-11 14:04:43 action: Error retrieving attribute allowTrace javax.management.ReflectionException: Cannot find getter method getAllowTracenested exception is java.lang.NoSuchMethodException: o$ java.lang.NoSuchMethodException: org.apache.coyote.tomcat4.CoyoteConnector.getAllowTrace() at java.lang.Class.getMethod(Class.java:986) . Everything else works fine (can view/modify/save changes) Context path of ~/webapps/admin.xml statically maps Context path for admin Context. Using Sun J2SDK 1.4.2_05 Anyone run into this? Know a solution? Thanks! __ James jcmontz AT jamestower DOT com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simple server.xml config question... AJP13 Connector vs. CoyoteConnector
Can the CoyoteConnector handle regular HTTP and AJP13 requests? Our current deployment uses stand alone Tomcat HTTP Server to serve servlets. We are migrating towards using mod_jk2 with apache front end. Unfortunately, I need to offer both the mod_jk2 connect, and the stand alone HTTP server (for backwards compatibility and ease of troubleshooting). -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 8:14 AM To: Tomcat Users List Subject: RE: Simple server.xml config question... AJP13 Connector vs. CoyoteConnector Hi, No, these two connectors are not mutually exclusive. Whether they're redundant depends on your requirements. Yoav Shapira Millennium Research Informatics -Original Message- From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 6:43 PM To: [EMAIL PROTECTED] Subject: Simple server.xml config question... AJP13 Connector vs. CoyoteConnector Are these 2 Connector's mutually exclusive and/or redundant in the same server.xml? ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8101 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8201 minProcessors=5 maxProcessors=256 enableLookups=true connectionTimeout=2 acceptCount=10 debug=0/ ... I have also seen variations of these documented in books online; Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8201 address=127.0.0.1 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ And Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8201 address=127.0.0.1 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ What should the proper configuration of connector's be for Apache 2.0 Front Ending Tomcat 4.1 using mod_jk2? Could someone explain what the differences between the different classes are (org.apache.coyote.tomcat4.CoyoteConnector, org.apache.ajp.tomcat4.Ajp13Connector)? My original understanding was that Coyote is basically a stand alone HTTP Server for Tomcat, and Ajp13Connector handled the inter process communication for Apache to Tomcat. Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple server.xml config question... AJP13 Connector vs. CoyoteConnector
Are these 2 Connector's mutually exclusive and/or redundant in the same server.xml? ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8101 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8201 minProcessors=5 maxProcessors=256 enableLookups=true connectionTimeout=2 acceptCount=10 debug=0/ ... I have also seen variations of these documented in books online; Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8201 address=127.0.0.1 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ And Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8201 address=127.0.0.1 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ What should the proper configuration of connector's be for Apache 2.0 Front Ending Tomcat 4.1 using mod_jk2? Could someone explain what the differences between the different classes are (org.apache.coyote.tomcat4.CoyoteConnector, org.apache.ajp.tomcat4.Ajp13Connector)? My original understanding was that Coyote is basically a stand alone HTTP Server for Tomcat, and Ajp13Connector handled the inter process communication for Apache to Tomcat. Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Hosting with Tomcat 4.1, Apache 2.0, and mod_jk2
Is there any way to specify context mappings in the httpd.conf file? Something similar to JkUriSet? I have successfully mapped *.jsp to my mod_jk2 worker, but I'm having an issues mapping virtual hosts with the correct Tomcat context? Using uri in the workers2.properties will prove cumbersome as I have many virtual hosts, with many more ServerAliases. Recommendations on how to best handle a single Apache 2.0./Tomcat 4.1 Server instance doing a large amount of virtual hosting for several sites, and hostnames? __ James C. Montz RHCE Hosting Services Engineer James Tower http://www.jamestower.com http://www.jamestower.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Self Cert Valid for only 3 months?
I have generated a Self Signed Cert using the command; Keytool -genkey -alias tomcat -keyalg RSA -keystore /var/tomcat4/.keystore Under Tomcat4 4.1.18 Successfully generated the cert, but when I view the cert in a browser, it is only valid for 3 months (2/19/2004 - 5/19/2004) Anyone know why this is only 3 months, and how can I increase this to say 24 months? __ James C. Montz RHCE Hosting Services Engineer James Tower http://www.jamestower.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4 - Not use date in Logger Element File Name?
Is there anyway to get Tomcat to not put a date stamp on logs files created from a Logger element? I would like localhost.log NOT localhost_log.2003-03-11.txt It is becoming difficult to manage, and renders apps such as logrotate useless. Note: Timestamp=true defines whether messages in the logfile get a timestamp, not the file name itself. Thank you in advance! James C. MontzRHCE Hosting Services Engineer James Tower Phone: (507)-344-5435 E-Mail: mailto:[EMAIL PROTECTED] http://www.jamestower.com Hosting Services: [EMAIL PROTECTED] -Original Message- From: Mariola Nowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:12 AM To: [EMAIL PROTECTED] Subject: run tomcat 4.0.3 as service Hello, I would create an automatic startup/shutdown service on window 2000 server for tomcat 4.0.3 standalone. Some sources refer to a JSPService (jsplauncher), but I can't download it from http://members.nbci.com/yy_sun/jsplauncher/index.html. It would be very friendly, if someone could help me. Thanks Mariola Nowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]