Re: Tomcat 9 returning 404 for audio files

2024-03-13 Thread Sam
weird-static-file-problems > > On Wed, Mar 13, 2024 at 3:46 AM Chuck Caldarale wrote: > > > > > > On Mar 12, 2024, at 13:15, Sam wrote: > > > > > > As I said earlier, 404 error is only returned 1st time. > > > > > > Subsequent requ

Re: Tomcat 9 returning 404 for audio files

2024-03-12 Thread Sam
is placed under the path > "/apache-tomcat-9.0.30/webapps/ROOT/wav/" not " /wav/ " > > On Tue, Mar 12, 2024 at 11:20 AM Sam wrote: > > > Hi Chris, > > > > I'm creating the audio file dynamically from DB and I check if the file > > e

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
ch...@christopherschultz.net> wrote: > Sam, > > On 3/11/24 13:04, Sam wrote: > > On the server side, I'm checking that file exists before returning the > file > > path to the browser. We are also dynamically creating pdf files this way > > and no issues with accessing them. > &g

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
:46, Mark Thomas ha scritto: > > On 11/03/2024 11:31, Sam wrote: > >> Thanks for replying!! > >> > >> Yes audio files are generated dynamically from DB.in a Servlet. > >> > >> I've verified that audio file exists on file system before returning the >

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
: *Resources are cached by default.* I'll try with *Cache-Control* request header and see if it helps! Thank you! On Mon, Mar 11, 2024 at 11:46 AM Mark Thomas wrote: > On 11/03/2024 11:31, Sam wrote: > > Thanks for replying!! > > > > Yes audio files are generated dynamically

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
Thanks for replying!! Yes audio files are generated dynamically from DB.in a Servlet. I've verified that audio file exists on file system before returning the html code that contains audo control. On Mon, Mar 11, 2024, 5:22 a.m. Mark Thomas wrote: > On 11/03/2024 02:21, Sam wrote: > &g

Tomcat 9 returning 404 for audio files

2024-03-10 Thread Sam
I just upgraded a legacy application from Tomcat 7 to Tomcat 9. It's deployed as a war file. I'm facing a weird issue with audio files playback. When loading a page that contains an audio file. First time Tomcat returns 404 error but if reloading the page, audio file is loaded properly and no

RE: HTTP2: How to check if the client aborted a request

2023-03-15 Thread EXT-Denton, Sam T
I am also interested in this. In my case, we added an "Abort Request" link to the placeholder page that is displayed while the calculation is on-going, but naturally nobody ever clicks on it. :O I am solidly In favor of anything that fixes this. Sam Denton (he/him) Advisor,

RE: EOL of Apache Tomcat 8.5 & 9

2022-12-13 Thread EXT-Denton, Sam T
This is probably answered somewhere, but will Tomcat 9 support Jakarta EE as well as Java EE? Sam Denton Advisor, Solutions Architect Mobile (314) 827-4017 24x7 SBS Suppot (405) 312-9936 Advanced Leave Notice: I will be out from Fri, 12/23, thru Fri, 12/30 -Original Message- From

RE: AW: Maybe a stupid (Windows related) question

2022-03-23 Thread EXT-Denton, Sam T
I believe that "2>&1 1>D:\orx.debug\work_rii_tomcat\test.log" will first redirect stderr to stdout, and then redirect stdout to the file, leaving stderr pointing to the original stdout, which is presumably the terminal. Try "1>D:\orx.debug\work_rii_tomcat\test.log 2>&1" -Original

Using existing pki certificates to enable SSL on tomcat 9

2018-12-16 Thread Sam G
Hi, I've installed Apache Tomcat 9 on windows 2016 64bit server. Our SA has requested a PKI certificate for the windows server feom our CA and got one. I need help with steps involved in using that existing certificate to enable SSL on Tomcat. Thank you Sam

Re: Tomcat as a service: system tray?

2013-03-12 Thread Sam Takoy
! From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, March 12, 2013 4:44 AM Subject: Re: Tomcat as a service: system tray? Sam Takoy wrote: Hi, This is related to the questions that I asked yesterday and got such insightful responses (thanks

Tomcat as a service: system tray?

2013-03-11 Thread Sam Takoy
, but  http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html says system try.) Thank you! Sam

