re: deploy WAR to / - [using 5.5.4]
If you have successfully deployed a ROOT.war to TC 5.5.4 please shout now, with your platform, JDK and any extra config you may have changed. Thanks Euan -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: 18 April 2005 16:35 To: 'Tomcat Users List' Subject: RE: deploy WAR to / I am getting the same problem, also with 5.5.4 + Compat, RH9, J2SDK142. - I am building the WAR with ANT, scp'ing to to an empty /webapps and restarting Tomcat. - If I copy the ROOT.war to BLAH.war it will expand fine as BLAH, even root.war to root, just not ROOT.war to ROOT. Thanks Euan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 April 2005 02:06 To: Tomcat Users List Subject: Re: deploy WAR to / Hi, 16Apr2005 @ 14:11 Drew Jorgenson thusly spake I am trying to deploy a war file to tomcat 5.5.4 and naming the war file ROOT.war and for some reason it is not getting deployed to / of the virtual host that it's being deployed on. Any suggestions? It'd certainly help if you'd post exactly what you've done and how. The usual way to undertake this is to use ant to build your war file and copy it to the webapps directory where tomcat deploys it. Take a look at the ant manual: http://www.google.com.au/search?hl=enq=ant+manualbtnG=Google+Searchmeta= hth, kind regards, Luke -- ._ :| .| |.|/.|_ :|__.|_|.|\.|_ :0421 276 282. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deploy WAR to /
I am getting the same problem, also with 5.5.4 + Compat, RH9, J2SDK142. - I am building the WAR with ANT, scp'ing to to an empty /webapps and restarting Tomcat. - If I copy the ROOT.war to BLAH.war it will expand fine as BLAH, even root.war to root, just not ROOT.war to ROOT. Thanks Euan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 April 2005 02:06 To: Tomcat Users List Subject: Re: deploy WAR to / Hi, 16Apr2005 @ 14:11 Drew Jorgenson thusly spake I am trying to deploy a war file to tomcat 5.5.4 and naming the war file ROOT.war and for some reason it is not getting deployed to / of the virtual host that it's being deployed on. Any suggestions? It'd certainly help if you'd post exactly what you've done and how. The usual way to undertake this is to use ant to build your war file and copy it to the webapps directory where tomcat deploys it. Take a look at the ant manual: http://www.google.com.au/search?hl=enq=ant+manualbtnG=Google+Searchmeta= hth, kind regards, Luke -- ._ :| .| |.|/.|_ :|__.|_|.|\.|_ :0421 276 282. - 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]
WebApp config best practice
Where is the best practice for deploying your WebApp configuration files? For example a database config file which contains production db password. Most apps I have seen use WEB-INf/config or WEB-INF/classes - but this is a no-no from security guys as it is under the document root. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use of $CATALINA_HOME inside webapp
I tested using $CATALINA_HOME instead of an absolute path in a property file in a webapp. This did not work - the log the app was supposed to create to was never created. An absolute path works. Is this expected behaviour? TC4.1.24 ../webapps/myapp/WEB-INF/classes/myapp.properties: log1=$CATALINA_HOME/logs/myapp.log Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: use of $CATALINA_HOME inside webapp
Thanks, that works - but I don't understand why. What was wrong with using an environment variable? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 07 June 2004 11:55 To: Tomcat Users List Subject: Re: use of $CATALINA_HOME inside webapp You need to use ${catalina.home} (if your properties file gets expanded.) -Tim Euan Guttridge wrote: I tested using $CATALINA_HOME instead of an absolute path in a property file in a webapp. This did not work - the log the app was supposed to create to was never created. An absolute path works. Is this expected behaviour? TC4.1.24 ../webapps/myapp/WEB-INF/classes/myapp.properties: log1=$CATALINA_HOME/logs/myapp.log - 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]
is /work portable?
If you deploy the same webapp on four servers, use (and compile jsps) of the webapp on one server, is it possible to simply copy across the compiled /work dir to the other three servers? I have briefly tested the theory and it seemed to work. Does anyone have any practical experience doing this? Tomcat-4.1.24-LE, RH9 (ld_assume_kernel 241), JDK 141_03 Thanks Euan
RE: Tomcat silent freeze
Hi, Sounds like bug with NTPL in RH9, see this thread http://www.mail-archive.com/[EMAIL PROTECTED]/msg106581.html. Thanks Euan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 20:01 To: [EMAIL PROTECTED] Subject: Tomcat silent freeze Hello people, we have Tomcat 4.1.24 installed on a Red Hat 9.0 box with the followings charateristics: CPU: AMD Duron 800Mhz. RAM: 512Mb We have 3 WARs installed on this machine running apparently well, but after some time (apparently random), application server silently stops responding (doesn't send page to client broswer), but the tcp port (80) is still open in LISTEN status and owned by the tomcat system process. Tomcat continues running and no error messages appear in Tomcat nor system logs. The client remains waiting until browser timeout is reached. Any ideas? Plese let me know if you need further information... Thanks in advance, Nicolas Orbes [EMAIL PROTECTED] TLG - NOrbes (598 2) 628 84 09 Banderas en tu corazón, yo quiero verlas! ondeando, luzca el sol o no... - 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: jsp cache issue
So considering TC is writing these temp files to whereever it is started from and *not* the /work directory should I log this as a bug? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 14:59 To: Tomcat Users List Subject: Re: jsp cache issue Tim, Actually[without more digging] - I thought tomcat should be writing to $CATALINA_HOME/work Yeah, that's what I thought it was there for. If it doesn't write to the work dir, it should at least write to the tmpdir or whatever that thing is. -chris - 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: jsp cache issue
Nothing found in bugzilla. Logged as new bug. Thanks Euan -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 24 November 2003 16:59 To: Tomcat Users List Subject: Re: jsp cache issue Look at bugzilla (use ant in the description), it might be an ANT config related issue. I remember something about files being written to weird places and it was due to ant. -Tim Euan Guttridge wrote: So considering TC is writing these temp files to whereever it is started from and *not* the /work directory should I log this as a bug? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 14:59 To: Tomcat Users List Subject: Re: jsp cache issue Tim, Actually[without more digging] - I thought tomcat should be writing to $CATALINA_HOME/work Yeah, that's what I thought it was there for. If it doesn't write to the work dir, it should at least write to the tmpdir or whatever that thing is. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsp cache issue
Yes, that's the one. Marked mine as duplicate. Thanks Euan Christopher Schultz wrote: Tim, Is it similar to: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18485 This seems to indicate that Tomcat uses ant internally to compile (translated) JSP files. Is this accurate? -chris - 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]
jsp cache issue
Hi, I have noticed that TC creates a temp file (example name = files02123412) when compiling jsps. It will only exist for a few seconds, presumably while the compilation takes place, then is deleted. Here is the annoying part - they are created in the directory from which you started tomcat - so if you start TC from a dir which TC does not have write permissions to the jsp will never compile. This temp file will simply contain ascii text for example : /usr/local/tomcat/work/Standalone/localhost/_/jsp/diagnostics/diagpage_jsp. java Is this behaviour by design? Thanks Euan TC4.1.27, RH9 (LD_ASSUME_KERNAL=2.4.1) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: jasper2 issues - client deployer
Hi, I am attempting to get the 'compile' task of the client deployer package working. Can anyone assist with these jasper task issues please? (additions to previous mail). I am using the std build.xml shipped with the 5.0.14 client deployer package. jasper missing files The jasper2 task to convert my jsp into java only converts 250 out of 1000 jsps. generated-web.xml is 0 bytes I get java.util.zip.ZipException: error in opening zip file on jasper-compile.jar even though I have tvf'd, even re-jarred. Same error using nightly build 10/11/2003, 04/11/2003 5.0.14. The deployer ant script does however read the classes inside ok. jasper creating .java files 'test_1.jsp' as 'test_005f_1_jsp.java' Thanks, Euan -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: 10 November 2003 17:58 To: '[EMAIL PROTECTED]' Subject: jasper2 issues - client deployer issue # 1 - jasper-compile.jar I get java.util.zip.ZipException: error in opening zip file on jasper-compile.jar even though I have tvf'd, even re-jarred. Same error using nightly build 10/11/2003, 04/11/2003 5.0.14. The deployer ant script does however read the classes inside ok. Issue # 2 - jasper missing files The jasper2 task to turn my .jsp's into *_jsp.java's ignores 750/1000 jsps. There does not seem to be any rhyme nor reason to the ones it does / does not ignore. Thanks Euan - 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]
jasper2 issues - client deployer
issue # 1 - jasper-compile.jar I get java.util.zip.ZipException: error in opening zip file on jasper-compile.jar even though I have tvf'd, even re-jarred. Same error using nightly build 10/11/2003, 04/11/2003 5.0.14. The deployer ant script does however read the classes inside ok. Issue # 2 - jasper missing files The jasper2 task to turn my .jsp's into *_jsp.java's ignores 750/1000 jsps. There does not seem to be any rhyme nor reason to the ones it does / does not ignore. Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat caching jsp to working directory (not /work)
When I start tomcat as root using /etc/init.d/tomcat start, which in turn starts $CATALINA_HOME/bin/startup.sh as tomcat, tomcat attempts to cache all jsps to the directory from which I ran /etc/init.d/tomcat start.. I can force jsps to cache to $CATALINA_HOME/work/... by setting SCRATCHDIR in $CATALINA_HOME/conf/web.xml but this is a workaround not a resolution. Any ideas? Thanks Euan _ From : /etc/init.d/tomcat #!/bin/bash # # chkconfig: # description: Startup script for Tomcat # Source function lib . /etc/init.d/functions RETVAL=$? case $1 in start) if [ -f $CATALINA_HOME/bin/startup.sh ]; then echo $Starting Tomcat /bin/su tomcat $CATALINA_HOME/bin/startup.sh fi ;; stop) if [ -f $CATALINA_HOME/bin/shutdown.sh ]; then echo $Stopping Tomcat /bin/su tomcat $CATALINA_HOME/bin/shutdown.sh fi ;; *) echo $Usage: $0 {start|stop} exit 1 ;; esac exit $RETVAL __ From : $CATALINA_HOME/bin/startup.sh #!/bin/sh # - # Start Script for the CATALINA Server # # $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $ # - # resolve links - $0 may be a softlink PRG=$0 while [ -h $PRG ] ; do ls=`ls -ld $PRG` link=`expr $ls : '.*- \(.*\)$'` if expr $link : '.*/.*' /dev/null; then PRG=$link else PRG=`dirname $PRG`/$link fi done PRGDIR=`dirname $PRG` EXECUTABLE=catalina.sh # Check that target executable exists if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE echo This file is needed to run this program exit 1 fi exec $PRGDIR/$EXECUTABLE start $@ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat jitters, then hangs - please help
Nice, and at least you got the speed to post issue sorted.. -Original Message- From: Ryan Lissack [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 12:35 To: 'Tomcat Users List' Subject: RE: tomcat jitters, then hangs - please help Hi all, Just an update on issues we were experiencing when running Tomcat on Red Hat 9. As mentioned previously in this thread, the problem appears to be with a bug in NPTL. In order to revert to standard Linux threads you can set the LD_ASSUME_KERNEL environment variable to 2.2.5 or 2.4.1 We set LD_ASSUME_KERNEL to 2.4.1 on one of our servers one week ago and, since then, have *not* had one outage, our other machine which does not have the environment variable set has had numerous outages during the period. We can confirm that this does appear to resolve the issue. I believe Noam Camiel found that setting LD_ASSUME_KERNEL to 2.2.5 also works. I would like to say a special thank you to Remy for all his help during this period. Best regards, Ryan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 14:07 To: Tomcat Users List Subject: RE: tomcat jitters, then hangs - please help Howdy, Cool, please keep us updated ;) I want these linux questions better documented in the list archives ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Noam Camiel [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 6:37 AM To: Euan Guttridge; Tomcat Users List Subject: Re: tomcat jitters, then hangs - please help Hi Euan Please note the server is now up for 48 hours strait. The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5 I will update again in another 48 hours or if the server hangs, whichever comes first. Regards, Noam - Original Message - From: Euan Guttridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 9:42 AM Subject: FW: tomcat jitters, then hangs - please help Hi Noam, I work with Ryan on tomcat issues. I would be grateful if you would let me know if your tomcat installation is *still* up (another 24 hours) since the NPTL change as below. Regards, Euan -Original Message- From: Noam Camiel [mailto:[EMAIL PROTECTED] Sent: 14 October 2003 14:46 To: Tomcat Users List Subject: Re: tomcat jitters, then hangs - please help Hi, On Friday, October 10, 2003 11:09 AM Ryan Lissack [EMAIL PROTECTED] wrote: Remy pointed out to me previously that RH9 uses a new form of threading and based on this we have done some investigation. RH9 uses NTPL (Native POSIX Thread Library) http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release- notes/x86/ It is possible to revert to the older form of threading, LinuxThreads, by setting an environment variable, namely: LD_ASSUME_KERNEL=kernel-version - 2.4.1 - Linuxthreads with floating stacks - 2.2.5 - Linuxthreads without floating stacks This does not revert back to an older kernel, it just changes the GNU C library used http://www-106.ibm.com/developerworks/java/library/j-jtc/ We will be testing with these settings starting today and, if we continue to have problems, we will be trying another distro. setting the LD_ASSUME_KERNEL variable, the server is now running over 24 hours strait. Still, nothing conclusive as of yet.. Ryan, thanks for the information above. Do you have move information regarding this configuration? do you still encounter problems? On Monday, October 13, 2003 9:59 PM Joe Zendle [EMAIL PROTECTED] wrote: We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9. The thing wouldn't work for more than about 12 hours. IMHO, there are some fundamental problems with tomcat as of late. Hate to say it but we solved the problem by throwing away tomcat and using jetty! We are very pleased so far. Jetty is very fast and about 1/3 the memory footprint. Good luck. Hi Joe, Thanks for sharing the info, I am considering what you suggest as well. As a last try before moving away from Tomcat, I'm trying out the suggestion from Ryan above. Regards, Noam. - 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] 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
RE: tomcat caching jsp to working directory (not /work)
Essentially that is exactly what I am doing - the /etc/init.d/tomcat script just fires up $CATALINA_HOME/bin/startup.sh as tomcat user. Thanks Euan -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 17:52 To: 'Tomcat Users List' Subject: RE: tomcat caching jsp to working directory (not /work) What happens if you start tomcat using $CATALINA_HOME/bin/startup.sh instead? I think that should point tomcat to the right work directory. -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: October 24, 2003 4:57 AM To: '[EMAIL PROTECTED]' Subject: tomcat caching jsp to working directory (not /work) When I start tomcat as root using /etc/init.d/tomcat start, which in turn starts $CATALINA_HOME/bin/startup.sh as tomcat, tomcat attempts to cache all jsps to the directory from which I ran /etc/init.d/tomcat start.. I can force jsps to cache to $CATALINA_HOME/work/... by setting SCRATCHDIR in $CATALINA_HOME/conf/web.xml but this is a workaround not a resolution. Any ideas? Thanks Euan _ From : /etc/init.d/tomcat #!/bin/bash # # chkconfig: # description: Startup script for Tomcat # Source function lib . /etc/init.d/functions RETVAL=$? case $1 in start) if [ -f $CATALINA_HOME/bin/startup.sh ]; then echo $Starting Tomcat /bin/su tomcat $CATALINA_HOME/bin/startup.sh fi ;; stop) if [ -f $CATALINA_HOME/bin/shutdown.sh ]; then echo $Stopping Tomcat /bin/su tomcat $CATALINA_HOME/bin/shutdown.sh fi ;; *) echo $Usage: $0 {start|stop} exit 1 ;; esac exit $RETVAL __ From : $CATALINA_HOME/bin/startup.sh #!/bin/sh # - # Start Script for the CATALINA Server # # $Id: startup.sh,v 1.2 2002/01/15 02:55:38 patrickl Exp $ # - # resolve links - $0 may be a softlink PRG=$0 while [ -h $PRG ] ; do ls=`ls -ld $PRG` link=`expr $ls : '.*- \(.*\)$'` if expr $link : '.*/.*' /dev/null; then PRG=$link else PRG=`dirname $PRG`/$link fi done PRGDIR=`dirname $PRG` EXECUTABLE=catalina.sh # Check that target executable exists if [ ! -x $PRGDIR/$EXECUTABLE ]; then echo Cannot find $PRGDIR/$EXECUTABLE echo This file is needed to run this program exit 1 fi exec $PRGDIR/$EXECUTABLE start $@ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IBM JRE 1.4.1 dumping core on login with http/1.0 browsers
Daniel - There is a bug with RH9 glibc, see thread tomcat jitters, then hangs - pleas help for solutions. A bug in pthread_cond_wait() which could cause programs hangs in some cases https://rhn.redhat.com/errata/RHBA-2003-136.html Euan -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: 23 October 2003 21:24 To: Tomcat Users List Subject: Re: IBM JRE 1.4.1 dumping core on login with http/1.0 browsers RedHat 9 2.4.20-20.9smp Daniel Oscar Carrillo wrote: Hmmm, I was under the impression this wasn't a problem anymore. Daniel, what RH and kernel are you running? Oscar On Thu, 23 Oct 2003, Daniel Gibby wrote: Search for Java IBM LD_ASSUME_KERNEL in google. That may be your problem. Then set an environment variable in your apache and tomcat startup scripts: export LD_ASSUME_KERNEL=2.2.5 I hope that helps. It seems to have solved my crashes. Daniel Gibby George Payne wrote: I'm having problems with the IBM 1.4.1 jvm dumping core every few days under fairly light use with tomcat 4.1.27. I'm looking for general advice (though specific advice would be even better). Should I be looking for a new JVM? Or my programming bug or misconfig? This problem appears to be directly or indirectly related to the use of old browsers. Each time it has happened (twice now), the logs (below) show that it was being accessed via http/1.0, which is fairly rare in the log files. It occurs right after or right before authentication. More info: RH 8, 2.4.20-20.8smp apache 2.0/mod_ssl mod_jk 15/03 ssl_access_log snippet: 128.104.50.121 - - [15/Oct/2003:23:16:14 -0400] GET / HTTP/1.0 200 268 128.104.50.121 - - [15/Oct/2003:23:16:18 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 128.104.50.121 - - [15/Oct/2003:23:16:20 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 200 4 085 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 200 9669 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 200 13065 (***CRASH***) 128.104.50.121 - - [15/Oct/2003:23:16:42 -0400] POST /apptrack/j_security_check HTTP/1.0 500 1085 128.104.50.121 - - [15/Oct/2003:23:16:55 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 500 1 085 22/03 ssl_access_log snippet: 149.199.60.202 - - [22/Oct/2003:18:28:27 -0400] GET / HTTP/1.0 200 268 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 200 4 085 149.199.60.203 - - [22/Oct/2003:18:28:29 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 304 0 149.199.60.202 - - [22/Oct/2003:18:28:30 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 304 0 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] POST /apptrack/j_security_check HTTP/1.0 302 0 (***CRASH***) 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 500 1085 149.199.60.203 - - [22/Oct/2003:18:28:50 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 500 1 085 Sections of core dump file* NULL 0SECTION TITLE subcomponent dump routine NULL === 1TISIGINFO signal 11 received 1TIDATETIMEDate: 2003/10/22 at 18:28:45 1TIFILENAMEJavacore filename: /home/tomcat/javacore.20031022.182845.3741.txt NULL 0SECTION XHPI subcomponent dump routine NULL == 1HPTIMEWed Oct 22 18:28:45 2003 1HPSIGRECV SIGSEGV received in ?? at 0x41c55e85 in /opt/IBMJava2-141/jre/bin/libjitc.so. Processing terminated. 1HPFULLVERSION J2RE 1.4.1 IBM build cxia32141-20030522 NULL 1HPOPENV Operating Environment NULL - 2HPHOSTNAMEHost : law5.(none) 2HPOSLEVEL OS Level : 2.4.20-20.8smp.#1 SMP Mon Aug 18 14:39:22 EDT 2003 2HPLIBCVER glibc Version: 2.3.2 2HPCPUSProcessors - 3HPARCH Architecture : (not implemented) 3HPNUMCPUS How Many : (not implemented) 3HPCPUSENABLED Enabled : 4 **snip ** 1XMEXCPINFOException Info NULL -- 2XMEXCPINFOJVM Exception 0x2 (subcode 0x0) occurred in thread Ajp13Processor[8009][7] (TID:0x10068790) NULL 2XMNATIVESTACK Native stack at exception generation: 3XMSTACKINFO Program Name Entry Name Statement ID 3XMSTACKINFO NULL NULL NULL 1XMTHDINFO Thread Info NULL --- NULL 2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.1 IBM build
RE: tomcat jitters, then hangs - please help
Excellent news Noam.. Our testing (LD_ASSUME_KERNEL=2.4.1) is in progress but too early to confirm anything. Another option is to stick with the NTPL, using an updated glibc. Check out RH errata ; A bug in pthread_cond_wait() which could cause programs hangs in some cases https://rhn.redhat.com/errata/RHBA-2003-136.html If anyone tests this please drop the list a mail.. Cheers Euan -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 20 October 2003 14:32 To: Tomcat Users List Subject: Re: tomcat jitters, then hangs - please help Noam Camiel wrote: Hi folks, A week's gone by and all seems fine. Server is stable and working properly. Thanks for all who helped out! Ryan, Remi Yoav and Arthur, many thanks. It may be a good idea to document this for others who may stumble over this problem. All the best Noam Camiel Details: Problem: Tomcat Server becomes unresponsive to new requests after several hours, regardless of load. OS RH9; Tomcat 4 or 5; VM Sun or IBM (JDK 1.4) Solve: (tcsh): setenv LD_ASSUME_KERNEL 2.2.5 Thanks :) Very good news :) I think I'll need to add that in the release notes (and putting it in the FAQ would be good as well). Very weird symptoms, though. The only explanation for the bug is if the thread waiting on the socket just vanishes (there's no way it can go out of the blocking accept loop otherwise - I reviewed that quite extensively ;-)). Q: would the assume kernel 2.4 work as well ? I believe it would, but it could be worth confirming it eventually. This is not critical, obviously. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - 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: SESSION REPLICATION: RedHat 9 and Sun JDK 1.4.2 do not like t o play
Hi Neil, We used IBM 141 JDK on RH9 and experienced regular signal 11 core dumps. The SUN JDK did not cause these dumps. Perhaps you are using a later release of the IBM 141 dist (141_01 etc..)? Thanks, Euan -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: 16 October 2003 18:58 To: 'Tomcat-User' Cc: Jeff Patterson; 'Filip Hanik' Subject: Re: SESSION REPLICATION: RedHat 9 and Sun JDK 1.4.2 do not like to play Euan: FYI regarding using IBM JDK on RH9 - we also experienced core dumps and had to roll back to SUN.. The RH9 release notes state that the IBM JDK has 'problems' with RH9 'NPTL' which is on by default but can easily be *turned off*.. What version of the IBM JDK have you been using? According to this page: http://www-106.ibm.com/developerworks/java/jdk/other/portingplans.html They state: On Linux for Intel 32-bit platforms, the current 1.4.1 Java SDK works with the new NPTL threading library when run on the Red Hat 9 distribution. However, this function is provided as early access and is not supported for production use. The latest JDK seems to be working on RH9 on our servers. Thanks, Neil -- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com - 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: SESSION REPLICATION: RedHat 9 and Sun JDK 1.4.2 do not like t o play
FYI regarding using IBM JDK on RH9 - we also experienced core dumps and had to roll back to SUN.. The RH9 release notes state that the IBM JDK has 'problems' with RH9 'NPTL' which is on by default but can easily be *turned off*.. http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release-notes/x86/ - search for NPTL Thanks Euan -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: 16 October 2003 03:04 To: Tomcat-User Cc: Tomcat-Dev Subject: SESSION REPLICATION: RedHat 9 and Sun JDK 1.4.2 do not like to play Importance: High All, I have an announcement to make since myself and some colleagues found during some serious debugging on why session replication failed miserably on their systems. When running session replication for Tomcat 4.1.24 (http://cvs.apache.org/~fhanik/) on Redhat 9 using Sun JDK 1.4.2 nothing works for me at home during my regression testing. As soon as I switch to IBM JDK 1.4.1 everything goes back to normal. The problem is that with the Sun JDK the Socket.getOutputStream().write() hangs and locks forever. I will add this to the Cluster FAQ for Tomcat 5. If you have any questions Important Note: Although I switched to IBM JDK 1.4.1 I did experience one core dump with the JDK, so at this point, I would not recommend anyone using RedHat 9 when running tomcat and session replication. For those of you who have tried other platforms,versions OS:s, let us know your experience Filip - 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: OT How to maintain a version number
Easy if you build with ANT - but very OT! Use the increment task to increment a property file, then a filterset to place that version number into a JSP/HTML. For more info email me direct or post to ANT mailing list. Euan -Original Message- From: Koes, Derrick [mailto:[EMAIL PROTECTED] Sent: 10 October 2003 13:22 To: 'Tomcat Users List' Subject: RE: OT How to maintain a version number Property file? -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 8:17 AM To: Tomcat Users List Subject: OT How to maintain a version number I've written an application where I need to keep up with the version number. I'm trying to figure out an elegant way to maintain that in the simplest and perhaps the most automated way. My source is kept in a cvs archive but of course there are dozens of files so it would be difficult to base a version number on the version number of a single source or would it? The number would be displayed as part of the title(TITLE My App 0.92/TITLE) in the index.jsp so it would have to be easily available to that file. I suppose I could use JNDI, I could hardwire it into the index.jsp file, but I probably want to put it into other .jsp files also and it would be harder to keep up with that way. Anyway I'm looking for good ideas from this very enlightened crowd. Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. - 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: Setting variables.
Why do you want to set the classpath? If for tomcat then as previous post - tomcat doesn't use the classpath, neither for itself nor for the webapps within it. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -Original Message- From: anunay ashish [mailto:[EMAIL PROTECTED] Sent: 10 October 2003 12:14 To: Tomcat Users List Subject: Setting variables. When we set CLASSPATH variable in windows XP, where should we set it - 1. In user variables for administrator or 2. System variables - 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: Catalina.stop: java.net.ConnectException: Connection refused
Possibly Tomcat or something else is already running on your TC port, therefore TC cannot start. Run a simple ps -ef | grep java and kill all TC processes, restart TC. -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 10:43 To: [EMAIL PROTECTED] Subject: Re: Catalina.stop: java.net.ConnectException: Connection refused Anyone? It's quite urgent and I'm stuck now... On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED] said: Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: 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:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) 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.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) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: article on tomcat performance
Seconded, otherwise please include me in review distribution. -Original Message- From: srinath narasimhan [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 18:47 To: Tomcat Users List Subject: RE: article on tomcat performance Please post it to the list with a link or how to get it. Thanks. -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:57 To: Tomcat Users List Subject: Re: article on tomcat performance Also, YES At 08:59 AM 9/17/2003 +0200, you wrote: YES - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 5:17 AM Subject: article on tomcat performance It looks like the tomcat performance book probably won't happen, so I am writing a short article based on some of the benchmark results. I should have a draft done in a week. Anyone interested in reviewing it? peter lin - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'
Still waiting for some confirmation from Remy Maucherat. He was talking about the client deployer package, however I cannot find it... Neither can I.. Thanks -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: 15 September 2003 16:07 To: [EMAIL PROTECTED] Subject: Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null' It could be related, but I'm not sure. I think the problem lies in the way the application gets deployed with this ant build file. Probably the docbase doesn't match (however that's just a wild guess) Still waiting for some confirmation from Remy Maucherat. He was talking about the client deployer package, however I cannot find it... Ilja _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - 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: Upgrading Tomcat to 4.1.27
Is it considered safe to also move the /work directory from your 24 installation to the 27 installation in order to retain your jsp cache? Thanks -Original Message- From: Tarun Gandhi [mailto:[EMAIL PROTECTED] Sent: 26 August 2003 15:17 To: Tomcat Users List Subject: Re: Upgrading Tomcat to 4.1.27 Hi, You can take the backup of your existing directory and install the 4.1.27 version . After installing you can move your webapps, modjk conf, libs etc from the earlier version to this one. Tarun - Original Message - From: Bond [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 7:27 PM Subject: Upgrading Tomcat to 4.1.27 Hello Everyone, I have a question, I want to upgrade our current Tomcat instalation 4.1.14 to the newer 4.1.27. However I can't find any How Tos on this topic. Do I just install the new version on top of my old one or is it a new install??? Not sure how to proceed, any advice would be appreciated. Thanks in advance, Miguel __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thread dump - (basic)
What is the best method to get a stack dump following a frozen tomcat? I cannot use kill -QUIT (pid) since running in production and do not want to run TC in the foreground. Thanks, Euan J2DSK_1.4.1_03 TC 4.1.24 (Standalone, Coyote connector) Linux RH9. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat stops serving jsp under load
Tomcat slows then eventually stops serving jsps under load (100+ concurrent users), html is always fine. The behaviour is sporadic and not easily reproducable but only occurs under load. Standalone (Coyote) 1.1.24, J2SDK1.4.1_03, Linux RH9. Anyone else experiencing this? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log rotation clarification
Tomcat automatically rotates localhost_log_x and localhost_access_log_x, but not catalina.out. From searching the archives you need to use a cron to rotate catalina. 1 - Is this correct 2 - Where is the rotation for localhost_x configured? 3 - Will this change in TC5? Thanks, Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
manager reload vs tomcat restart
If I use the manager http command to reload my app, it looses the DB connection. If I use /bin/shutdown and startup scripts it is fine. I am on tomcat 1.1.24, linux rh 9, oracle 9.2 thick client. Thanks, Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
useURIValidationHack
What is the connector param useURIValidationHack? I cannot find in documentation. Also can anyone point me to a description of diffs between the old http connector and the coyote connector please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ClassNotFoundException
Check if your MySql driver requires an LD_LIBRARY_PATH addition (and is accessible to the tomcat shell). We had the same error and issue with Oracle thick client and tomcat on Linux. -Original Message- From: Guus Holshuijsen [mailto:[EMAIL PROTECTED] Sent: 16 June 2003 14:06 To: [EMAIL PROTECTED] Subject: ClassNotFoundException Hi! I checked the mailing archive and found some mail but never any answers. Here goes I use the following software: + Tomcat 4.1.24 or Tomcat 4.0.6 + mysql-connector-java-3.0.8-stable-bin.jar (in the + $CATALINE_HOME/common/lib) MySQL database server 3.23.51 my own web + application below $CATALINE_HOME/webapps The web application I created writes a blob to the MySQL database (there is no problem here). When the web application tries to read the blob from the database a ClassNotFoundException is thrown in the com.mysql.jdbc.ResultSet.getObject method while wading the object input stream. I tried different versions of the mysql driver software (org.gjt.mm.mysql package) I tried different versions of Tomcat I tried what Sriram Narayanan writes in his message of 21 feb 2002 (put the mysql jar not only in the $CATALINE/common/lib directory but also in the $CATALINA_HOME/webapps/webapp name/WEB-INF/classes/lib directory) . I tried using the Tomcat DataSource resources . All to no avail! Is there anybody who has any ideas ...? Regards, Guus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
security constraint web.xml
The security constraint I am adding is screwing up my web.xml. After adding the contraint tomcat cannot find my taglibs. Any ideas? (web.xml below) Thanks, Euan ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- General description of your web application -- display-nameTestOnline/display-name description Build of Test /description context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value description The EMAIL address of the administrator to whom questions and comments about this application should be addressed. /description /context-param security-constraint web-resource-collection web-resource-nametest1/web-resource-name url-pattern/jsp/admin/test1/*/url-pattern /web-resource-collection auth-constraint role-nametest1-user/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nametest2/web-resource-name url-pattern/jsp/admin/test2/*/url-pattern /web-resource-collection auth-constraint role-nametest2-user/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nametest1/realm-name realm-nametest2/realm-name /login-config servlet servlet-nameUser/servlet-name servlet-classcom.test.user.UserServlet/servlet-class /servlet servlet-mapping servlet-nameUser/servlet-name url-pattern/ProjectsOnline/url-pattern /servlet-mapping session-config session-timeout30/session-timeout !-- 30 minutes -- /session-config taglib taglib-uri/archtaglib/taglib-uri taglib-location/WEB-INF/lib/archtaglib.jar/taglib-location /taglib taglib taglib-uri/distributiontaglib/taglib-uri taglib-location/WEB-INF/lib/distributiontaglib.jar/taglib-location /taglib taglib taglib-uri/formstaglib/taglib-uri taglib-location/WEB-INF/lib/formstaglib.jar/taglib-location /taglib taglib taglib-uri/localtaglib/taglib-uri taglib-location/WEB-INF/lib/localtaglib.jar/taglib-location /taglib taglib taglib-uri/navigationtaglib/taglib-uri taglib-location/WEB-INF/lib/navigationtaglib.jar/taglib-location /taglib taglib taglib-uri/summarytaglib/taglib-uri taglib-location/WEB-INF/lib/summarytaglib.jar/taglib-location /taglib /web-app Euan Guttridge Technical Operations BuildOnline 40 Holborn Viaduct London EC1N 2PB UK Customer Services: 0870 241 2283 Telephone: +44 (0)20 7836 2883 Fax: +44 (0)20 7836 2886 www.BuildOnline.com 'Save Time, BuildOnline' This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify BuildOnline: Tel: +44 (0)20 7836 2883 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security constraint web.xml
Thanks John - solved. -Original Message- From: John Rishea [mailto:[EMAIL PROTECTED] Sent: 14 June 2003 16:46 To: Tomcat Users List Subject: RE: security constraint web.xml Euan, If you look at the DTD 2.3 specs, the security constraint and login-confi entries have to be placed after the taglib entries. It's very picky about tags being in the correct order. Hope that helps. __ John Rishea Avaya, Inc. (303) 538-4503 -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 9:41 AM To: '[EMAIL PROTECTED]' Subject: security constraint web.xml The security constraint I am adding is screwing up my web.xml. After adding the contraint tomcat cannot find my taglibs. Any ideas? (web.xml below) Thanks, Euan ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- General description of your web application -- display-nameTestOnline/display-name description Build of Test /description context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value description The EMAIL address of the administrator to whom questions and comments about this application should be addressed. /description /context-param security-constraint web-resource-collection web-resource-nametest1/web-resource-name url-pattern/jsp/admin/test1/*/url-pattern /web-resource-collection auth-constraint role-nametest1-user/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nametest2/web-resource-name url-pattern/jsp/admin/test2/*/url-pattern /web-resource-collection auth-constraint role-nametest2-user/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nametest1/realm-name realm-nametest2/realm-name /login-config servlet servlet-nameUser/servlet-name servlet-classcom.test.user.UserServlet/servlet-class /servlet servlet-mapping servlet-nameUser/servlet-name url-pattern/ProjectsOnline/url-pattern /servlet-mapping session-config session-timeout30/session-timeout !-- 30 minutes -- /session-config taglib taglib-uri/archtaglib/taglib-uri taglib-location/WEB-INF/lib/archtaglib.jar/taglib-location /taglib taglib taglib-uri/distributiontaglib/taglib-uri taglib-location/WEB-INF/lib/distributiontaglib.jar/taglib-location /taglib taglib taglib-uri/formstaglib/taglib-uri taglib-location/WEB-INF/lib/formstaglib.jar/taglib-location /taglib taglib taglib-uri/localtaglib/taglib-uri taglib-location/WEB-INF/lib/localtaglib.jar/taglib-location /taglib taglib taglib-uri/navigationtaglib/taglib-uri taglib-location/WEB-INF/lib/navigationtaglib.jar/taglib-location /taglib taglib taglib-uri/summarytaglib/taglib-uri taglib-location/WEB-INF/lib/summarytaglib.jar/taglib-location /taglib /web-app Euan Guttridge Technical Operations BuildOnline 40 Holborn Viaduct London EC1N 2PB UK Customer Services: 0870 241 2283 Telephone: +44 (0)20 7836 2883 Fax: +44 (0)20 7836 2886 www.BuildOnline.com 'Save Time, BuildOnline' This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify BuildOnline: Tel: +44 (0)20 7836 2883 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 - validation and compilation
In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 - validation and compilation
Thanks Tim and Yoav. Is there a release date for a 5.0 stable release? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 June 2003 14:47 To: Tomcat Users List Subject: RE: Tomcat 5 - validation and compilation Howdy, It's still a work in progress. You can look at the CVS HEAD for tomcat 5 if you'd like. The main deployer implementation is pretty much done, the standalone deployer with validation is not 100% done yet. The documentation for either is not 100% done yet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Euan Guttridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:48 AM To: '[EMAIL PROTECTED]' Subject: Tomcat 5 - validation and compilation In the Tomcat home page under Tomcat 5.x, Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production - Can someone point me to the documentation about this please? Thanks Euan - 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]
lag when restarting tomcat
If I bounce tomcat via the /bin/shutdown.sh /bin/startup.sh scripts it takes at least 20 seconds until it responds again. This is still after my war has been unpacked and jsps compiled.. Any suggestions please? Running standalone, on linux 2*700mhz, 1GB. One application 30mb. Thanks Euan
RE: precompiled jsp's as a part of application war file
Tomcat documentation advises pre-compilation is used only to test all your jsps compile ok. Not to deploy pre-compiled jsps but instead to use something like httpunit, or a webload script to automatically call your jsps to be compiled by tomcat. However the Jasper documentation states to go ahead to use Ant's jspc task to precompile then deploy! If you want to give it a go the Ant Jasper documentation for jspc is all you should need. http://ant.apache.org/manual/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Appl ication%20Compilation. Also check out Maven - it has a web.xml merge function you could use to fully automate a build,compile, deploy script. You could also try the alpha Tomcat 5. Quoted from http://jakarta.apache.org/tomcat/ Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production. I would be interested to hear how and what you do.. Cheers Euan -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 08 June 2003 19:01 To: Tomcat Users List Subject: Re: precompiled jsp's as a part of application war file - Precompile your jsp's - Precompiling also involves changing your web.xml to map jsp files to the compiled version of your class Precompiling involves translating your jsp's to class files webapp build time (instead of run time) via jspc(?). The class files will reside in your WEB-INF/classes directory somewhere. I have never done precompiling in 4.X (so I don't the actual tech instructions of how to do so) -Tim Rob wrote: I would like to bundle my application into a single .war file. In addition I would like to include the precompiled .jsp files in the war file as opposed to the .jsp files themselves. Is there a way to do this? I would like to deploy my application to a target without a `javac`. A description of how would be appreciated, particularly where within my hierarchy I place the class files and how it affects the requests for those .jsp files (ie can a person still type in http://www.foo.com/myapp/my.jsp) or do they end up being used as servlets instead? Thanks Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Assessing Tomcat's State
slightly off subject : has anyone written a 'watchdog' for tomcat? Simply a process that checks if tomcat is alive every x seconds, if dead restarts tomcat. Thanks Euan -Original Message- From: Yoav Shapira [mailto:[EMAIL PROTECTED] Sent: 08 June 2003 03:23 To: Tomcat Users List Subject: Re: Assessing Tomcat's State Howdy, Note that the premise of your question is flawed without a precise definition of starting up and shutting down. Consider a tomcat instance with N webapps, each of which with one ServletContextListener. Tomcat on startup will send the contextInitialized event to each of these listeners. Each listener may do things that take a long time, and may or may not do them in the background. In the above scenario, when is the starting up state over and the started state entered? Is it when tomcat sends all N events, or when all N events are done processing? Similar scenarios can easily be construed for shutting down, and they are not limited to listeners as filters and servlets can all do varying amounts of processing on startup and shutdown. All of this may not matter in your scenario, so you may not have to worry about it at all ;) But they are important to keep in mind if you're trying to come up with some sort of general solution. Yoav Shapira --- Francisco J. Bido [EMAIL PROTECTED] wrote: That's a good idea. Thanks! Take care, -FB On Saturday, June 7, 2003, at 03:23 PM, Tim Funk wrote: The easy kluge is to hack the startup scripts (or write wrappers) around the startup scripts to maintain this status in some file, for arguements sake: cowbell.txt In startup.sh -- echo starting cowbell.txt In startup.sh, a timer does wgets on a static asset. Once the asset is returned correctly: echo started cowbell.txt In shutdown.sh -- echo stopping cowbell.txt In shutdown.sh -- A timer looking for the java process id. Once the process ID is gone, echo stopped cowbell.txt -Tim Francisco J. Bido wrote: Thanks Tim, Those suggestions work pretty well for checking the running and the stopped states. The ones giving me a headache are really starting up and shutting down.The only thing I can think of at this point is to monitor the size of catalina.out and trigger an event went it doesn't change. This is nasty since many things can cause the file to appear idle i.e., a busy CPU. Any thoughts on these assessing these remaining states? -FB On Saturday, June 7, 2003, at 02:41 PM, Tim Funk wrote: Depending on your needs if you just need UP or down, you can use wget or a similar agent. You can also set CATALINA_PID in unix before calling the startup scripts and the file referenced by CATALINA_PID will contain the process ID. Or you can write a LifeCycle Listener to trap startup and shutdown events. -Tim Francisco J. Bido wrote: Is there any way to assess Tomcat's state via an environment variable? For example, I would like to poll an environment variable to see if Tomcat is: 1. starting up 2. running 3. shutting down 4. stopped There're a bunch of other states out there but the above fulfill my immediate needs. Parsing through the catalina.out log file is the only way I know how to do this but this is approach is way too clumsy and ugly. Thanks! -FB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - 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]
performance config
Question for production admins: I am preparing a tomcat standalone installation for a production environment. I would be very interested to hear your opinions on best performance config setup. Details and params I am specifically considering below: Params: JVM ..JAVA_OPTS (eg -server) ..CATALINA_OPTS (eg -Xms512m -Xmx512m) TOMCAT ..minProcessors ..maxProcessors ..acceptcount ..debug (eg 0) ..enableLookups (eg false) + anything else?? Setup: Compaq Intel, 2 PIII 700Mhz w 1MB cache, 1 GB ram Linux RH 7.3 Tomcat 1.1.24 j2sdk_1.4.1_01-b01 App: 1 App only, jsp + servlet based, minimal html, oracle DB on seperate box. max 150 concurrent users, non intensive. uploading + downloading files via app frequent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
polish chars
I am getting ?? instead of polish characters. Any config I need to look at? Works fine on NT, not on Linux. - j2sdk1.4.1 - tomcat 1.1.24 - red hat linux 7.2 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: polish chars
Thanks, Adding this to the env fixed both Linux and Solaris: NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG -Original Message- From: Ari Suutari [mailto:[EMAIL PROTECTED] Sent: 02 June 2003 10:53 To: Tomcat Users List; Euan Guttridge; '[EMAIL PROTECTED]' Subject: Re: polish chars Hi, On Monday 02 June 2003 12:52, Euan Guttridge wrote: I am getting ?? instead of polish characters. Any config I need to look at? Works fine on NT, not on Linux. - j2sdk1.4.1 - tomcat 1.1.24 - red hat linux 7.2 I had a similar problem on linux. It was because I was missing the LANG environment variable. Ari S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
?cache problem with context
Hi, I have tomcat 4.1.18le, jdk 141. I deploy my web-app to /webapps/mywebapp, and set the context in conf/server.xml to : !-- Tomcat Root Context -- Context path= docBase=mywebapp debug=0 reloadable=true/ ..then I start tomcat and browse to http://localhost, I get a resource '/' unavailable error, but if I browse to http://localhost/mywebapp which displays the index page of mywebapp as expected. Then I restart tomcat, browse to http://localhost I (now) get the index page of mywebapp. Any suggestions? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]