RE: RE : 2 Tomcat instances on the same server ?
This should ease your pain: Change JAVA Home base on your JRE ::Starting Tomcat as an NT Service echo off set PATH=%PATH%;%CATALINA_HOME% set SERVICENAME=mysecondtomcat set CATALINA_BASE=C:\Program Files\mydirectory set JAVACLASSPATH=%CLASSPATH% set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar set JAVACLASSPATH=%JAVACLASSPATH%;%CATALINA_HOME%\common\lib\servlet.jar set JAVACLASSPATH=%JAVACLASSPATH%;%JAVA_HOME%\lib\rt.jar %CATALINA_HOME%\bin\tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%CATALINA_HOME% -Dcatalina.base=%CATALINA_BASE% -Xrs -Xmx200m -Xms100m -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_BASE%\logs\stdout.log -err %CATALINA_BASE%\logs\stderr.log -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:01 AM To: Tomcat Users List Subject: RE : 2 Tomcat instances on the same server ? Thanks Matt and Ralph, Is there a documentation somewhere as to how to setup 2 (or more) Tomcat instances ? I've seen there were Workers on Tomcat 3.x, but cannot find more documentation for Tomcat 4.x (the Running.txt file doesn't explain much, I've created that CATALINA_BASE environment variable but cannot see any difference). Also my 1st tomcat instance is already running as an NT service, and I'd like to keep it that way. Another question : would these Tomcat instances be completely independent one from the other(s) ? I mean, could I completely restart one instance without affecting the others ? Thanks again, Alain -Message d'origine- De : Ralph Einfeldt [mailto:[EMAIL PROTECTED] Envoyé : jeudi, 13. mai 2004 14:55 À : Tomcat Users List Objet : RE: 2 Tomcat instances on the same server ? I would go for 2. As I'm not using IIS, I'm not shure if there are specific hurdles in this environment. Tomcat stand alone and tomcat behind apache are quite easy to setup with multiple instances. If all tomcate have the same versions, you just have to install tomcat once and setup two instances. -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: 2 Tomcat instances on the same server ? 2- install a 2nd Tomcat instance on the server and have that 2nd web apps running on that 2nd instance, 3- have a 2nd server installed with its own configuration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Eri Bancaire SA ** - 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 reboot runtime
Wouldn't it be possible to restart tomcat by writing a server-side program to trigger a shell-script?? Of course that may disrupt the operation of the website itself - I'd have to consult the docs to be clearer on that. If Yoav says it can't be done then I'm sure we'd be wasting our time by trying! ;-) However I'm curious, just thinking off the top of my head! :-) Adam On Thu, 2004-05-13 at 15:56, Shapira, Yoav wrote: Hi, No to both. Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: Tomcat reboot runtime Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JProfiler vs. JProbe
My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Which is better? JProfiler vs. JProbe
tom ly [EMAIL PROTECTED] wrote:My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Re: JProfiler vs. JProbe
my biased perspective, Borland OptimizeIt is better than JProbe. the last time I tried to use JProbe to profile Tomcat 4 it was ungodly slow. it's probably improved since then. peter tom ly [EMAIL PROTECTED] wrote: My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
RE: JProfiler vs. JProbe
Hi, They're both decent. I like OptimizeIt better than both of them, though. It's a personal preference as the feature lists are nearly identical. Yoav Shapira Millennium Research Informatics -Original Message- From: tom ly [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:19 AM To: [EMAIL PROTECTED] Subject: JProfiler vs. JProbe My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' 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]
RE: Tomcat reboot runtime
Hi, I, on the other hand, would be interested to see what you come up with, so don't stop your train of thought on my account. Yoav Shapira Millennium Research Informatics -Original Message- From: Adam Buglass [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:13 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime Wouldn't it be possible to restart tomcat by writing a server-side program to trigger a shell-script?? Of course that may disrupt the operation of the website itself - I'd have to consult the docs to be clearer on that. If Yoav says it can't be done then I'm sure we'd be wasting our time by trying! ;-) However I'm curious, just thinking off the top of my head! :-) Adam On Thu, 2004-05-13 at 15:56, Shapira, Yoav wrote: Hi, No to both. Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: Tomcat reboot runtime Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - 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]
greaceful shutdown of mod_jk2 connectors
has anyone managed to get the greaceful shutdown feature working with mod_jk2 ? if so... what is the secret ? I am incrementing the ver attribute when I alter the graceful setting for a given channel.socket and the jk2status page registeres to noted update... but it still directs new connections to the socket I am attempting to shutdown. if I am missing something... or if I need an updated version of the mod_jk2 connector... please let me know. I am running: -apache2 version 2.0.48 -jakarta tomcat connectors version 2.0.4 source build here is my current workers2.properties file: --- [logger.file:0] level=DEBUG file=/usr/local/apache/logs/jk2.log [workerEnv:] info=Global Server Options debug=0 logger=logger.file:0 ## ## Load Balanced workers ## [lb:lb] debug=1 logger=logger.file:0 #balanced_workers=ajp13:10.10.1.52:12009,ajp13:10.10.1.91:11009 [channel.socket:10.10.1.91:11009] ver=2 debug=1 port=11009 host=10.10.1.91 tomcatId=tomcat1 lb_factor=0 group=lb graceful=1 disabled=0 [channel.socket:10.10.1.52:12009] ver=1 debug=1 port=12009 host=10.10.1.52 tomcatId=tomcat2 lb_factor=1 group=lb graceful=0 disabled=0 [ajp13:10.10.1.91:11009] channel=channel.socket:10.10.1.91:11009 [ajp13:10.10.1.52:12009] channel=channel.socket:10.10.1.52:12009 ### ## Box Specific ApManager workers ### [channel.socket:10.10.1.91:11019] port=11019 host=10.10.1.91 type=ajp13 [channel.socket:10.10.1.52:12019] port=12019 host=10.10.1.52 type=ajp13 [ajp13:10.10.1.91:11019] channel=channel.socket:10.10.1.91:11019 [ajp13:10.10.1.52:12019] channel=channel.socket:10.10.1.52:12019 ## JK2 Status [status:status] [uri:/jk2status/*] worker=status:status
Re: JProfiler vs. JProbe for AXIS webservices?
Sorry, I should of been more specific. Our application is huge AXIS webservices (no typical servlets here) running remotely on a non GUI (all command line) Linux box and we are telneting into the box from a windows pc. Can OptimizeIt be running from a non GUI Linux box, but have statistics shown from a windows box? Peter Lin [EMAIL PROTECTED] wrote: my biased perspective, Borland OptimizeIt is better than JProbe. the last time I tried to use JProbe to profile Tomcat 4 it was ungodly slow. it's probably improved since then. peter tom ly wrote: My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
JK2 still broken even in new version 2.0.4 with upload Stream ended unexpectedly error
Well, since using 2.0.4 this error has been unheard of until today. A user has been trying to upload a document and tried 4 times and constantly got the Stream ended unexpectedly error from JK2 connector. The document is Word and 140K. I have tested with other users trying to upload this item and there has not been a problem, it seems restricted to this particular user!? Does this ring any bells for anyone? Cheers, Allistair 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]
Re: JProfiler vs. JProbe for AXIS webservices?
I honestly couldn't tell you. You'll have to look at the specs of OptimizeIt. I normally test and profile everything on my laptop, which has 1gb of ram. I wouldn't run any profiler on anything less than 1gb. peter tom ly [EMAIL PROTECTED] wrote: Sorry, I should of been more specific. Our application is huge AXIS webservices (no typical servlets here) running remotely on a non GUI (all command line) Linux box and we are telneting into the box from a windows pc. Can OptimizeIt be running from a non GUI Linux box, but have statistics shown from a windows box? Peter Lin wrote: my biased perspective, Borland OptimizeIt is better than JProbe. the last time I tried to use JProbe to profile Tomcat 4 it was ungodly slow. it's probably improved since then. peter tom ly wrote: My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Tomcat 5.0.24: cannot create Host with Administration Tool
Hi, I'm running Tomcat 5.0.24 on RH Enterprise Linux 3. I tried to Create New Host using the Tomcat Web Server Administration Tool, but I got this error: --- HTTP Status 500 - Error invoking operation createStandardHost type Status report message Error invoking operation createStandardHost description The server encountered an internal error (Error invoking operation createStandardHost) that prevented it from fulfilling this request. Apache Tomcat/5.0.24 --- Any idea? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant deploy and context.xml
I'm trying to use the ant autodeploy feature with a context.xml fragment in the MET-INF directory. Mailing lists and all the documentation I've read show this to be a no-brainer. I'm sure I'm being ignorant of something incredibly obvious, but I just can't see it. I'm using the basic build.xml file from the Tomcat site. I'm using Tomcat version 5.0.16 In the source directory I have Build Dist Docs Src Web Under web I have META-INF Templates WEB-INF In META-INF I have a context.xml fragment (contents included below). When I do a build, I see that the META-INF directory and the context.xml file gets copied the build directory. But when I do an ant deploy, it does create an xml file in the Catalina conf directory (name of the file when copied is the name of the web app, not context.xml). However, the contents of the this file do not contain the specific configuration information I put in context.xml. In summary, it does not appear as though the deploy task is using my context.xml file when it does the install/deploy. Ideas? Many thanks in advance ..
RE: Tomcat reboot runtime
Personally, I don't see why the scheme that Adam came up with wouldn't work. You would want your program to do a shutdown, wait, then issue a startup command. --Tim Sabin Shapira, Yoav [EMAIL PROTECTED] 05/13/2004 11:23 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Tomcat reboot runtime Hi, I, on the other hand, would be interested to see what you come up with, so don't stop your train of thought on my account. Yoav Shapira Millennium Research Informatics -Original Message- From: Adam Buglass [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:13 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime Wouldn't it be possible to restart tomcat by writing a server-side program to trigger a shell-script?? Of course that may disrupt the operation of the website itself - I'd have to consult the docs to be clearer on that. If Yoav says it can't be done then I'm sure we'd be wasting our time by trying! ;-) However I'm curious, just thinking off the top of my head! :-) Adam On Thu, 2004-05-13 at 15:56, Shapira, Yoav wrote: Hi, No to both. Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: Tomcat reboot runtime Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - 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]
Re: Tomcat reboot runtime
On Thu, May 13, 2004 at 11:23:17AM -0400, Shapira, Yoav wrote: : I, on the other hand, would be interested to see what you come up with, : so don't stop your train of thought on my account. If you're looking for a full restart, there are several ways (in varying levels of hackishness). Once you've figured out the trigger (described below), it's a matter of having that call: {tomcat script} stop ; {tomcat script} start Triggers: 1 changes in a file: under Linux, you could use FAM to monitor a file (say, server.xml). Under OSs that don't support FAM you'd have to do a periodic poll(), which may cause problems if there are many other processes poll()ing for files. 2 Tomcat request: under Linux/Unix, a servlet/JSP could fire a System.exec() that calls an at job. That would put the call to the script outside of the current process. (Not sure how calls to System.exec() are prohibited by the default security manager.) 3 Without the at job, the container could create/update a specified file watched by the FAM/poll() app... etc, etc. If anyone's interested in #1, I'd be happy to drive it. I've been experimenting with FAM lately, and could probably whip up something that supports non-FAM OSs, too... If you wanted to stick with Java (make it cross-platform) that should be fairly straightforward, as well. If you're looking to reload the *app* on file change, that's probably a matter of having the trigger kick a JMX action. -but I've reached total stream-of-consciousness here so I'll stop rambling... ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Server startuo failed in Eclipse
Hii.. All I am integrating tomcat server 5.0.19 with eclipse 2.1 For that i have installed tomcatb plug in software. But i got Tomcat Menu and Tomcat icon on tool bar when i m trying to run tomcat server within eclipse It is Failed i got following types of errors terminated org.apache.catalina.startup.Bootstrap at localhost:13419 terminated c:\j2sdk1.4.2_02\bin\javaw.exe any one give me solutionns I am using following Java -j2se 1.4.2 Tomcat server 5.0.19 Eclipse 2.1 Deepak
RE: Tomcat 5.0.24: cannot create Host with Administration Tool
Hi, There's more information in your logs. Look there and ask again if you still can't figure it out. Yoav Shapira Millennium Research Informatics -Original Message- From: wsedio [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:42 AM To: Tomcat Users List Subject: Tomcat 5.0.24: cannot create Host with Administration Tool Hi, I'm running Tomcat 5.0.24 on RH Enterprise Linux 3. I tried to Create New Host using the Tomcat Web Server Administration Tool, but I got this error: --- HTTP Status 500 - Error invoking operation createStandardHost type Status report message Error invoking operation createStandardHost description The server encountered an internal error (Error invoking operation createStandardHost) that prevented it from fulfilling this request. Apache Tomcat/5.0.24 --- Any idea? Thanks! - 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]
RE: Tomcat reboot runtime
Hi, What's running your program (in order to wait and issue a startup command) after you've done a shutdown? ;) (Unless you're talking about highly tomcat-specific code that shuts down tomcat and leaves the JVM itself running) Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:55 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime Personally, I don't see why the scheme that Adam came up with wouldn't work. You would want your program to do a shutdown, wait, then issue a startup command. --Tim Sabin Shapira, Yoav [EMAIL PROTECTED] 05/13/2004 11:23 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Tomcat reboot runtime Hi, I, on the other hand, would be interested to see what you come up with, so don't stop your train of thought on my account. Yoav Shapira Millennium Research Informatics -Original Message- From: Adam Buglass [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:13 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime Wouldn't it be possible to restart tomcat by writing a server-side program to trigger a shell-script?? Of course that may disrupt the operation of the website itself - I'd have to consult the docs to be clearer on that. If Yoav says it can't be done then I'm sure we'd be wasting our time by trying! ;-) However I'm curious, just thinking off the top of my head! :-) Adam On Thu, 2004-05-13 at 15:56, Shapira, Yoav wrote: Hi, No to both. Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: Tomcat reboot runtime Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - 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] 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]
RE: Tomcat reboot runtime
Hi, I'm not looking at highly specific tomcat code, that's way more complicated than I'm thinking about. I also don't see the need to faff about with shutdown - wait - startup. I was thinking (at a rather simplistic level) of having a restart script which can be called from a JSP / Java class. I'm sure a Java program could be written to call the shell script. Alternatively you could try and exploit the kill -HUP command. Probably the best way of doing this would be to setup tomcat to create a pid file on startup a la Apache. I will apologise now for not just going ahead and attempting to set this up of my own accord on my system. I have no Internet access at home (in fact I only just have a PC!) and work is far to hectic at this time for non-essential messing about (a great shame!) :-( Adam. On Thu, 2004-05-13 at 17:01, Shapira, Yoav wrote: Hi, What's running your program (in order to wait and issue a startup command) after you've done a shutdown? ;) (Unless you're talking about highly tomcat-specific code that shuts down tomcat and leaves the JVM itself running) Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:55 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime Personally, I don't see why the scheme that Adam came up with wouldn't work. You would want your program to do a shutdown, wait, then issue a startup command. --Tim Sabin Shapira, Yoav [EMAIL PROTECTED] 05/13/2004 11:23 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Tomcat reboot runtime Hi, I, on the other hand, would be interested to see what you come up with, so don't stop your train of thought on my account. Yoav Shapira Millennium Research Informatics -Original Message- From: Adam Buglass [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:13 AM To: Tomcat Users List Subject: RE: Tomcat reboot runtime Wouldn't it be possible to restart tomcat by writing a server-side program to trigger a shell-script?? Of course that may disrupt the operation of the website itself - I'd have to consult the docs to be clearer on that. If Yoav says it can't be done then I'm sure we'd be wasting our time by trying! ;-) However I'm curious, just thinking off the top of my head! :-) Adam On Thu, 2004-05-13 at 15:56, Shapira, Yoav wrote: Hi, No to both. Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: Tomcat reboot runtime Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - 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] 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 no
RE: problem with isapi redirector
Lohan I am having the same problem!! I am using Windows 2003 Server, IIS 6 and isapi_redirector2.dll. The site is accessible through port 8080 but in that case I guess we are accessing Tomcat directly. Guys, I have checked all my settings... and I have everything set-up as directed. But to no avail. I guess would need to go to a lower version of the isapi_redirector.dll (1.2.5 or even lower maybe!!). There is no site that says which redirector works with which version of IIS!? I guess I would need to go through the painful way to hit and trial!! Any help would be greatly appreciated. Cheers Srini -Original Message- From: Lohan Spies [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 5:27 AM To: '[EMAIL PROTECTED]' Subject: problem with isapi redirector Hi All, I got a problem getting the examples to show. When i copy a jsp file into my webroot directory of iis and i open it, it displays fine. But when i try to access the localhost/examples/jsp/index.html page it just gives me a page not found error. I reconfigured tomcat and iis about 10 times now, with different setup guides and i get the same result everytime. Must i publish the examples folder under the default website in iis, or is the uriworkermap.properties file suppose to go and fetch it from the webapp folder? Please help, Thanks, Lohan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat having strange 'hickups'
Are you sure this isn't related to heavy garbage collection in the JVM? jvmstat has some good tools to monitor memory usage an garbage collection in your app. Michiel Wojciech Sobczuk wrote: Hello, I'm running Tomcat 5.0.18 on RedHat 9, started with the following commandline: /usr/java/j2sdk1.4.2_01//bin/java -Xmx256m -server -Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -classpath /usr/java/j2sdk1.4.2_01//lib/tools.jar:/usr/java/jakarta-tomcat/bin/bootstrap.jar:/usr/java/jakarta-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/java/jakarta-tomcat -Dcatalina.home=/usr/java/jakarta-tomcat -Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp org.apache.catalina.startup.Bootstrap start and with development=false and fork=true in the jsp servlet configuration. This installation is serving around 20 hits per day, much of it is DB intensive. Before i set development=false and fork=true I had big hangups when I changed the JSPs and Tomcat started recompiling them - the whole engine practically stopped for a few minutes and the load went up to 16 on the server. Now development and fork variables are set correctly for deployment, but I am still having a strange problem. Every now and then (probably every few hours, I can't tell exactly) Tomcat stops for around 20 seconds. I noticed it when browsing one of my sites, everything was working fast, and then at a certain point, after I clicked on a link, the browser started connecting to the server and waited for the response for a long time. When I checked the load on the box it was 1-2 (normally it's 0.5), but didn't notice any processes hogging the CPU with 'top'. I already fixed all DB connection leaks I had so that can't be the issue here. Traffic peaks can't be it either, I have constant traffic. I know that this isn't a precise description of the error I'm encountering but I don't have any more information at this point. I'm hoping that someone encountered this already and can help me, or perhaps you can give me directions how to figure out what's wrong. Best regards, W. Sobczuk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CGIServlet problem
was wondering if anyone out there is running a version of tomcat (i'm running 5.0.19 and 5.0.24) with CGI enabled and *crosses fingers* has mrtg installed somewhere with rrdtool? For weeks now i've been trying to get the following cgi working: http://my14all.sourceforge.net/14all-1.1.txt It creates png files fine, but it doesn't spit them back out to the web browser. It has errors. I've exhausted my resources and am hopeful someone on here has the knowledge to let me know if it's infact something tiny within CGIServlet that could be changed ... or well, i'm grasping at straws now. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat reboot runtime PS...
I'm leaving work now so I'm gonna have to leave this thread for a while but I'll definitely check up on it again when I get in tomorrow morning. If I get a chance soon I'll have a go at whipping something up. I may be barking up completely the wrong tree and if I write something of course it may well just crash burn, but I'm intrigued and anyway it would keep me out of mischief!! Regards, Adam. -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JProfiler vs. JProbe for AXIS webservices?
I have installed OptimizeIt on one Windows system and deployed the needed profiling runtime to a remote Windows system. I was able to attach to and profile an application on the remote system. I would assume you would be able to do the same with a remote Linux system. The OptimizeIt 5.5 I installed included documentation about starting the remote test application on a Unix system as well as on Windows. Cheers, Larry -Original Message- From: tom ly [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 11:37 AM To: Tomcat Users List Subject: Re: JProfiler vs. JProbe for AXIS webservices? Sorry, I should of been more specific. Our application is huge AXIS webservices (no typical servlets here) running remotely on a non GUI (all command line) Linux box and we are telneting into the box from a windows pc. Can OptimizeIt be running from a non GUI Linux box, but have statistics shown from a windows box? Peter Lin [EMAIL PROTECTED] wrote: my biased perspective, Borland OptimizeIt is better than JProbe. the last time I tried to use JProbe to profile Tomcat 4 it was ungodly slow. it's probably improved since then. peter tom ly wrote: My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat having strange 'hickups'
It is possible. Any nice website about tuning the garbage collector? How to make it so it seamlessly works in the background and does not halt the whole server? Best reagards, Wojtek Michiel Toneman wrote: Are you sure this isn't related to heavy garbage collection in the JVM? jvmstat has some good tools to monitor memory usage an garbage collection in your app. Michiel Wojciech Sobczuk wrote: Hello, I'm running Tomcat 5.0.18 on RedHat 9, started with the following commandline: /usr/java/j2sdk1.4.2_01//bin/java -Xmx256m -server -Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -classpath /usr/java/j2sdk1.4.2_01//lib/tools.jar:/usr/java/jakarta-tomcat/bin/bootstrap.jar:/usr/java/jakarta-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/java/jakarta-tomcat -Dcatalina.home=/usr/java/jakarta-tomcat -Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp org.apache.catalina.startup.Bootstrap start and with development=false and fork=true in the jsp servlet configuration. This installation is serving around 20 hits per day, much of it is DB intensive. Before i set development=false and fork=true I had big hangups when I changed the JSPs and Tomcat started recompiling them - the whole engine practically stopped for a few minutes and the load went up to 16 on the server. Now development and fork variables are set correctly for deployment, but I am still having a strange problem. Every now and then (probably every few hours, I can't tell exactly) Tomcat stops for around 20 seconds. I noticed it when browsing one of my sites, everything was working fast, and then at a certain point, after I clicked on a link, the browser started connecting to the server and waited for the response for a long time. When I checked the load on the box it was 1-2 (normally it's 0.5), but didn't notice any processes hogging the CPU with 'top'. I already fixed all DB connection leaks I had so that can't be the issue here. Traffic peaks can't be it either, I have constant traffic. I know that this isn't a precise description of the error I'm encountering but I don't have any more information at this point. I'm hoping that someone encountered this already and can help me, or perhaps you can give me directions how to figure out what's wrong. Best regards, W. Sobczuk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wojciech Sobczuk [EMAIL PROTECTED] +48 501 456 923 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat having strange 'hickups'
On Thu, May 13, 2004 at 06:51:15PM +0200, Wojciech Sobczuk wrote: : Any nice website about tuning the garbage collector? Um, Google? Sun's website should have, in the very least, docs on the types of GC algorithms available and how to invoke them. : How to make it so it seamlessly works in the background and does not : halt the whole server? That depends on which GC algo you choose, which, in turn, depends on heap analysis from profiling. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat having strange 'hickups'
Hi, If it is running on a machine with multiple CPUs, you can use the concurrent collector. The collector then runs on one of the CPUs while the application continues to run on the others, the other threads will still be suspended for a short period (during the marking phase) but it can be an improvement. Note that there is a trade-off in that the collection will typically take longer. First things first though, you should tune the size of the total heap and, importantly, the size of your young generation. This has a very large impact on garbage collection performance. You will of course have to profile you app and test extensively to find the best settings for your application. I found the following links to be helpful: http://ph.sun.com/events/presentation/files/java_tech_day/hotspotperformance .pdf http://www1.sitraka.com/JUG/meetings/presentations/sep02/JUG%20Sept%202002.P PT http://java.sun.com/docs/hotspot/PerformanceFAQ.html http://www.javaperformancetuning.com/news/qotm026.shtml http://www.run.montefiore.ulg.ac.be/~skivee/java-perf/j2se141-gc-options.php http://java.sun.com/developer/technicalArticles/Programming/GCPortal/ http://java.sun.com/docs/hotspot/gc1.4.2/index.html http://java.sun.com/developer/technicalArticles/Programming/turbo/ http://www.javaworld.com/javaworld/jw-03-2003/jw-0307-j2segc.html http://performance.netbeans.org/reports/gc/ http://www.tagtraum.com/ http://jakarta.apache.org/tomcat/articles/performance.pdf Regards, Ryan. -Original Message- From: Wojciech Sobczuk [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 17:51 To: Tomcat Users List Subject: Re: Tomcat having strange 'hickups' It is possible. Any nice website about tuning the garbage collector? How to make it so it seamlessly works in the background and does not halt the whole server? Best reagards, Wojtek Michiel Toneman wrote: Are you sure this isn't related to heavy garbage collection in the JVM? jvmstat has some good tools to monitor memory usage an garbage collection in your app. Michiel Wojciech Sobczuk wrote: Hello, I'm running Tomcat 5.0.18 on RedHat 9, started with the following commandline: /usr/java/j2sdk1.4.2_01//bin/java -Xmx256m -server -Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -classpath /usr/java/j2sdk1.4.2_01//lib/tools.jar:/usr/java/jakarta-tomcat/bin/bootstra p.jar:/usr/java/jakarta-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/java/jakarta-tomcat -Dcatalina.home=/usr/java/jakarta-tomcat -Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp org.apache.catalina.startup.Bootstrap start and with development=false and fork=true in the jsp servlet configuration. This installation is serving around 20 hits per day, much of it is DB intensive. Before i set development=false and fork=true I had big hangups when I changed the JSPs and Tomcat started recompiling them - the whole engine practically stopped for a few minutes and the load went up to 16 on the server. Now development and fork variables are set correctly for deployment, but I am still having a strange problem. Every now and then (probably every few hours, I can't tell exactly) Tomcat stops for around 20 seconds. I noticed it when browsing one of my sites, everything was working fast, and then at a certain point, after I clicked on a link, the browser started connecting to the server and waited for the response for a long time. When I checked the load on the box it was 1-2 (normally it's 0.5), but didn't notice any processes hogging the CPU with 'top'. I already fixed all DB connection leaks I had so that can't be the issue here. Traffic peaks can't be it either, I have constant traffic. I know that this isn't a precise description of the error I'm encountering but I don't have any more information at this point. I'm hoping that someone encountered this already and can help me, or perhaps you can give me directions how to figure out what's wrong. Best regards, W. Sobczuk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wojciech Sobczuk [EMAIL PROTECTED] +48 501 456 923 - 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: Revoking or deleting a client certificate
:I think previously I misunderstood you - now just for my understanding - :I should create a selfsigned CA just for signing the server certificate :and then import in the keystore the client certificates which are signed :with the org's standard CA cert. And then the client browsers should be :made aware of this selfsigned CA in addition so that they can verify :the server authenticity? :Is that right? (it sounds actually logical to me :-)) At least, theoretically, it should work. That's the basic idea of a trust hierarchy. Give it a shot, and please report results back to the list. I haven't pondered the long-term effects of maintaining two separate CAs (there are ups and downs) but I'll leave that as an exercise for you. ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with isapi redirector
Hi All, I got a problem getting the examples to show. When i copy a jsp file into my webroot directory of iis and i open it, it displays fine. But when i try to access the localhost/examples/jsp/index.html page it just gives me a page not found error. I reconfigured tomcat and iis about 10 times now, with different setup guides and i get the same result everytime. Must i publish the examples folder under the default website in iis, or is the uriworkermap.properties file suppose to go and fetch it from the webapp folder? Please help, Thanks, Lohan
Tomcat having strange 'hickups'
Hello, I'm running Tomcat 5.0.18 on RedHat 9, started with the following commandline: /usr/java/j2sdk1.4.2_01//bin/java -Xmx256m -server -Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -classpath /usr/java/j2sdk1.4.2_01//lib/tools.jar:/usr/java/jakarta-tomcat/bin/bootstrap.jar:/usr/java/jakarta-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/java/jakarta-tomcat -Dcatalina.home=/usr/java/jakarta-tomcat -Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp org.apache.catalina.startup.Bootstrap start and with development=false and fork=true in the jsp servlet configuration. This installation is serving around 20 hits per day, much of it is DB intensive. Before i set development=false and fork=true I had big hangups when I changed the JSPs and Tomcat started recompiling them - the whole engine practically stopped for a few minutes and the load went up to 16 on the server. Now development and fork variables are set correctly for deployment, but I am still having a strange problem. Every now and then (probably every few hours, I can't tell exactly) Tomcat stops for around 20 seconds. I noticed it when browsing one of my sites, everything was working fast, and then at a certain point, after I clicked on a link, the browser started connecting to the server and waited for the response for a long time. When I checked the load on the box it was 1-2 (normally it's 0.5), but didn't notice any processes hogging the CPU with 'top'. I already fixed all DB connection leaks I had so that can't be the issue here. Traffic peaks can't be it either, I have constant traffic. I know that this isn't a precise description of the error I'm encountering but I don't have any more information at this point. I'm hoping that someone encountered this already and can help me, or perhaps you can give me directions how to figure out what's wrong. Best regards, W. Sobczuk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4: JNDI LDAP - Can't get single role name
Hello Tomcat-Users, I've got a problem and I don't know if it's my lack (...but I've already scanned this list). In my environment I want to authenticate the users against MS AD by JNDI LDAP. The user authentication is ok and also the roles found by getRoles() are the right ones. But the returned roles are given in the complete distinguished name (DN) of the role (i.e. CN=ERKUSAAdmin,CN=Users,DC=local,DC=bremereb,DC=de) instead of the single role name (attribute cn) (i.e. ERKUSAAdmin) so I have to configure the fully DN in web.xml for a security-constraint what is very undesireable: Log in catalina.out (tomcat 4.1.7): 2004-05-13 11:33:44 JNDIRealm[Standalone]: Searching for goerlich 2004-05-13 11:33:44 JNDIRealm[Standalone]: base: CN=Users,dc=local,dc=bremereb,dc=de filter: (sAMAccountName=goerlich) 2004-05-13 11:33:44 JNDIRealm[Standalone]: entry found for goerlich with dn CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: retrieving values for attribute memberOf 2004-05-13 11:33:44 JNDIRealm[Standalone]: validating credentials by binding as the user 2004-05-13 11:33:44 JNDIRealm[Standalone]: binding as CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Username goerlich successfully authenticated 2004-05-13 11:33:44 JNDIRealm[Standalone]: getRoles(CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de) 2004-05-13 11:33:44 JNDIRealm[Standalone]: Searching role base 'CN=Users,dc=local,dc=bremereb,dc=de' for attribute 'cn' 2004-05-13 11:33:44 JNDIRealm[Standalone]: With filter expression 'member=CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de' 2004-05-13 11:33:44 JNDIRealm[Standalone]: Returning 7 roles 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=erkusaverwalter,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=tomcat,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=manager,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=ERKUSAAdmin,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=_Gewerbekunden,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=_Dokumentation,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Found role CN=_Team_SAP,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:44 JNDIRealm[Standalone]: Username goerlich has role CN=ERKUSAAdmin,CN=Users,DC=local,DC=bremereb,DC=de 2004-05-13 11:33:57 JNDIRealm[Standalone]: Username goerlich does NOT have role ERKUSAAdmin 2004-05-13 11:33:57 JNDIRealm[Standalone]: Username goerlich does NOT have role ERKUSAVerwalter 2004-05-13 11:33:57 JNDIRealm[Standalone]: Username goerlich does NOT have role ERKUSAAdmin My configured JNDI-realm in server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=... (substituted) userBase=CN=Users,dc=local,dc=bremereb,dc=de userSearch=(sAMAccountName={0}) userRoleName=memberOf roleBase=CN=Users,dc=local,dc=bremereb,dc=de roleName=cn roleSearch=member={0} connectionName=[EMAIL PROTECTED] connectionPassword=secret roleSubtree=true userSubtree=true / I run this on tomcat 4.1.27. The funny thing is that the same configuration on tomcat 5 return 14 roles (for the given example) what work for me, but I need that functionality in tomcat 4: Log in catalina.out (tomcat 5.0.24) 2004-05-13 11:59:31 JNDIRealm[Catalina]: Searching for goerlich 2004-05-13 11:59:31 JNDIRealm[Catalina]: base: CN=Users,dc=local,dc=bremereb,dc=de filter: (sAMAccountName=goerlich) 2004-05-13 11:59:31 JNDIRealm[Catalina]: entry found for goerlich with dn CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de 2004-05-13 11:59:31 JNDIRealm[Catalina]: retrieving values for attribute memberOf 2004-05-13 11:59:31 JNDIRealm[Catalina]: validating credentials by binding as the user 2004-05-13 11:59:31 JNDIRealm[Catalina]: binding as CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de 2004-05-13 11:59:31 JNDIRealm[Catalina]: Username goerlich successfully authenticated 2004-05-13 11:59:31 JNDIRealm[Catalina]: getRoles(CN=Goerlich\, Michael,CN=Users,dc=local,dc=bremereb,dc=de) 2004-05-13 11:59:31 JNDIRealm[Catalina]: Searching role base 'CN=Users,DC=local,DC=bremereb,DC=de' for attribute 'cn' 2004-05-13 11:59:31 JNDIRealm[Catalina]: With filter expression 'member=CN=Goerlich\5c, Michael,CN=Users,dc=local,dc=bremereb,dc=de' 2004-05-13 11:59:31 JNDIRealm[Catalina]: retrieving values for attribute cn 2004-05-13 11:59:31 JNDIRealm[Catalina]: retrieving values for attribute cn 2004-05-13 11:59:31 JNDIRealm[Catalina]: retrieving values for attribute cn 2004-05-13 11:59:31 JNDIRealm[Catalina]: retrieving values for attribute cn 2004-05-13 11:59:31 JNDIRealm[Catalina]: retrieving values for attribute
Clustering problem with web.xml
Hi Tomcat user, I'm trying to setup a in memory session replication with tomcat. I have: -tomcat 5.0.24 -java 1.4.2_04 - Red Hat Enterprise Linux 3 I have two machine dl580-1 and dl580-2 with tcp/ip and multicast enabled. this is the cluster part of server.xml. Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.1 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ /Cluster when I try to put the label distributable/ in jakarta-tomcat-5.0.24/webapps/jsp-examples/WEB-INF/web.xml I recive in the catalina.out these errors: INFO: Installing web application at context path /jsp-examples from URL file:/home/tomcat/jakarta-tomcat-5.0.24/webapps/jsp-examples May 13, 2004 12:50:11 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 21 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:476) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
Default Directory
Hi, With Tomcat 5.0.24 running as a service, where would the current directory be? 5.0.18 allowed you to specify --WorkingPath %CATALINA_HOME%\bin in service.bat, but this setting is ignored now in 5.0.24. I need to open some config files from the current directory at startup. BTW how does the technique work to grab a resource from the CLASSPATH? Maybe I only need to put the config files in the classpath in that case. (or in the WEB-INF directory of the service?). Thanks! Andi ** Everything in this e-mail and attachments relating to the official business of MultiChoice Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. **
mod_jk2 RPM
Hi all, do you know where I can find an RPM or SRPM for the latest mod_jk2? I am running RH Enterprise Linux 3 (Apache 2.0.46) and Tomcat 5.0.24. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.x Vs 5.0.x
From personal experience in testing on Suse 8.2 and tomcat 4.1.30 using a load of 1000 concurrent connections pulling continuous pages from the webserver, the following was found: - using ibm jdk and blackdown jdk (basically same thing) gave the fastest serve times for the first hour of testing. unfortunately the serve times slowed drastically after 1 hour under load. - sun jdk server time results remained the same under the load for the length of the test (5 hours) We concluded the sun jdk was best for our environment. However it can be concluded that the ibm version is good if you do not need to handle that much load. -joe - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] Date: Wed, 12 May 2004 15:31:37 -0400 To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Tomcat 4.1.x Vs 5.0.x Hi, Sun 1.4.2 IBM 1.4.1 Bea 1.4.2 (JRockit) Which one would be better? I am running RH Enterprise Linux 3 on a Dell PowerEdge 1655MC: dual 1.4Ghz PIII and 2GB of RAM. The reason people cite for shifting away from the Sun JVM are performance-oriented. The problems cited with others often revolve around bad stability. So if you want stability (which I think is the case for a service host), start out using the Sun JDK. BTW, I'm not convinced on the performance front either, so definitely IMHO start with the Sun JDK. Yoav 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] -- ___ Get your free Verizonmail at www.verizonmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 RPM
www.jpackage.org On Thursday 13 May 2004 14:01, wsedio wrote: Hi all, do you know where I can find an RPM or SRPM for the latest mod_jk2? I am running RH Enterprise Linux 3 (Apache 2.0.46) and Tomcat 5.0.24. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gabriele Paciucci mailto:[EMAIL PROTECTED] BMIND Spa Via Pomponazzi, 25 20141 Milano (Italy) NUOVO SITO INTERNET: WWW.BMIND.IT Assistant: Emanuela Rugginenti mailto:[EMAIL PROTECTED] Tel: +39-02-84800-628 Fax: +39-02-84800-627 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 Tomcat instances on the same server ?
Hello, I have a server with one single webapps running on Tomcat 4.1.29 and MS IIS 6 (linked through the JK Connector) on Win2K, in production and accessible through the web. Now I need to have a second application running on Tomcat + IIS too, but I'm not sure what option to take : 1- install the 2nd web apps on the same Tomcat, 2- install a 2nd Tomcat instance on the server and have that 2nd web apps running on that 2nd instance, 3- have a 2nd server installed with its own configuration. The issues I foresee according to the options : - option 1 : if any severe problem arises on any application which could affect Tomcat (Out of Memory error, etc), the other apps would also not be available. Also when re-deploying an apps, the best solution is usually to stop/start the Tomcat service, which would automatically shutdown the other too. - option 2 (my prefered one) : best solution I think so far, but could there be any conflict between both Tomcats running on the same server ? What specific step should I take to have them running side by side without problem (besides having a different HTTP port) ? - option 3 : expensive solution, although the 2nd server is almost ready and already running. Any opinion about this ? Has anyone tried any of the options above in a Production environment (i.e. servers up 24/7 all year with least interruption possible) ? Thanks a lot, Alain ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Eri Bancaire SA **
RE: 2 Tomcat instances on the same server ?
Option 2 would work fine as long as you change all the ports that it needs, there shouldnt be any configurational stuff other than that as long as the box has the memory and cpu to cope. Option 3, if you have the server then might as well use it. Ta Matt -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 13:47 To: [EMAIL PROTECTED] Subject: 2 Tomcat instances on the same server ? Hello, I have a server with one single webapps running on Tomcat 4.1.29 and MS IIS 6 (linked through the JK Connector) on Win2K, in production and accessible through the web. Now I need to have a second application running on Tomcat + IIS too, but I'm not sure what option to take : 1- install the 2nd web apps on the same Tomcat, 2- install a 2nd Tomcat instance on the server and have that 2nd web apps running on that 2nd instance, 3- have a 2nd server installed with its own configuration. The issues I foresee according to the options : - option 1 : if any severe problem arises on any application which could affect Tomcat (Out of Memory error, etc), the other apps would also not be available. Also when re-deploying an apps, the best solution is usually to stop/start the Tomcat service, which would automatically shutdown the other too. - option 2 (my prefered one) : best solution I think so far, but could there be any conflict between both Tomcats running on the same server ? What specific step should I take to have them running side by side without problem (besides having a different HTTP port) ? - option 3 : expensive solution, although the 2nd server is almost ready and already running. Any opinion about this ? Has anyone tried any of the options above in a Production environment (i.e. servers up 24/7 all year with least interruption possible) ? Thanks a lot, Alain ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Eri Bancaire SA ** Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to configure the cookie-path-argument
I sympathize with your problem, Christoph. After a quick look over the code for the Coyote connector (which is likely what you're using), it looks like the answer is no: The session determination occurs in CoyoteRequest, and the cookies are unconditionally written with the context path of the request as the path value. Because the cookie handling is done in the internal Coyote request and response classes, and the CoyoteConnector is the only configurable element, I suspect that you'd have to re-implement some of the internals classes to change the behavior for assigning cookie domain or path. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Christoph Meier [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:56 PM To: Tomcat Users List Subject: how to configure the cookie-path-argument Hi I'm runnig tomcat 5.19 behind an apache. apache is serving static contents and rewriting the requests (using mod_rewrite), for the rewrite-rules, see below. the web-app /edit has a Login-module, if login is successfull, the app /edit sends a cookie to the client with Path=/edit(the setting of the Cookie is done with theHttpServletReqest.getSession(true) ). The value for the Path-attribute by default seems to be /appName ... which for sure makes sense since the client is sending its request to e.g. http://edit.hmb.ch/ServiceBroker (or http://edit.hmb.ch/de.html ), but not sending to http://edit.hmb.ch/edit/ServiceBroker... the client does send back the cookie in the Request-Header (since for the client it's not a Request to /edit ) in BEA-weblogic its possible to configure the path-attribute for the cookie for every web-app within the weblogic-specific weblogic.xml (see weblogic.xml - snippet below) is there a way to override tomcats default-behaviour for setting the path-argument of a cookie, e.g. in the web.xml or may be in the server.xml (in the context-section) ... ... or has someone another hint how to set the Path=/ thanks in advance, christoph # weblogic.xml - snippet - session-descriptor session-param param-nameCookieDomain/param-name param-valuemyCookieDomain/param-value param-nameCookiePath/param-name param-value//param-value /session-param /session-descriptor # EOF: weblogic.xml - snippet - # httpd.conf- snippet - VirtualHost hmb.ch:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/hmb/htdocs ServerName www.hmb.ch ErrorLog /var/log/apache/hmb.ch-error.log CustomLog /var/log/apache/hmb.ch.log common RewriteEngine On # RewriteRule ^/(.*)\.(jpg|jpeg)$ $0 [L] # RewriteRule ^/(.*) http://localhost:8080/edit/$1; [P] # ProxyPassReverse / http://localhost:8080/edit/ #RewriteRule ^/ http://localhost:8080/edit/index.html [L,P] RewriteRule ^/ServiceBroker(.*) http://localhost:8080/edit$0 [P] RewriteRule ^/(.*).html http://localhost:8080/edit$0 [P] /VirtualHost # EOF: httpd.conf- snippet - - 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: 2 Tomcat instances on the same server ?
I would go for 2. As I'm not using IIS, I'm not shure if there are specific hurdles in this environment. Tomcat stand alone and tomcat behind apache are quite easy to setup with multiple instances. If all tomcate have the same versions, you just have to install tomcat once and setup two instances. -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: 2 Tomcat instances on the same server ? 2- install a 2nd Tomcat instance on the server and have that 2nd web apps running on that 2nd instance, 3- have a 2nd server installed with its own configuration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stop WA at startup
What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ... Regards, Arnaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preparing to do session sharing
On 13.05.2004, at 08:21, Randy wrote: 1) is it stable? I have seen lots of email traffic and some comments about The only thing worse than dealing with connectors is Clustering I cannot tell you yet if it's stable because the site is not in production yet. First tests have shown some problems, but I think we have nailed them down now to be bugs in the application itself and not in tomcat. We were using references to the objects that we stored in the session and did the changes on these references. That was working nice - but it showed to cause problems and the changed object was not always distributed to all conneced servers. We are now changing our code to use the set... method after changes and it seems to work better. Though we haven't done many tests yet. 1a) do people have this working successfully in a high traffic production env? See my comments on the first point. 2) I am going to use Using in-memory-replication, using the SimpleTcpCluster that ships with Tomcat 5 method Yepp, that's also the way we use in our environment. Would be great if we can help each other on this issue. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Default Directory
Hi, With Tomcat 5.0.24 running as a service, where would the current directory be? 5.0.18 allowed you to specify --WorkingPath %CATALINA_HOME%\bin in service.bat, but this setting is ignored now in 5.0.24. I need to open some config files from the current directory at startup. BTW how does the technique work to grab a resource from the CLASSPATH? Maybe I only need to put the config files in the classpath in that case. (or in the WEB-INF directory of the service?). Using Class#getResource is a great portable way to read configuration files. Place the config files under WEB-INF/classes, and then say (from any object) getClass().getResource(/myFile.prop) to get a URL to the file (for libraries that will take a URL), or getResourceAsStream to get an InputStream for reading. Read the JavaDoc for Class#getResource (actually ClassLoader#getResource as you'll see) for full details. Using ServletContext#getResource is similar and also very good. Files don't have to be on the classpath, they can be anywhere under the webapp's root directory. For example, put them under WEB-INF/config and call getServletContext().getResource(/WEB-INF/config/myFile.prop) to get the URL, or getResourceAsStream for the stream. Either of those approaches is many times better than the current working directory approach, which is the portability equivalent of a fly on the path of a sumo wrestler to his food. Yoav Shapira 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]
RE: Stop WA at startup
Guessing that you are talking about starting instead of stopping... load-on-startup is for servlets not for web applications. If you include this tag in a servlet definition, the servlet will be started at startup time. The value for the tag defines the order of the startup. -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:59 PM To: Tomcat Users List Subject: Stop WA at startup What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ...
RE: error shutting down the tomcat
Hi, Your shutdown error means tomcat was already not running (or more precisely, not listening on the server shutdown socket, 8005 by default). Shut down tomcat. Make sure it's shut down using the ps command to show its java process is gone. Clear out your logs. Start tomcat. Look at the logs for error messages. Yoav Shapira Millennium Research Informatics -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 4:58 PM To: [EMAIL PROTECTED] Subject: error shutting down the tomcat Hi, I was making some changes to my server.xml (I was adding another context to it). I was also using the webpage of manager. But even after making changes I cannot see the newly context available in the manager window. I decided to restart tomcat using command line. But I am getting the follwing exception-- bash-2.03$ ./startup.sh Using CATALINA_BASE: /opt/aarora/jakarta-tomcat-4.1.29 Using CATALINA_HOME: /opt/aarora/jakarta-tomcat-4.1.29 Using CATALINA_TMPDIR: /opt/aarora/jakarta-tomcat-4.1.29/temp Using JAVA_HOME: /usr/java/j2sdk1.4.0 bash-2.03$ ./shutdown.sh Using CATALINA_BASE: /opt/aarora/jakarta-tomcat-4.1.29 Using CATALINA_HOME: /opt/aarora/jakarta-tomcat-4.1.29 Using CATALINA_TMPDIR: /opt/aarora/jakarta-tomcat-4.1.29/temp Using JAVA_HOME: /usr/java/j2sdk1.4.0 Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148) at java.net.Socket.connect(Socket.java:425) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.init(Socket.java:290) at java.net.Socket.init(Socket.java:118) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) bash-2.03$ although starting up tomcat do not show any errors, but I cannot see that tomcat is working. Nothing is available on the web page, I get error saying page not available. I have even restored all the changes, but then alsp I get them same exception. Any suggestions?? Thanks. Avinash Arora - 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]
Re: Timing service in Tomcat
Sasha, We wanted to reuse our business java code for our batch runs so we implemented a cron job with issued a lynx command such as lynx http://webxx/servlet/batch?batch=2date=05/13/04. We run our production environment in linux so lynx was available by default. Tim Mats Henrikson wrote: Sasha, If you are used to unix cron and the format of crontabs, then you might also want to have a look at JCronTab (http://jcrontab.sourceforge.net/), which is supposed to work pretty well with Tomcat (have a look at the first FAQ entry...). Mats On Wed, 2004-05-12 at 16:33, Sasha Borodin wrote: I'm wondering what people are doing to schedule/execute tasks in Tomcat... Is there any built-in timing services in Tomcat? Are people using external operating system tools like cron to invoke a class, or hit a servlet? Is anyone using a good 3rd party scheduling framework? Or is this kind of stuff home-grown right now (java.util.Timer, etc.)? If you've got your own timer, where do you initialize it (like in a servlet's init() or a context listener)? Thank you, -Sasha - 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: Stop WA at startup
Hi, Your message is vague. However, take a look at the deployOnStartup flag for the Host element in tomcat's configuration reference documentation. It might not be exactly what you want. Basically, if you don't want a webapp initialized when the tomcat server is started, don't deploy that webapp. You can always deploy it later when you actually want it. Yoav Shapira Millennium Research Informatics -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:59 AM To: Tomcat Users List Subject: Stop WA at startup What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ... Regards, Arnaud 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]
RE: symLinks broken in tomcat 5.0.19
Howdy, Thanks It is now and it works Context path= docBase=/home/team allowLinking=true debug=0 reloadable=false Good. Glad to help, Yoav 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]
RE: Tomcat having strange 'hickups'
Hi, It might be a big full garbage collection. Add -verbose:gc to your startup JVM options. Use the system normally, and check the console log as soon as you have one of those 20-second pauses. If it says something like [Full GC: XXX - YYY (20 sec)] then that's the culprit. You will need to tune your GC parameters for this high a load anyways. Yoav Shapira Millennium Research Informatics -Original Message- From: Wojciech Sobczuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 6:03 AM To: [EMAIL PROTECTED] Subject: Tomcat having strange 'hickups' Hello, I'm running Tomcat 5.0.18 on RedHat 9, started with the following commandline: /usr/java/j2sdk1.4.2_01//bin/java -Xmx256m -server -Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -classpath /usr/java/j2sdk1.4.2_01//lib/tools.jar:/usr/java/jakarta- tomcat/bin/bootstrap.jar:/usr/java/jakarta-tomcat/bin/commons-logging- api.jar -Dcatalina.base=/usr/java/jakarta-tomcat -Dcatalina.home=/usr/java/jakarta-tomcat -Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp org.apache.catalina.startup.Bootstrap start and with development=false and fork=true in the jsp servlet configuration. This installation is serving around 20 hits per day, much of it is DB intensive. Before i set development=false and fork=true I had big hangups when I changed the JSPs and Tomcat started recompiling them - the whole engine practically stopped for a few minutes and the load went up to 16 on the server. Now development and fork variables are set correctly for deployment, but I am still having a strange problem. Every now and then (probably every few hours, I can't tell exactly) Tomcat stops for around 20 seconds. I noticed it when browsing one of my sites, everything was working fast, and then at a certain point, after I clicked on a link, the browser started connecting to the server and waited for the response for a long time. When I checked the load on the box it was 1-2 (normally it's 0.5), but didn't notice any processes hogging the CPU with 'top'. I already fixed all DB connection leaks I had so that can't be the issue here. Traffic peaks can't be it either, I have constant traffic. I know that this isn't a precise description of the error I'm encountering but I don't have any more information at this point. I'm hoping that someone encountered this already and can help me, or perhaps you can give me directions how to figure out what's wrong. Best regards, W. Sobczuk - 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]
RE: Stop WA at startup
No I persist : stop appli : I don't want my web apps to be available after the tomcat startup time. Each web app must be started by a human act. the lack of load-on-startup in my web.xml doesn't give the wanted result. Regards, Arnaud Message d'origine De: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Date: jeu. 13/05/2004 15:09 : Tomcat Users List Cc: Objet: RE: Stop WA at startup Guessing that you are talking about starting instead of stopping... load-on-startup is for servlets not for web applications. If you include this tag in a servlet definition, the servlet will be started at startup time. The value for the tag defines the order of the startup. -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:59 PM To: Tomcat Users List Subject: Stop WA at startup What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
really newbie question on patch level
The report writer we use from tonbeller software uses Servlets, we use tomcat on IIS for this. However our customer want to know the version (no problem) and the Patch level - problem How do you tell the patch level of the tomcat server you have downloaded? Do you have to install it 1st? Then do a http://localhost:8080/manager/serverinfo Command to get the patch level? Sincerely Coolguys! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stop WA at startup
Hi again ! For me, a deployment act is not the same semantic as start act : ie vi is available in Linux and it is not opened when the system is started ;-) In my context, the Web apps list is bundled with a lot of other programs (say system programs) and installed by a local admin and this person is not the one who starts the web apps after the deployment process. Regards, Arnaud Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: jeu. 13/05/2004 15:14 : Tomcat Users List Cc: Objet: RE: Stop WA at startup Hi, Your message is vague. However, take a look at the deployOnStartup flag for the Host element in tomcat's configuration reference documentation. It might not be exactly what you want. Basically, if you don't want a webapp initialized when the tomcat server is started, don't deploy that webapp. You can always deploy it later when you actually want it. Yoav Shapira Millennium Research Informatics -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:59 AM To: Tomcat Users List Subject: Stop WA at startup What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ... Regards, Arnaud 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]
RE: really newbie question on patch level
Hi, No such concept existing for tomcat. The version number is it, as there are no patches, only new versions. Yoav Shapira Millennium Research Informatics -Original Message- From: Coolguys [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 9:24 AM To: 'Tomcat Users List' Subject: really newbie question on patch level The report writer we use from tonbeller software uses Servlets, we use tomcat on IIS for this. However our customer want to know the version (no problem) and the Patch level - problem How do you tell the patch level of the tomcat server you have downloaded? Do you have to install it 1st? Then do a http://localhost:8080/manager/serverinfo Command to get the patch level? Sincerely Coolguys! - 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]
RE: Stop WA at startup
Hi, Have you tried setting the Host's deployOnStartup attribute to false in your server.xml? Does that address your needs? If not, then you're SOL with the current tomcat version ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 9:27 AM To: Tomcat Users List Subject: RE : Stop WA at startup Hi again ! For me, a deployment act is not the same semantic as start act : ie vi is available in Linux and it is not opened when the system is started ;-) In my context, the Web apps list is bundled with a lot of other programs (say system programs) and installed by a local admin and this person is not the one who starts the web apps after the deployment process. Regards, Arnaud Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: jeu. 13/05/2004 15:14 À: Tomcat Users List Cc: Objet: RE: Stop WA at startup Hi, Your message is vague. However, take a look at the deployOnStartup flag for the Host element in tomcat's configuration reference documentation. It might not be exactly what you want. Basically, if you don't want a webapp initialized when the tomcat server is started, don't deploy that webapp. You can always deploy it later when you actually want it. Yoav Shapira Millennium Research Informatics -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:59 AM To: Tomcat Users List Subject: Stop WA at startup What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ... Regards, Arnaud 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] 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]
RE: Stop WA at startup
I can't : working with T4.1.x :-( Maybe the solution is specific webapp manager (tomcat jmx features) that starts after the other web apps and stop all of them ! Regards ! Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: jeu. 13/05/2004 15:34 : Tomcat Users List Cc: Objet: RE: Stop WA at startup Hi, Have you tried setting the Host's deployOnStartup attribute to false in your server.xml? Does that address your needs? If not, then you're SOL with the current tomcat version ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 9:27 AM To: Tomcat Users List Subject: RE : Stop WA at startup Hi again ! For me, a deployment act is not the same semantic as start act : ie vi is available in Linux and it is not opened when the system is started ;-) In my context, the Web apps list is bundled with a lot of other programs (say system programs) and installed by a local admin and this person is not the one who starts the web apps after the deployment process. Regards, Arnaud Message d'origine De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Date: jeu. 13/05/2004 15:14 : Tomcat Users List Cc: Objet: RE: Stop WA at startup Hi, Your message is vague. However, take a look at the deployOnStartup flag for the Host element in tomcat's configuration reference documentation. It might not be exactly what you want. Basically, if you don't want a webapp initialized when the tomcat server is started, don't deploy that webapp. You can always deploy it later when you actually want it. Yoav Shapira Millennium Research Informatics -Original Message- From: Boulay Arnaud [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:59 AM To: Tomcat Users List Subject: Stop WA at startup What is the way for stop all the Web Applications at Tomcat startup time ? load-on-startup tag in web.xml seams to be here only to fix priority ... Regards, Arnaud 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] 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]
Re: Apache 2 - mod_jk2
I have started using the ver attribute along with the graceful attribute and I am now seeing the updates properly register when running the jk2status application. however... new users' sessions are still directed to the Servlet Container that should be in graceful shutdown mode. Is there anything else in addition to the below suggestion that I could be missing ? - Original Message - From: Thomas D. Zeimet [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:04 PM Subject: Re: Apache 2 - mod_jk2 1. Edit workers2.properties. Find the channel. Change graceful to 1 to disable or 0 to reactivate. Increment ver. 2. Access /jkstatus page. You should see the value changed in the channel and worker info. See the JK2 documentation at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html --- Mike Batting [EMAIL PROTECTED] wrote: I am running a load balanced Apache2 - mod_jk2 configuration. I am wondering if there is an option in the configuration settings that would allow an administrator to dynamically close one or more of the connectors (stop it from accepting new connections) so that a given Servlet Engine can be shutdown, updated, restarted etc... this way when people enter the site the apache-mod_jk2 will not attempt to contact the Servlet Engine that is down but will be directed to another instance that is still running. We already have a means of monitoring existing connections on each Servlet Container... so once the connector is not diverting traffic to a given container we can wait until the current users finish their work... is there a way to do this by updating some configuration settings dynamically ? __ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861 - 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]
Error retrieving attribute users with tomcat 5.0.24 admin console
Hi, I cannot succeed to use the Tomcat 5.0.24 admin console to manage my UserDatabaseRealm (conf/tomcat-users.xml file). No UserDatabase is seen and when I click to Users, I get the following error: HTTP Status 500 - Error retrieving attribute users. Thank you in advance for any help. best regards, log file 2004-05-13 15:24:17 StandardContext[/admin]action: Error retrieving attribute users javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName Users:type=UserDatabase,database=UserDatabase at mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528) at mx4j.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1235) at org.apache.webapp.admin.users.UserUtils.getUsersForm(UserUtils.java:112) at org.apache.webapp.admin.users.ListUsersAction.perform(ListUsersAction.java:113) at org.apache.struts.action.Action.execute(Action.java:420) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) My config: --- TOMCAT_HOME/conf/server.xml (I use tomcat which Apache thank mod_jk) Server port=8005 shutdown=SHUTDOWN debug=4 GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false
RE: how to access webpages under apache/tomcat without specifying port 8080
look in server.xml for '8080'. Wherever it appears, change it to '80' -Original Message- From: b [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 12:50 AM To: [EMAIL PROTECTED] Subject: how to access webpages under apache/tomcat without specifying port 8080 I have a webserver with Apache 2.043 and Tomcat 4.1.18 and mod_jk connector. I can access my webpages locally without having to specify tomcat's port 8080. eg: http://localhost/webapps However, I have still have to specify the port number if accessing from other computers eg: http://webserver:8080/webapps My server is on Win2K Server SP4 with MySQL as the database. Any idea on how I can access the webpages from anywhere without having to specify the port number? Regards, shabb - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk.so for Fedora Core 1 x86_64
I've been trying to find a mod_jk.so binary to connect Apache 2.0.48 to Tomcat 4.1.29 on my AMD64 server, which is running Fedora Core 1 x86_64. I've noticed that FreeBSD has a 64 bit version, any idea if someone is working on one for Fedora? Cheers, Brad
RE: mod_jk.so for Fedora Core 1 x86_64
There is an already build binary on the Jakarta.tomcat site! Just go to binaries and search around! It is a jk2 binary The package works, I installed it! -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:22 PM To: [EMAIL PROTECTED] Subject: mod_jk.so for Fedora Core 1 x86_64 I've been trying to find a mod_jk.so binary to connect Apache 2.0.48 to Tomcat 4.1.29 on my AMD64 server, which is running Fedora Core 1 x86_64. I've noticed that FreeBSD has a 64 bit version, any idea if someone is working on one for Fedora? Cheers, Brad
RE: mod_jk.so for Fedora Core 1 x86_64
http://apache.is.co.za/dist/jakarta/tomcat-connectors/jk2/binaries/linux/ here is the link -Original Message- From: Lohan Spies [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:28 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so for Fedora Core 1 x86_64 There is an already build binary on the Jakarta.tomcat site! Just go to binaries and search around! It is a jk2 binary The package works, I installed it! -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:22 PM To: [EMAIL PROTECTED] Subject: mod_jk.so for Fedora Core 1 x86_64 I've been trying to find a mod_jk.so binary to connect Apache 2.0.48 to Tomcat 4.1.29 on my AMD64 server, which is running Fedora Core 1 x86_64. I've noticed that FreeBSD has a 64 bit version, any idea if someone is working on one for Fedora? Cheers, Brad
Preparing to do session sharing
Hello, I am upgrading my Tomcat Servers to 5 so I can take advantage of Session sharing. I have two servers that I want to share sessions. As a side note, this is in conjunction with using LVS, rh9 and apache 2 Before I try I would like to just clarify some things. 1) is it stable? I have seen lots of email traffic and some comments about The only thing worse than dealing with connectors is Clustering 1a) do people have this working successfully in a high traffic production env? 2) I am going to use Using in-memory-replication, using the SimpleTcpCluster that ships with Tomcat 5 method 3) any real-life gotcha's or advise? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Timing service in Tomcat
Sasha, If you are used to unix cron and the format of crontabs, then you might also want to have a look at JCronTab (http://jcrontab.sourceforge.net/), which is supposed to work pretty well with Tomcat (have a look at the first FAQ entry...). Mats On Wed, 2004-05-12 at 16:33, Sasha Borodin wrote: I'm wondering what people are doing to schedule/execute tasks in Tomcat... Is there any built-in timing services in Tomcat? Are people using external operating system tools like cron to invoke a class, or hit a servlet? Is anyone using a good 3rd party scheduling framework? Or is this kind of stuff home-grown right now (java.util.Timer, etc.)? If you've got your own timer, where do you initialize it (like in a servlet's init() or a context listener)? Thank you, -Sasha - 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]
Problem with started
Hello What`s mean this problem?? when i load the page at localhost:8080/opennms the screnn is all white and the error in logs is this. Thanks for all. 2004-05-13 09:04:24 StandardHost[localhost]: Removing web application at context path /ROOT/opennms 2004-05-13 09:04:24 StandardHost[localhost]: ContainerBase.removeChild: stop: LifecycleException: Container StandardContext[/ROOT/opennms] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036) at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:420) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:919) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:899) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:370) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233) at org.apache.catalina.core.StandardService.stop(StandardService.java:554) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2224) at org.apache.catalina.startup.Catalina.start(Catalina.java:543) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk.so for Fedora Core 1 x86_64
Are you telling me that the i386 version will work on a 64bit processor? -Brad - Original Message - From: Lohan Spies [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:28 AM Subject: RE: mod_jk.so for Fedora Core 1 x86_64 http://apache.is.co.za/dist/jakarta/tomcat-connectors/jk2/binaries/linux/ here is the link -Original Message- From: Lohan Spies [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:28 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so for Fedora Core 1 x86_64 There is an already build binary on the Jakarta.tomcat site! Just go to binaries and search around! It is a jk2 binary The package works, I installed it! -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:22 PM To: [EMAIL PROTECTED] Subject: mod_jk.so for Fedora Core 1 x86_64 I've been trying to find a mod_jk.so binary to connect Apache 2.0.48 to Tomcat 4.1.29 on my AMD64 server, which is running Fedora Core 1 x86_64. I've noticed that FreeBSD has a 64 bit version, any idea if someone is working on one for Fedora? Cheers, Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering problem with web.xml
check your web.xml for a mistake The markup in the document following the root element must be well-formed. or open it in an xml editor, it will tell you right away Filip - Original Message - From: Gabriele Paciucci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 6:09 AM Subject: Clustering problem with web.xml Hi Tomcat user, I'm trying to setup a in memory session replication with tomcat. I have: -tomcat 5.0.24 -java 1.4.2_04 - Red Hat Enterprise Linux 3 I have two machine dl580-1 and dl580-2 with tcp/ip and multicast enabled. this is the cluster part of server.xml. Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.1 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ /Cluster when I try to put the label distributable/ in jakarta-tomcat-5.0.24/webapps/jsp-examples/WEB-INF/web.xml I recive in the catalina.out these errors: INFO: Installing web application at context path /jsp-examples from URL file:/home/tomcat/jakarta-tomcat-5.0.24/webapps/jsp-examples May 13, 2004 12:50:11 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 21 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:476) at
Tomcat reboot runtime
Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: mod_jk.so for Fedora Core 1 x86_64
Sorry didn't see you were using 64 bit. Just saw tomcat and fedora! I don't know give it a bash -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:43 PM To: Tomcat Users List Subject: Re: mod_jk.so for Fedora Core 1 x86_64 Are you telling me that the i386 version will work on a 64bit processor? -Brad - Original Message - From: Lohan Spies [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:28 AM Subject: RE: mod_jk.so for Fedora Core 1 x86_64 http://apache.is.co.za/dist/jakarta/tomcat-connectors/jk2/binaries/linux/ here is the link -Original Message- From: Lohan Spies [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:28 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so for Fedora Core 1 x86_64 There is an already build binary on the Jakarta.tomcat site! Just go to binaries and search around! It is a jk2 binary The package works, I installed it! -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:22 PM To: [EMAIL PROTECTED] Subject: mod_jk.so for Fedora Core 1 x86_64 I've been trying to find a mod_jk.so binary to connect Apache 2.0.48 to Tomcat 4.1.29 on my AMD64 server, which is running Fedora Core 1 x86_64. I've noticed that FreeBSD has a 64 bit version, any idea if someone is working on one for Fedora? Cheers, Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Availability of mod-jk2 for Apache 2.0.49 on RHLinux
Hi, Can anyone tell me when will the mod-jk2 connector will be available for Apache 2.0.49. Thanks Asif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering problem with web.xml
Hi All, I am using Tomcat 3.3 and would like to know what properties I need to set up in server.xml so that I can look up a datasource in the context. For example: initCtx.lookup(jdbc/OracleDatasource); Thanks Ram -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 10:52 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Clustering problem with web.xml check your web.xml for a mistake The markup in the document following the root element must be well-formed. or open it in an xml editor, it will tell you right away Filip - Original Message - From: Gabriele Paciucci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 6:09 AM Subject: Clustering problem with web.xml Hi Tomcat user, I'm trying to setup a in memory session replication with tomcat. I have: -tomcat 5.0.24 -java 1.4.2_04 - Red Hat Enterprise Linux 3 I have two machine dl580-1 and dl580-2 with tcp/ip and multicast enabled. this is the cluster part of server.xml. Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.1 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ /Cluster when I try to put the label distributable/ in jakarta-tomcat-5.0.24/webapps/jsp-examples/WEB-INF/web.xml I recive in the catalina.out these errors: INFO: Installing web application at context path /jsp-examples from URL file:/home/tomcat/jakarta-tomcat-5.0.24/webapps/jsp-examples May 13, 2004 12:50:11 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 21 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc h(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 23) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at
RE : 2 Tomcat instances on the same server ?
Thanks Matt and Ralph, Is there a documentation somewhere as to how to setup 2 (or more) Tomcat instances ? I've seen there were Workers on Tomcat 3.x, but cannot find more documentation for Tomcat 4.x (the Running.txt file doesn't explain much, I've created that CATALINA_BASE environment variable but cannot see any difference). Also my 1st tomcat instance is already running as an NT service, and I'd like to keep it that way. Another question : would these Tomcat instances be completely independent one from the other(s) ? I mean, could I completely restart one instance without affecting the others ? Thanks again, Alain -Message d'origine- De : Ralph Einfeldt [mailto:[EMAIL PROTECTED] Envoyé : jeudi, 13. mai 2004 14:55 À : Tomcat Users List Objet : RE: 2 Tomcat instances on the same server ? I would go for 2. As I'm not using IIS, I'm not shure if there are specific hurdles in this environment. Tomcat stand alone and tomcat behind apache are quite easy to setup with multiple instances. If all tomcate have the same versions, you just have to install tomcat once and setup two instances. -Original Message- From: Hertenstein Alain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: 2 Tomcat instances on the same server ? 2- install a 2nd Tomcat instance on the server and have that 2nd web apps running on that 2nd instance, 3- have a 2nd server installed with its own configuration. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Eri Bancaire SA ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat reboot runtime
Hi, No to both. Yoav Shapira Millennium Research Informatics -Original Message- From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: Tomcat reboot runtime Is there a way to restart tomcat from a webapplication running on tomcat? Or is there a way for canges to the server.xml of tomcat to become effective at runtime? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
Re: mod_jk.so for Fedora Core 1 x86_64
btw, I did try the i386 version without any luck. Anyone else know of any solution... -Brad - Original Message - From: Lohan Spies [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:55 AM Subject: RE: mod_jk.so for Fedora Core 1 x86_64 Sorry didn't see you were using 64 bit. Just saw tomcat and fedora! I don't know give it a bash -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:43 PM To: Tomcat Users List Subject: Re: mod_jk.so for Fedora Core 1 x86_64 Are you telling me that the i386 version will work on a 64bit processor? -Brad - Original Message - From: Lohan Spies [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:28 AM Subject: RE: mod_jk.so for Fedora Core 1 x86_64 http://apache.is.co.za/dist/jakarta/tomcat-connectors/jk2/binaries/linux/ here is the link -Original Message- From: Lohan Spies [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:28 PM To: 'Tomcat Users List' Subject: RE: mod_jk.so for Fedora Core 1 x86_64 There is an already build binary on the Jakarta.tomcat site! Just go to binaries and search around! It is a jk2 binary The package works, I installed it! -Original Message- From: Brad Hafichuk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:22 PM To: [EMAIL PROTECTED] Subject: mod_jk.so for Fedora Core 1 x86_64 I've been trying to find a mod_jk.so binary to connect Apache 2.0.48 to Tomcat 4.1.29 on my AMD64 server, which is running Fedora Core 1 x86_64. I've noticed that FreeBSD has a 64 bit version, any idea if someone is working on one for Fedora? Cheers, Brad - 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.0.24: cannot create Host with Administration Tool
On 13-05-2004 18:00, Shapira, Yoav wrote: There's more information in your logs. Look there and ask again if you still can't figure it out. What log file should I look at? I looked at the file catalina.out and didn't find anything ... Anyway, I think I've found the cause of the problem: I was running Tomcat with the file server-minimal.xml as configuration, I switched it back to the file server.xml and I can now add Hosts just fine ... Do you have any explanation for that? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.24: cannot create Host with Administration Tool
Hi, Anyway, I think I've found the cause of the problem: I was running Tomcat with the file server-minimal.xml as configuration, I switched it back to the file server.xml and I can now add Hosts just fine ... Do you have any explanation for that? Ahh, good detective work. Explanation? Something in server.xml and not in server-minimal.xml is needed to bind the Host or Realm for the admin webapp to work ;) Yoav 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]
RE: JK2 still broken even in new version 2.0.4 with upload Stream ended unexpectedly error
It could be that he has a slow connection and is unable to deliver the required data inside 60 second timeout period. The data is read in 8K blocks, so if using slow connection that might be the cause of the problem. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 13. svibanj 2004 17:39 To: [EMAIL PROTECTED] Subject: JK2 still broken even in new version 2.0.4 with upload Stream ended unexpectedly error Well, since using 2.0.4 this error has been unheard of until today. A user has been trying to upload a document and tried 4 times and constantly got the Stream ended unexpectedly error from JK2 connector. The document is Word and 140K. I have tested with other users trying to upload this item and there has not been a problem, it seems restricted to this particular user!? Does this ring any bells for anyone? MT. smime.p7s Description: S/MIME cryptographic signature
tomcat and coldfusion: sharing webapp
Hi, I am running Tomcat 5.0.24 on RH Enterprise Linux 3 with Apache web server 2.0.46 and mod_jk2 2.0.4. I've a few Tomcat/Apache name-based virtual hosts and they work fine (JSP, servlet, etc.). I would like to deploy ColdFusion MX 6.1 for J2EE on the top of Tomcat and share it for all the Apache/Tomcat virtual hosts. ColdFusion MX is deployed as a webapp (WAR): http://www.macromedia.com/support/coldfusion/j2ee/phase2-tomcat-deploy.html http://www.macromedia.com/support/coldfusion/j2ee/cfmx-mac-onjrunandtomcat.html Then it will process all files with the .cfm extension. How can I enable ColdFusion support for all virtual hosts? Can Tomcat share a webapp between multiple virtual hosts? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to connect to DB2 usning JNDI
I have the Resource within the Context and I no longer get errors when I start up TomCat...but I still get the error: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 docBase=C:/Program Files/Apache Group/Tomcat 4.1/webapps/vickie.war mapperClass=org.apache.catalina.core.StandardContextMapper path=/vickie privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Resource name=jdbc/DB2 type=javax.sql.DataSource scope=Shareable/ ResourceParams name=jdbc/DB2 parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter nameusername/name valuemyuserid/value /parameter parameter namepassword/name valuemypass/value /parameter parameter nameurl/name valuejdbc:db2:DB2/value /parameter parameter namedriverClassName/name valueCOM.ibm.db2.jdbc.app.DB2Driver/value /parameter parameter namemaxIdle/name value2/value /parameter /ResourceParams ResourceLink global=jdbc/DB2 name=DB2/ /Context I think it's not able to use the DB2Client installed on my workstation to connect. Is there anyway to verify the connection with Tomcat outside of a program? Thanks, Vickie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JProfiler vs. JProbe
From: tom ly [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:18 AM My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? I've had mediocre success with any of them. They all seem to basically do the same thing, they're all pretty darn slow, and they've never really told us much that we didn't know already. With our J2EE app, a lot of our issues turned out to be contention in the container, something none of these tools were able to narrow down, isolate, or identify (even some of the $$$ enterprise tools). I've tried these tools, yet I still have better luck with strategically placed Log4J statements, occasional thread dumps, and verbose GC chatter. Even the stock hprof is basically usable, once you get the hang of it. It's not that the tools aren't good, its just, to me, for the money, they're not a good value over things that are readily available. As a developer, you typically KNOW what's slow anyways, and a bit of logging instrumentation goes a long way. If user X clicks on button Y and it feels slow, that alone narrows down the problem. For monitoring some behaviors, try BEA JRockit, it comes with a nice memory profiler system built in. It also has a method profiler. Finally, if you're looking for production logging, none of the tools mentioned will help there at all. They're too expensive (performance wise) to run. If you have NO IDEA why you code is slow, these tools MAY help you. But in that case they overwhelm you with so much data, that it's pretty much hopeless. Wow, StringBuffer is the culprit. Yea, that's real helpful information. We only call it 8000 times throughout the app. It takes diligence and patience to tune your app, tune it one piece at a time, make sure you can duplicate your results through load testing, and make sure you only tweak one knob at a time, otherwise you may not know what made it faster/slower. Tune early, tune often. One of the things we did was we wrote our own logging JDBC layer (they are all simply interfaces, after all) which checks how long SQL queries take, and logs those that hit a specific threshold. Dumps the SQL, dumps the bind, whole ball of wax. Then we can go through that log on a regular basis to tune queries, the DB, or the code. That helped a LOT for our system. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration free persistence?
From: Shapira, Yoav [EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 6:27 AM Here's another take that's not seen often, but is intriguing: the java.util.prefs API. It uses the Registry on Windows, and the filesystem on unix, by default, but that can be changed. If you're running on Windows this is a decent approach (but then again if you're only running on windows you might make a whole set of choices based on that). No, that's very clever. I had forgotten about that API completely, and it handily solves the basic problem. I'll have to see how this works on a UNIX box (i.e. does it write to a ~/.java_prefs directory, or what). By using this API, you can plop a WAR on a server, then when the user first tries to use it, run them through a configuration wizard. Perfect. Thanx! Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JProfiler vs. JProbe
have any of you taken a look at hyades? http://www.eclipse.org/hyades/ Will Hartung wrote: From: tom ly [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 8:18 AM My team is thinking about getting a profiling tool. Does anybody have any experience with either tool? What are your thoughts about each one? I've had mediocre success with any of them. They all seem to basically do the same thing, they're all pretty darn slow, and they've never really told us much that we didn't know already. With our J2EE app, a lot of our issues turned out to be contention in the container, something none of these tools were able to narrow down, isolate, or identify (even some of the $$$ enterprise tools). I've tried these tools, yet I still have better luck with strategically placed Log4J statements, occasional thread dumps, and verbose GC chatter. Even the stock hprof is basically usable, once you get the hang of it. It's not that the tools aren't good, its just, to me, for the money, they're not a good value over things that are readily available. As a developer, you typically KNOW what's slow anyways, and a bit of logging instrumentation goes a long way. If user X clicks on button Y and it feels slow, that alone narrows down the problem. For monitoring some behaviors, try BEA JRockit, it comes with a nice memory profiler system built in. It also has a method profiler. Finally, if you're looking for production logging, none of the tools mentioned will help there at all. They're too expensive (performance wise) to run. If you have NO IDEA why you code is slow, these tools MAY help you. But in that case they overwhelm you with so much data, that it's pretty much hopeless. Wow, StringBuffer is the culprit. Yea, that's real helpful information. We only call it 8000 times throughout the app. It takes diligence and patience to tune your app, tune it one piece at a time, make sure you can duplicate your results through load testing, and make sure you only tweak one knob at a time, otherwise you may not know what made it faster/slower. Tune early, tune often. One of the things we did was we wrote our own logging JDBC layer (they are all simply interfaces, after all) which checks how long SQL queries take, and logs those that hit a specific threshold. Dumps the SQL, dumps the bind, whole ball of wax. Then we can go through that log on a regular basis to tune queries, the DB, or the code. That helped a LOT for our system. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration free persistence?
Quoting Will Hartung [EMAIL PROTECTED]: From: Shapira, Yoav [EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 6:27 AM Here's another take that's not seen often, but is intriguing: the java.util.prefs API. It uses the Registry on Windows, and the filesystem on unix, by default, but that can be changed. If you're running on Windows this is a decent approach (but then again if you're only running on windows you might make a whole set of choices based on that). No, that's very clever. I had forgotten about that API completely, and it handily solves the basic problem. I'll have to see how this works on a UNIX box (i.e. does it write to a ~/.java_prefs directory, or what). By using this API, you can plop a WAR on a server, then when the user first tries to use it, run them through a configuration wizard. You can also use Prevayler for object Prevalence... http://prevayler.codehaus.org/ If you use Prevayler in-memory only, then no configuration will be needed. Otherwise, if you want to persist across application restarts, then you will have to configure a directory to be writable. Of course, you can always use the configuration wizard to do this. Jake Perfect. Thanx! Regards, Will Hartung ([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: Tomcat reboot runtime
1. The original question was if there is some highly tomcat-specific code that enables a reboot at runtime. Spending very little time going through the source code of catalina, it seems to me that even highly tomcat-specific code does not support a reboot a runtime. 2. One solution could be to call a shell script from within the webapplication running on Tomcat, reboot Tomcat, accepting in this way that the application and tomcat will be unavailable during some reboot time. On the other hand, this could not be regarded as a good coding practice, in my opinion. 3. Another solution could be to have the application create a new process in the JVM responsible for stopping and starting the tomcat service. But then again this process could only do so by calling a script as in the solution proposed in 2, with it same consequences (seems to me I might as well be wrong). I would be very pleased with any comments on the above Rudolf Feyerkleist NB As a relative novice to Tomcat it astonishs me that the Tomcat Manager does not provide the functionnality to reboot the server at runtime (taking in account that it services become unavailable during reboot time). Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, What's running your program (in order to wait and issue a startup command) after you've done a shutdown? ;) (Unless you're talking about highly tomcat-specific code that shuts down tomcat and leaves the JVM itself running) Yoav Shapira Millennium Research Informatics - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Do log
I want do log and I try use the catalina package but i dont has succeful. I try use it: (new LoggerBase()).log(e.getMessage(), e, LoggerBase.ERROR); The e compompnent is one exception. And where it save the log files? Is on the CATALINA_HOME\logs? Tanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do log
you can use log4j, and you can have Tomcat do the same, it is just matter of configuration search a thread by me with log4j in the subject line. Filip - Original Message - From: Teixeira, Jorge (Informaker) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 4:29 PM Subject: Do log I want do log and I try use the catalina package but i dont has succeful. I try use it: (new LoggerBase()).log(e.getMessage(), e, LoggerBase.ERROR); The e compompnent is one exception. And where it save the log files? Is on the CATALINA_HOME\logs? Tanks. - 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]
Linux memory management with Tomcat question
I've got tomcat running on a Linux machine with 2000GB of RAM. The tomcat settings are JAVA_OPTS=-server -Xms1500M -Xmx1500M; therefore, when i start Tomcat, I'll see free memory drop to about 500MB - which is expected. But, when tomcat is running and especially under heavy load the free memory continues to drop while buffer and cache rises. I understand that Linux places all used memory into the buffer and cache and puts it back to free memory when needed. But I'm confused as to why free memory would be used at all since 1500MB of memory has already been allocated to Tomcat. I mean, why isn't it pulling from it's own heap instead of consuming Linux's free memory? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
RE: JK2 still broken even in new version 2.0.4 with upload Stream ended unexpectedly error
Oh, far too many bells! This problem, is hellish to diagnose properly because uploads works flawlessy for some and not for others. There isn't a clear reason why. I was one of the unlucky ones. The only solution that worked for my site was to install the JK1.2 connector instead, which worked flawlessly for all the uploads. Regards, Shane. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 May 2004 11:39 PM To: [EMAIL PROTECTED] Subject: JK2 still broken even in new version 2.0.4 with upload Stream ended unexpectedly error Well, since using 2.0.4 this error has been unheard of until today. A user has been trying to upload a document and tried 4 times and constantly got the Stream ended unexpectedly error from JK2 connector. The document is Word and 140K. I have tested with other users trying to upload this item and there has not been a problem, it seems restricted to this particular user!? Does this ring any bells for anyone? Cheers, Allistair 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]
TempDir???
Hi there, I have been reading about ways to get Tomcat to write to a file. Basically I need to write a file, that only needs to be available while tomcat is running. It is used by a background process to dynamically configure itself, depending on what configuration tomcat is running on at that time. When tomcat shuts down it will delete this file, thus indicating to the background process to shut down also. My problem is, that in Linux I cannot just write to the /tmp directory. Is the javax.servlet.context.tempdir attribute set to a defualt of some kind or do I have to set it myself. If it is set to a default, how do I access it getServletContext().getAttributr(javax.servlet.context.tempdir) returns null. If I ahve to set it, what permission to I have to give the directory it is to be? Thanks in advance Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat reboot runtime
: [snip: discussion re: ways to restart Tomcat, preferably : through Tomcat itself] Option #4: a listener that exists outside the Tomcat process, which calls the container start/stop scripts on command. I'm whipping up a prototype now: it's a basic socket listener that stores the path to the Tomcat script and calls it when a certain command is sent to the port. I'll have a link tomorrow... : NB As a relative novice to Tomcat it astonishs me that the Tomcat Manager does not provide the functionnality to reboot the server at runtime (taking in account that it services become unavailable during reboot time). It's *possible*, certainly. The source code's available for anyone to work it out and submit patches back to the Apache group. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linux memory management with Tomcat question
ok, so your server has 2GB of ram or 2000Mb. the memory usage may increase for several reasons, the primary one is there's a slow leak in one of your applications. This may be as simple as several objects referencing each other. If they happen to result in circular references, the garbage collector may not reclaim the heap memory if the server is under moderate load. Eventually the VM would garbage those objects, but for the short term it would look just like a leak. Another possible cause is if the sessions are set to never expire or expire in a very long time, like 1 day or greater. In general, I profile my webapps and use JMeter to simulate load. I strive for flat memory usage under constant load. A simple thing like clearing all the arrays or nulling references in a object structure will insure the heap is garbage ASAP instead of several minutes. Say I make an object model for some data that has a hierarchical structure. Once I'm done with translating the data into HTML, I clear that object structure to make sure the heap is garbaged efficiently. I hope that helps. peter --- tom ly [EMAIL PROTECTED] wrote: I've got tomcat running on a Linux machine with 2000GB of RAM. The tomcat settings are JAVA_OPTS=-server -Xms1500M -Xmx1500M; therefore, when i start Tomcat, I'll see free memory drop to about 500MB - which is expected. But, when tomcat is running and especially under heavy load the free memory continues to drop while buffer and cache rises. I understand that Linux places all used memory into the buffer and cache and puts it back to free memory when needed. But I'm confused as to why free memory would be used at all since 1500MB of memory has already been allocated to Tomcat. I mean, why isn't it pulling from it's own heap instead of consuming Linux's free memory? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linux memory management with Tomcat question
Thanks for the reply Peter. Which OS are you using? Peter Lin [EMAIL PROTECTED] wrote: ok, so your server has 2GB of ram or 2000Mb. the memory usage may increase for several reasons, the primary one is there's a slow leak in one of your applications. This may be as simple as several objects referencing each other. If they happen to result in circular references, the garbage collector may not reclaim the heap memory if the server is under moderate load. Eventually the VM would garbage those objects, but for the short term it would look just like a leak. Another possible cause is if the sessions are set to never expire or expire in a very long time, like 1 day or greater. In general, I profile my webapps and use JMeter to simulate load. I strive for flat memory usage under constant load. A simple thing like clearing all the arrays or nulling references in a object structure will insure the heap is garbage ASAP instead of several minutes. Say I make an object model for some data that has a hierarchical structure. Once I'm done with translating the data into HTML, I clear that object structure to make sure the heap is garbaged efficiently. I hope that helps. peter --- tom ly wrote: I've got tomcat running on a Linux machine with 2000GB of RAM. The tomcat settings are JAVA_OPTS=-server -Xms1500M -Xmx1500M; therefore, when i start Tomcat, I'll see free memory drop to about 500MB - which is expected. But, when tomcat is running and especially under heavy load the free memory continues to drop while buffer and cache rises. I understand that Linux places all used memory into the buffer and cache and puts it back to free memory when needed. But I'm confused as to why free memory would be used at all since 1500MB of memory has already been allocated to Tomcat. I mean, why isn't it pulling from it's own heap instead of consuming Linux's free memory? - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2'
RE: TempDir???
Forgot that, worked out the problem, all sorted Steve -Original Message- From: Steve Vanspall [mailto:[EMAIL PROTECTED] Sent: Friday, 14 May 2004 11:54 AM To: Tomcat Users List Subject: TempDir??? Hi there, I have been reading about ways to get Tomcat to write to a file. Basically I need to write a file, that only needs to be available while tomcat is running. It is used by a background process to dynamically configure itself, depending on what configuration tomcat is running on at that time. When tomcat shuts down it will delete this file, thus indicating to the background process to shut down also. My problem is, that in Linux I cannot just write to the /tmp directory. Is the javax.servlet.context.tempdir attribute set to a defualt of some kind or do I have to set it myself. If it is set to a default, how do I access it getServletContext().getAttributr(javax.servlet.context.tempdir) returns null. If I ahve to set it, what permission to I have to give the directory it is to be? Thanks in advance Steve - 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]