Re: Seeking tips on multi-host, multi-context deployments

2011-09-29 Thread Sam Hokin
HUGE apologies, Pid! I had no idea that a changed subject would keep my email in a previous thread. I saw no visible connection to your thread, I didn't know that my email client (Thunderbird) would pass the reference to your thread back in the email header. I'll be sure to start a fresh

Seeking tips on multi-host, multi-context deployments

2011-09-28 Thread Sam Hokin
Hi, folks. I've got what I consider to be a fairly significant production implementation of Tomcat with, currently, 89 contexts in 30 hosts on two concurrent servers. Everything works fine ... except when it doesn't. As the number of contexts and hosts have increased, there have been more and

Re: SSL on Tomcat5

2011-05-11 Thread Goo Sam Kong
Hi, If you use APR, the private key certificate should be in PEM format as documented in http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS *SSLCertificateFile* Name of the file that contains the server certificate. The format is PEM-encoded. SSLCertificateKeyFile Name of the file that

Re: app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-19 Thread Sam Zilverberg
We changed cp to mv and there are no problems now :) Thanks for the help On Thu, Jan 13, 2011 at 8:16 PM, Sam Zilverberg samzilverb...@gmail.comwrote: We copy using cp... I'll try some of the ideas you guys mentioned and reply sometime next week after I have some results. Thanks

Re: Error Tomcat CLIENT-CERT autentication.

2011-01-17 Thread Goo Sam Kong
Hi Angel, I encountered the same problem as you with Tomcat 5.5.27, so I upgraded to latest Tomcat to get rid of the certification error. https://issues.apache.org/bugzilla/show_bug.cgi?id=37869 is bug report on certification error. Thank you. On 17 January 2011 22:14, amcereijo cereijo

app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-13 Thread Sam Zilverberg
ideas on what is causing this or what I can do to diagnose this problem? I'm clueless at the moment :( Thanks -Sam

Re: app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-13 Thread Sam Zilverberg
We copy using cp... I'll try some of the ideas you guys mentioned and reply sometime next week after I have some results. Thanks for the great ideas ! -Sam

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Goo Sam Kong
Hi Scott, My working HTTPS connector using APR settings as below: Connector port=8443 protocol=org.apache.coyote.http11.Http11AprProtocol SSLEnabled=true maxThreads=150 scheme=https secure=true

Re: Tomcat7 APR Connectors Config: Unable to load certificate key conf/key1cert.pem

2010-11-24 Thread Goo Sam Kong
and Goo Sam Kong I followed Goo Sam Kong 's config still have errors: Loaded APR based Apache Tomcat Native library 1.1.20. 2010-11-24 17:38:43 org.apache.catalina.core.AprLifecycleListener init 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 2010

Re: Client not able with perform client-cert authentication with Tomcat 6.0.29 on APR

2010-11-16 Thread Goo Sam Kong
SSLCipherSuite=AES128-SHA:DES-CBC3-SHA SSLCACertificateFile=C:\usr-files\client-cert-ca.crt / On 13 November 2010 00:38, Mark Thomas ma...@apache.org wrote: On 12/11/2010 16:27, Goo Sam Kong wrote: Hi I am running Tomcat 6.0.29 with JDK 1.6.0_22 on Windows XP. APR/native connector

Client not able with perform client-cert authentication with Tomcat 6.0.29 on APR

2010-11-12 Thread Goo Sam Kong
Hi I am running Tomcat 6.0.29 with JDK 1.6.0_22 on Windows XP. I changed server.xml as below. ?xml version=1.0 encoding=UTF-8? Server port=8005 shutdown=SHUTDOWN !--APR library loader. Documentation at /docs/apr.html -- Listener SSLEngine=on

Re: Tomcat crashed after servicing too many HTTPS connection

2010-07-08 Thread Goo Sam Kong
chuck.caldar...@unisys.comwrote: From: Goo Sam Kong [mailto:skgo...@gmail.com] Subject: Re: Tomcat crashed after servicing too many HTTPS connection I did the same test on Tomcat 5.5.16 with JDK 1.5.0 update 7 on Windows XP Why are you mucking around with versions of Tomcat that are over four

Tomcat crashed after servicing too many HTTPS connection

2010-07-06 Thread Goo Sam Kong
I am using Tomcat 5.5.15 with JDK 1.5.0 update 7 on RedHat Enterprise. I tested my web application by refreshing a page many times, the Tomcat server crashed and thrown exception below: Jul 6, 2010 11:21:38 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL:

Re: Tomcat crashed after servicing too many HTTPS connection

2010-07-06 Thread Goo Sam Kong
:48, Goo Sam Kong wrote: I am using Tomcat 5.5.15 with JDK 1.5.0 update 7 on RedHat Enterprise. I tested my web application by refreshing a page many times, the Tomcat server crashed and thrown exception below: How many times? Was your test automated? What did you expect would happen

Re: Convert a certificate from IIS (.PFX) into a (.keystore) for Apache Tomcat v 6.x

2010-06-23 Thread Goo Sam Kong
Hi Ian, Take a look on this http://tp.its.yale.edu/pipermail/cas/2005-July/001337.html. Hope it helps. On 24 June 2010 06:41, Konstantin Kolinko knst.koli...@gmail.com wrote: 2010/6/24 Mark Eggers its_toas...@yahoo.com: Google is your friend?

Logging Requirement in Tomcat 5.5.16

2010-04-21 Thread Goo Sam Kong
Hi, I am using Log4j logging in Tomcat 5.5.16 with JDK 1.5.0 update 7 on RedHat Linux server. I followed the instructions on http://tomcat.apache.org/tomcat-5.5-doc/logging.html to copy the commons-logging-1.0.4.jar and log4j.jar into $CATALINA_HOME/common/lib directory. and created

Re: Logging Requirement in Tomcat 5.5.16

2010-04-21 Thread Goo Sam Kong
I want catalina.out to be rotate daily but Tomcat give me extra files (catalina.out.1.gz, catalina.out.2.gz...catalina.out.30.gz). I don't those extra files. Any chance to disable that? On 21 April 2010 16:26, Pid p...@pidster.com wrote: On 21/04/2010 09:07, Goo Sam Kong wrote: Hi, I am

Re: Logging Requirement in Tomcat 5.5.16

2010-04-21 Thread Goo Sam Kong
rotation anywhere. On 21 April 2010 16:32, Goo Sam Kong skgo...@gmail.com wrote: I want catalina.out to be rotate daily but Tomcat give me extra files (catalina.out.1.gz, catalina.out.2.gz...catalina.out.30.gz). I don't those extra files. Any chance to disable that? On 21 April 2010 16:26, Pid

Re: Logging Requirement in Tomcat 5.5.16

2010-04-21 Thread Goo Sam Kong
...@pidster.com wrote: On 21/04/2010 09:49, Pid wrote: On 21/04/2010 09:35, Goo Sam Kong wrote: Oops, type too fast. I want catalina.out to be rotate daily but Tomcat give me extra files (catalina.out.1.gz, catalina.out.2.gz...catalina. out.30.gz). I don't want those extra files. Any chance to disable

Re: Logging Requirement in Tomcat 5.5.16

2010-04-21 Thread Goo Sam Kong
Thanks Andre, I saw there is a script doing zip in /etc. I am new to Linux, :-). On 21 April 2010 17:45, André Warnier a...@ice-sa.com wrote: Goo Sam Kong wrote: Hi Pid, My answer below. I saw the same file names in another server (not implement log4j yet), that server is running

Re: Context.xml being deleted

2010-04-12 Thread Sam Stephens
so still a lot of work. Any advice gratefully received. -- -Sam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Context.xml being deleted

2010-04-11 Thread Sam Stephens
Hi all. The tomcat documentation says the following: If the web application is packaged as a WAR then /META-INF/context.xml will be copied to $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to match the application's context path. Once this file exists, it will not be replaced if a new

Re: Having difficulty using keytool -genkey to get a key with blank OU (instead of unknown)

2010-04-08 Thread Goo Sam Kong
Hi Eric, Try to put the subject DN (with OU equal to blank) in -dname field as below. keytool -genkey -keystore keystoreFile -storepass password -alias keyAlias -dname CN=your cn,OU=,O=your company,C=SG On 9 April 2010 06:51, Eric DuToit eric.dut...@gmail.com wrote: I need to generate a

Re: smartcards for tomcat webapps

2010-04-07 Thread Goo Sam Kong
-constraint /security-constraint From: Goo Sam Kong skgo...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Tue, April 6, 2010 10:21:49 PM Subject: Re: smartcards for tomcat webapps On 6 April 2010 20:39,  dockeryjava...@yahoo.com wrote

Re: smartcards for tomcat webapps

2010-04-06 Thread Goo Sam Kong
On 6 April 2010 20:39, dockeryjava...@yahoo.com wrote: Anyone using smartcards for auth? If so, have specific example code excerpt and server.xml? Minimum configuration changes required for HTTPS connector in server.xml is to add attributes below and amend value of clientAuth attribute from

Re: can't seem to migrate this app over to a new server

2010-03-24 Thread Goo Sam Kong
Hi John, You need to enable HTTPS connector, refer to SSL Support section in http://tomcat.apache.org/tomcat-5.5-doc/config/http.html to enable SSL in server.xml. On 24 March 2010 14:22, joon yoo jyoo1...@gmail.com wrote: We're in the process of extricating ourselves from a host who developed

Re: Force Tomcat 5.5.16 to close SSL session upon every request

2010-03-23 Thread Goo Sam Kong
Hi Ben, Do you know why Tomcat take some time to close the connection? Is it predictable? My Java client is authenticate with Tomcat server using USB based security token through client certificate authentication. Even though I removed the token, Java client still able to run until some times,

Re: Force Tomcat 5.5.16 to close SSL session upon every request

2010-03-23 Thread Goo Sam Kong
Thank you, Mark On 23 March 2010 16:31, Mark Thomas ma...@apache.org wrote: On 23/03/2010 06:58, Goo Sam Kong wrote: Hi Ben, Do you know why Tomcat take some time to close the connection? Is it predictable? Tomcat does close the connection. My Java client is authenticate with Tomcat

Force Tomcat 5.5.16 to close SSL session upon every request

2010-03-22 Thread Goo Sam Kong
Hi Is it possible Tomcat close SSL session upon every HTTP request? I am running Tomcat 5.5.16 on JDK 1.5.0 update 7 on RedHat Enterprise. Thank you. Regards, SamKong Goo - To unsubscribe, e-mail:

Re: How to set SSL session timeout in Tomcat 5.5.16

2010-03-17 Thread Goo Sam Kong
Thank you very much Mark, I will try it tomorrow. On 17 March 2010 16:40, Mark Thomas ma...@apache.org wrote: On 17/03/2010 00:49, Goo Sam Kong wrote: May I know how to set the SSL session timeout in Tomcat 5.5.16. I am running JDK 1.5.0 update 7 on RedHat Enterprise. 1. Upgrade

Re: How to set SSL session timeout in Tomcat 5.5.16

2010-03-17 Thread Goo Sam Kong
. Thank you. On 17 March 2010 17:32, Goo Sam Kong skgo...@gmail.com wrote: Thank you very much Mark, I will try it tomorrow. On 17 March 2010 16:40, Mark Thomas ma...@apache.org wrote: On 17/03/2010 00:49, Goo Sam Kong wrote: May I know how to set the SSL session timeout in Tomcat 5.5.16. I am

Re: How to set SSL session timeout in Tomcat 5.5.16

2010-03-17 Thread Goo Sam Kong
Hi Chuck, OIC, so when the code will be fixed? On 18 March 2010 11:07, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Goo Sam Kong [mailto:skgo...@gmail.com] Subject: Re: How to set SSL session timeout in Tomcat 5.5.16 I noticed there is a error in Tomcat documentation (http

Re: How to set SSL session timeout in Tomcat 5.5.16

2010-03-17 Thread Goo Sam Kong
Hi Mark, Will apache.org correct the Tomcat documentation or fix the code? Thank you. On 18 March 2010 11:16, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Goo Sam Kong [mailto:skgo...@gmail.com] Subject: Re: How to set SSL session timeout in Tomcat 5.5.16 OIC, so when

How to set SSL session timeout in Tomcat 5.5.16

2010-03-16 Thread Goo Sam Kong
May I know how to set the SSL session timeout in Tomcat 5.5.16. I am running JDK 1.5.0 update 7 on RedHat Enterprise. Thank you. Regards, SamKong Goo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: How to set SSL session timeout in Tomcat 5.5.16

2010-03-16 Thread Goo Sam Kong
, Charles R chuck.caldar...@unisys.com wrote: From: Goo Sam Kong [mailto:skgo...@gmail.com] Subject: How to set SSL session timeout in Tomcat 5.5.16 May I know how to set the SSL session timeout in Tomcat 5.5.16. The session timeout value is independent of the session security, and set

Re: How to set SSL session timeout in Tomcat 5.5.16

2010-03-16 Thread Goo Sam Kong
how to do/configure to invalidate SSL session? Thank you. Regards, SamKong Goo On 17 March 2010 10:30, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Goo Sam Kong [mailto:skgo...@gmail.com] Subject: Re: How to set SSL session timeout in Tomcat 5.5.16 Can I invalidate the SSL

Tomcat 6 and Apache 2 - using Tomcat 6 with virtual hosts

2010-02-06 Thread Sam Anderson
please suggest the correct way to set this up, or recommend modules that can be implimented or configs that do this. Many thanks in advance Sam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

make jsvc error on centos5.3

2010-01-25 Thread sam wong
hi, everybody, I have some question on make jsvc on centos 5.3 linux. and need your help. thanks my step is : 1. install centos chosed: a)server, b)Server-GUI 2. install tomcat. 3. compile jsvc and failed. [r...@hcrm jsvc-src]# make make -C native all make[1]: Entering directory

Re: Want to customise the tomcat's session logic

2009-11-05 Thread Sam Gendler
On Mon, Nov 2, 2009 at 5:03 AM, Pid p...@pidster.com wrote: On 02/11/2009 10:06, S Arvind wrote: Hi Tomcat developers, Bascially my requirement is ability to control the session sharing in browser. Till now we maintained each application as differnet context but pointing to same

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Sam Gendler
, 2009 at 1:00 AM, Sam Gendler sgend...@vid.me wrote: That looks like it will work, but it doesn't explain why the connector would think port 80 was appropriate. I could see port 8090 showing up, but given that the scheme is https and there was no port number in the request, surely it should have

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Sam Gendler
? It just seems like a bug to me. It does look like proxyPort can be used to force it to 443, though, so that will work. On Tue, Oct 13, 2009 at 12:19 AM, Peter Crowther peter.crowt...@melandra.com wrote: 2009/10/13 Sam Gendler sgend...@vid.me: That method uses request.getScheme(), to retrieve

Re: trouble with connector configured to receive from SSL accelerator

2009-10-13 Thread Sam Gendler
No. That is by design. The session ID is almost as valuable as the password. If you need SSL to protect the password, you should use SSL to protect the session ID. Well, that's fairly application specific, but the argument has also been done to death elsewhere. Workaround is already in

Re: [OT] mod_jk inserting Transfer-Encoding Chunked header

2009-10-12 Thread Sam Crawford
combination to run nowadays). For the moment we've just reverted to using the SunOne 7.0 stock reverse proxy. This seems to fulfill our immediate needs, and we can perhaps revisit mod_jk later. Thanks for the tips so far, Sam

trouble with connector configured to receive from SSL accelerator

2009-10-12 Thread Sam Gendler
[quickie synopsis] A request arriving on a connector configured for scheme=https and with secure=true is generating absolute redirect urls with scheme=https and port = 80 (https://localhost:80/path.html) because incoming request was on 443 and didn't have an explicit port in the Host header.

Re: trouble with connector configured to receive from SSL accelerator

2009-10-12 Thread Sam Gendler
at the incorrect default of 80 when no port is specified in the url. On Mon, Oct 12, 2009 at 9:59 PM, Sam Gendler sgend...@vid.me wrote: [quickie synopsis] A request arriving on a connector configured for scheme=https and with secure=true is generating absolute redirect urls with scheme=https

mod_jk inserting Transfer-Encoding Chunked header

2009-10-10 Thread Sam Crawford
appreciated! Thanks, Sam # curl -v http://webserver1.company.com:28080/test/ * About to connect() to webserver1.company.com port 28080 * Trying 10.1.2.3... * connected * Connected to webserver1.company.com (10.1.2.3) port 28080 GET /test/ HTTP/1.1 User-Agent: curl/7.12.1 (x86_64-redhat-linux-gnu

Re: mod_jk inserting Transfer-Encoding Chunked header

2009-10-10 Thread Sam Crawford
is copied below. I'll keep investigating, but suspect I may have to switch to using the stock SunONE reverse proxy (which doesn't seem to exhibit this issue). Thanks, Sam [Sat Oct 10 20:52:12.924 2009] [25246:3641224096] [trace] ajp_process_callback::jk_ajp_common.c (1702): enter [Sat Oct 10 20:52

Re: mod_jk inserting Transfer-Encoding Chunked header

2009-10-10 Thread Sam Crawford
Let's not turn this into a which web server is better thread please. I've got a number of reasons for using SunONE over Apache in this instance, but they're not relevant to the issue here. I'm going to continue experimenting with this setup, and will post an update here. Thanks, Sam 2009/10

Re: mod_jk inserting Transfer-Encoding Chunked header

2009-10-10 Thread Sam Crawford
Apologies for misinterpreting your post. Unfortunately we can't ditch SunONE - it's a requirement from our security guys. We're operating in a two-tier DMZ environment and SunONE will be in the top tier, with an SSO agent running inside it. JBoss will be in the 2nd tier. Thanks, Sam 2009/10

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-26 Thread Sam Hokin
Caldarale, Charles R wrote: I'll poke around in the webapp classloader to see if I can find anything interesting, but in the meantime, is there a /net directory on the problematic server? If there is and it targets a remote file system, that might explain the long delay on these stat()

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-26 Thread Sam Hokin
Sam Hokin wrote: Caldarale, Charles R wrote: I'll poke around in the webapp classloader to see if I can find anything interesting, but in the meantime, is there a /net directory on the problematic server? If there is and it targets a remote file system, that might explain the long delay

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-26 Thread Sam Hokin
Caldarale, Charles R wrote: Once you have your test Tomcat set up on the problematic server, try adding this line to the conf/logging.properties file: org.apache.jasper.level = ALL That will display a *lot* of information about what's going on during JSP compilation. One thing in particular

Re: very slow class loading on initial JSP/servlet request afterrestart

2009-02-26 Thread Sam Hokin
Caldarale, Charles R wrote: Do you have a CLASSPATH environment variable set for the Tomcat process? (You shouldn't.) Or is there a plain / in the -cp argument in the Tomcat startup script? Or has conf/catalina.properties been modified to include the file system root? Any of those are a

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
Tim Funk wrote: While I am late to this ... Is this an accurate summary? - Slow re-load on a server - Server is a production server - Other servers are OK so it can only be reproduced on production server - Initial looks at network seem to be no network activity - There seems to be a hint at

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
Pieter Temmerman wrote: Try this strace command: strace -f -etrace=\!futex,gettimeofday,clock_gettime -p PID_OF_TOMCAT_JAVA where PID_OF_TOMCAT_JAVA is the PID of your Tomcat, duh! :) Thanks! That certainly did the trick. The first time I ran strace against the Tomcat process, it brought

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
André Warnier wrote: Sam, because there is quite a bit of traffic on this issue, and because the exact description seems to change a bit over time (e.g. compilation-only or not), could you remake a summary of what you are sure of so far ? 1. Initial requests to ANY JSP page on a site

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
NEW DISCOVERY - using a wildcard package import results in a much longer response delay! I've taken Mark's suggestion that I import individual classes rather than importing all with a wildcard to see if a particular class is slowing down classloading. It turns out that it's the WILDCARD

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
André Warnier wrote: What in this directory path is (are) a symlink(s) ? /home/sites/ims/jcms/webapps/ROOT/WEB-INF/classes/org/apache/jsp/test6_jsp.class There are no symlinks in that path. And how is this different from the other 2 systems that work fine ? It differs in no known way,

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Sam Hokin
Caldarale, Charles R wrote: The key lines have a 3+ second response time: 2498 15:24:35 stat64(/net/ims/jcms/Object.class, 0x7b6b9c20) = -1 ENOENT (No such file or directory) 3.020996 Most of the calls return in much less than a millisecond, but there are a few ENOENT (not all) responses

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-24 Thread Sam Hokin
Mark Thomas wrote: Sam Hokin wrote: Thanks, Chris. I ran e2fsck with the -c option, which runs badblocks, when I tested it earlier. And I just ran badblocks again - 0 bad blocks found. I wish I could fix this by simply as swapping out a bad disk (notwithstanding Andre's desire

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-24 Thread Sam Hokin
Juha Laiho wrote: One tool that I haven't yet seen suggested is 'strace', the Linux system call tracer. This will show all the calls your application makes to the operating system. As you say the application is mostly idle during the delay, it is, in one way or another, waiting for some OS

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-24 Thread Sam Hokin
János Löbb wrote: How about just using tcpdump during the long delay and see what the machine is doing network wise ? I have, and network timeout was suggested earlier on this thread. There is no TCP activity of particular interest during the delay. I've hunted for, and not seen, anything

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-23 Thread Sam Hokin
Christopher Schultz wrote: Sam, On 2/20/2009 6:44 PM, Sam Hokin wrote: Thanks, Chris. I ran e2fsck with the -c option, which runs badblocks, when I tested it earlier. And I just ran badblocks again - 0 bad blocks found. Did you run badblocks on the array, or on an individual disk? I would

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Caldarale, Charles R wrote: 1) What are the servers that don't have a problem? One is a single AMD Athlon 64 2800+, running the 64-bit Sun JDK (same version). The other is a dual AMD Athlon MP 2000+, running the 32-bit Sun JDK (same version). And the bad server has 8 Intel Xeon E5310 CPUs

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Ron McNulty wrote: Hi Sam You jar - does it include any JSP tag files written as JSP fragments? There are known issues in this area. The dependency management seems to get confused, resulting in lots of unnecessary compilation of the .tag files No, it doesn't, Ron. But thanks

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Christopher Schultz wrote: Sam, On 2/19/2009 6:23 PM, Sam Hokin wrote: The problem, which spontaneously appeared a few days before Christmas on this one server, is that the initial request of a JSP or servlet takes AGES to respond, usually exceeding several minutes. Good... then you'll have

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Caldarale, Charles R wrote: Run jstack several times during the delay, and then let's compare the set of thread dumps. What is the CPU utilization during the delay? OK, done. The CPU utilization during the delay is tiny, 1% or less. I've run jstack before, during, and after I've done a

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Christopher Schultz wrote: jstack.8.txt is the last thread dump where File.exists was stalled. http://ims.net/jstack/jstack.9.txt http://ims.net/jstack/jstack.10.txt http://ims.net/jstack/jstack.11.txt The server appears to be idle, here. It's a little weird that thread 9770 has NO STACK

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
/ sam) Gid: ( 100/ users) Access: 2009-02-20 13:39:29.0 -0600 --- Tomcat accesses the file Modify: 2009-02-20 10:39:09.0 -0600 Change: 2009-02-20 13:39:06.0 -0600 File: `/usr/local/tomcat/work/Catalina/www.ims.net/_/org/apache/jsp/test4_jsp.class' Size: 3520

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
Chuck's comment about JSP to Java translation done by Jasper reminded me that I should have included the time on the Java source file created during JSP compilation. It shows that the Java source file was created immediately, but accessed again six seconds later (!), presumably by the compiler.

Re: very slow class loading on initial JSP/servlet request afterrestart

2009-02-20 Thread Sam Hokin
Actually, /usr/local/tomcat is a symlink to /usr/local/apache-tomcat-6.0.18. But that's a pretty important symlink for me, to make it easy to change Tomcat versions. But I'll investigate that. That's the only symlink involved that I can think of. Caldarale, Charles R wrote: From: Sam Hokin

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
An update. I've written a simple standalone Java routine that calls File.exists(). It never hangs. In fact, I ran it against the class file that Tomcat creates from a test JSP; it doesn't hang, returns false for the (long) time it takes Tomcat to create the class file on the slow system, then

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
software, either in some service mucking up the JVM or the JVM itself. But it only manifests itself under Tomcat, and then only when this particular package is imported. Christopher Schultz wrote: Sam and David, On 2/20/2009 1:36 PM, David Smith wrote: Sam Hokin wrote: It's a logical RAID

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-20 Thread Sam Hokin
André Warnier wrote: Sam Hokin wrote: I'd like to correct an error I made in my earlier report of this problem. It turns out that the response delay in my simple test JSP IS during compilation! I ran stat on the files in question, as well as looked at the time shown on the response page

very slow class loading on initial JSP/servlet request after restart

2009-02-19 Thread Sam Hokin
I've been struggling with a very severe problem on one of my three Tomcat servers since late December. I'm completely stumped. I'm running 6.0.18 on all three servers, which are all running Fedora Core 9, all currently running Sun's JDK 1.6.0_12. The only difference is hardware. The server

Good JSP editor

2008-09-06 Thread sam wun
Hi there, I know it is better for me to ask this quetion in a jsp forum, but I couldn't find one for mailing list . And you guys are very helpful too in terms of this experience. If you are  using a good jsp editor, can you tell me where its download link? My current development

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
Hi David, No, I don't have this 2 jar files in the common/lib/ directory. where can I download it from? Thanks Sam - Original Message - From: David Smith Sent: 02/09/08 10:39 pm To: Tomcat Users List Subject: Re: Can't execute servlet project Do you have jstl.jar

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
servlet project Hmmm... good question. I moved over to Maven and don't manually download these any more. This looks like it should do the trick: Try http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi --David sam wun wrote: Hi David, No, I don't have

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/09/08 01:23 am To: Tomcat Users List Subject: Re: Can't execute servlet project Download the binary zip file and expand it. Within it is a lib directory with just standard.jar and jstl.jar. --David sam wun wrote: I just went to the website , very confused. The taglib file

Re: Can't execute servlet project

2008-09-02 Thread sam wun
/TestDB/res-ref-name     res-typejavax.sql.DataSource/res-type     res-authContainer/res-auth   /resource-ref /web-app - Original Message - From: sam wun Sent: 03/09/08 01:41 am To: Tomcat Users List Subject: Re: Re: Can't execute

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
common/lib (for tomcat v 5.5) or /lib (tomcat v 6). You can also take a look at tomcat's JDBC Datasource howto's on the tomcat website for your version of tomcat which offer a lot of help. --David sam wun wrote: Thanks David, After copied the jstl and standard dot jar files

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
Here is the mysql-connector jar file I got in the common/lib directory: linux:~/tomcat/apache-tomcat-5.5.26/common/lib # ls mysql* mysql-connector-java-5.1.3-rc-bin.jar Is thsi the correct mysql jar file? Thanks Sam - Original Message - From: David Smith Sent: 03/09/08 01

Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html --David sam wun wrote: Here is the mysql-connector jar file I got in the common/lib directory: linux:~/tomcat/apache-tomcat-5.5.26/common/lib # ls mysql* mysql-connector-java-5.1.3-rc-bin.jar Is thsi the correct

Re: Re: Re: Can't execute servlet project

2008-09-02 Thread sam wun
/conf # do I need to remove DBTest.xml and web.xml here? Thanks Sam - Original Message - From: sam wun Sent: 03/09/08 11:13 am To: Tomcat Users List Subject: Re: Re: Can't execute servlet project After moved the context.xml file to /tomcat/apache-tomcat-5.5.26/conf/Catalina

Re: Re: Can't execute servlet project - it works now

2008-09-02 Thread sam wun
After this final changed (renamed the context.xml file to DBTest.xml), it works fine now. Thank you very much for the help along the way. Without your patient and effort, I wouldn't be able to get this going. Thanks Sam - Original Message - From: David Smith Sent: 03/09/08 12

Re: Can't execute servlet project

2008-09-01 Thread sam wun
    descriptionDB Connection/description     res-ref-namejdbc/TestDB/res-ref-name     res-typejavax.sql.DataSource/res-type     res-authContainer/res-auth   /resource-ref /web-app Thanks Sam

Re: Re: Can't execute servlet project

2008-09-01 Thread sam wun
that article I would recommend is don't add ?autoReconnect=true to the end of the mysql database url. Instead, add validationQuery=select 1 to the Resource ... / element in your context.xml file so connections are tested and regenerated as needed. --David sam wun wrote: HI there, I

  1   2   >