Re: Clearing the catalina.out file
What about stopping the web server? Required? Thanks for the answers. Serge Fonville serge.fonvi...@gmail.com 8/14/2009 9:13 AM catalina.out Why type more ;-) HTH Serge On Fri, Aug 14, 2009 at 3:58 PM, Dan Denton dden...@remitpro.com wrote: echo catalina.out (without the outside quotes) works for us. Dan -Original Message- From: Susan Richards [mailto:richa...@matc.edu] Sent: Friday, August 14, 2009 8:53 AM To: users@tomcat.apache.org Subject: Clearing the catalina.out file Do I need to stop the web server in order to clear out this file? What's a good unix command to do this? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Clearing the catalina.out file
No, but I will do it with a test server first since no one knows the answer. Christopher Schultz ch...@christopherschultz.net 8/14/2009 9:47 AM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, On 8/14/2009 10:19 AM, Susan Richards wrote: What about stopping the web server? Required? Thanks for the answers. This seems like an easy thing to just try. Have you? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqFeO0ACgkQ9CaO5/Lv0PDC/QCfUB467qz5nrD6MIVzJhdhE/A6 kLAAoKV1CdlJOseqGJmgi1yjp0r97KCp =oIX8 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Clearing the catalina.out file
If I had time to learn how logrotate works I wouldn't need to post to the list and waste your time, but if you're going to reply to a question, why answer only part of it? If you know the answer, why spend the time telling me to try it out? I will have learned either way and won't have to ask again. Sorry. I support many other applications and if you have time to explain how logrotate works, it's been on my to do list for a while. I do appreciate the help. Christopher Schultz ch...@christopherschultz.net 8/14/2009 10:23 AM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, On 8/14/2009 11:06 AM, Susan Richards wrote: No, but I will do it with a test server first since no one knows the answer. It's not that nobody knows the answer: it's that actually /trying/ to do it takes less time than posting to the mailing list, it's kind of silly to have done it. BTW I would recommend using something like logrotate to archive your log files. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqFgXwACgkQ9CaO5/Lv0PBk8gCgwnrzPLuLwS7bzPuUNeIfhcrO L/gAoLNqbffkITC+lirUCfGuORkfy6g0 =Gh98 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Ant Build.xml file
How would I add to the build.xml file so that when ant builds it, it creates this code in my web.xml file? error-page error-code404/error-code location/404.html/location /error-page Not sure if this is an element or something else and what to add it under.
Syslog error message
For a few days, our /var/adm/syslog/syslog.log on our HP-UX box where Tomcat is running has been filling up with messages like this: Apr 15 14:14:18 cosmoweb vmunix: function == 0xE04F3960, arg == 0xE00129FA2800, ticks == 0xFD69D7AC, flags == 0x0 Apr 15 14:14:18 cosmoweb vmunix: function == 0xE04F3960, arg == 0xE00129FA2800, ticks == 0xFD69D7AB, flags == 0x0 Apr 15 14:14:18 cosmoweb vmunix: function == 0xE04F3960, arg == 0xE00129FA2800, ticks == 0xFD69D7AA, flags == 0x0 Apr 15 14:14:18 cosmoweb vmunix: function == 0xE04F3960, arg == 0xE00129FA2800, ticks == 0xFD69D7A9, flags == 0x0 It started out with this message: Apr 10 13:41:38 cosmoweb vmunix: Timeout called with negative time. Does anyone know what this means and how to fix it?
SSL Help - keystore problem
Last year, I was learning how to install an SSL cert on Tomcat 5.0. The matter was confused by the fact that we needed 2 certs because we had a live site and test site on the same server but the live system was going to be moved to another server. We managed to screw up the test SSL certificate and never got it installed. We did successfully install the live cert. We had tried to create 2 separate keystores. The live site is now on another server. Anyway, I finally got back to replacing the test SSL cert. I decided to move all the old keystore and cert files to an oldSSL directory. Everything but the -trustcacerts file moved. Then I proceeded to create a new keystore, using the default of .keystore. I ordered the certificate, and installed the intermediate cert and the new cert. No problems. The .keystore was updated in my home directory, but I copied it to /home/x When I startup the web server, I get this error in the catalina.out: SEVERE: Catalina.start: LifecycleException: service.getName(): Catalina; Protocol handler start failed: java.io.FileNotFoundException: /home/x/keystore (No such file or directory (errno:2)) The old keystore was called keystore, but the new one is called .keystore. When I change the conf file to look for .keystore, I get this error: SEVERE: Catalina.start: LifecycleException: service.getName(): Catalina; Protocol handler start failed: java.io.IOException: Keystore was tampered with, or password was incorrect I tried specifying the password, but that didn't work either. Does anyone know what went wrong here?
java.net.BindException: Address already in use
First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 I've checked server.xml and I only have one connector using this port. Perhaps all the connections are not getting terminated when it shuts down? How do I fix this problem? How do I figure out what is the cause?
RE: java.net.BindException: Address already in use
It's at port 80 443. We don't have any iptables setup to reroute users from 80 to 8080. I asked our unix guy and he didn't want to do it. Propes, Barry L [EMAIL PROTECTED] 8/10/2007 3:35 PM are you using TC at port 80 or port 8080? Can you switch it to 8080 in your xml file? -Original Message- From: Susan Richards [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 3:28 PM To: users@tomcat.apache.org Subject: java.net.BindException: Address already in use First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 I've checked server.xml and I only have one connector using this port. Perhaps all the connections are not getting terminated when it shuts down? How do I fix this problem? How do I figure out what is the cause? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.net.BindException: Address already in use
Just out of curiosity, why do you bounce Tomcat every night? We backup our database that the web application interfaces with. We stop our listener after we bounce it and put a maintenance page out. Our application gives a 'System Error Detected' to the user if we don't do things in the right order. I suppose I could just copy the maintenance page and not bounce it I did have a delay, but then we switched scripts for a different problem. I will try going back to the old script now because that problem is resolved. I hope. Thanks. Christopher Schultz [EMAIL PROTECTED] 8/10/2007 3:41 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Susan, Susan Richards wrote: First, I just want to say that I sure appreciate all the help I am getting on this list and I don't deserve to even associate with highly intelligent beings such as yourselves. Seriously, don't say that. :( We shutdown and restart our tomcat 5.5.23 server nightly. Initially, a maintenance page for system backup gets copied and then it gets bounced with the shutdown.sh and startup.sh scripts. Since we upgraded last Friday, it's not always starting up. I see this message in the log: SEVERE: Error initializing endpoint java.net.BindException: Address already in use (errno:226):80 Don't forget that shutdown.sh only sends a shutdown notification to Tomcat -- it doesn't wait for the shutdown to complete before the script ends. So, you can't just do shutdown.sh followed by startup.sh and expect a clean server bounce. The quick fix is to introduce some delay between the shutdown and startup. The problem is, it might not take a predictable amount of time to shutdown, so you can't just guess at 5 seconds and leave it at that. The best thing to do would be to watch catalina.out for the shutdown message that Tomcat emits as it goes down, and /then/ call startup.sh. Honestly, if you're already comfortable bouncing Tomcat every night, you can probably just introduce an arbitrary delay between invoking scripts and be fine. Just out of curiosity, why do you bounce Tomcat every night? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ( http://enigmail.mozdev.org/ ) iD8DBQFGvM1+9CaO5/Lv0PARAkNmAJ41+SQAwk3qhjVWGUn1ePWWnRhV4wCcDsbT ZA3mjT3gTNF+DhDJPyjm4aM= =7tQ6 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WARNING: Parameters: Invalid chunk ignored.
What does this mean on Tomcat 5.5.23? How do I fix it?
RE: WARNING: Parameters: Invalid chunk ignored.
It's a vendor's application, so I'm not sure, but I don't think so. I don't see a faces-config.xml file on the web server. Nathan Hook [EMAIL PROTECTED] 8/8/2007 4:14 PM Do you happen to be using Java Server Faces in your application? http://icefaces.org/JForum/posts/list/4918.page Original Message Follows From: Susan Richards [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: users@tomcat.apache.org Subject: WARNING: Parameters: Invalid chunk ignored. Date: Wed, 08 Aug 2007 16:10:53 -0500 What does this mean on Tomcat 5.5.23? How do I fix it? _ See what you’re getting into…before you go there http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 configuration
Thanks. When I use the Tomcat Manager to deploy the war files, it puts them under webapps, not under ROOT. Can I change this? Caldarale, Charles R [EMAIL PROTECTED] 7/31/2007 10:20 PM From: Susan Richards [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 configuration In Tomcat 5.0.28, I had this in my server.xml: Host name=test-infonline.matc.edu appBase=/www/apps/tomcat/webapps Context path= docBase=./ /Host The above - having docBase equal to appBase - was never intended to work; that it ever did anything useful at all was an accident. In current versions of Tomcat, do not put Context elements in server.xml, and do not use the path or docBase attributes, except in special circumstances. I really want to have 3 domain names on one server and be able to type in all three urls and go to the correct web application. If you mean that the three domain names each have a separate default webapp, then you should set up three Host elements in server.xml, one for each desired domain name. Within each Host define a unique value for its appBase directory. Under each appBase directory, install the appropriate webapp as ROOT.war or in the ROOT directory (case sensitive naming). No filter required. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 configuration
Chuck said this: Under each appBase directory, install the appropriate webapp as ROOT.war or in the ROOT directory (case sensitive naming). I changed my server.xml to this: Host name=test-infonline.matc.edu appBase=/www/apps/tomcat/webapps/test-infonline /Host When I open the URL http://test-infoline.matc.edu, I still go right to the manager. What am I doing wrong? Hassan Schroeder [EMAIL PROTECTED] 8/1/2007 10:33 AM On 8/1/07, Susan Richards [EMAIL PROTECTED] wrote: Thanks. When I use the Tomcat Manager to deploy the war files, it puts them under webapps, not under ROOT. Can I change this? ? No, that's where they're supposed to go. Why would you want to change that? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 configuration
In Tomcat 5.0.28, I had this in my server.xml: Host name=test-infonline.matc.edu appBase=/www/apps/tomcat/webapps Context path= docBase=./ /Host and in the webapps directory I had an index.html page that redirected to the servlet: meta http-equiv=refresh content=0;URL=http://test-infonline.matc.edu/test-infonline/test-infonline; This probably wasn't the correct way, but it was the only way I could direct the dns to the application. http://test-infonline.matc.edu Now on Tomcat 5.5 this doesn't work. It takes me straight to the tomcat default page. I really want to have 3 domain names on one server and be able to type in all three urls and go to the correct web application. What am I doing wrong? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Turn off Tomcat Version on 404 error.
Thanks. I was hoping there was a way to just turn it off and not have a custom error page. Darren [EMAIL PROTECTED] 3/14/2007 5:14 AM For just 404 you can create your own page as another poster advised. If you want to do this for all error/code pages, take a look part way down the common section of this article. http://www.owasp.org/index.php/Securing_tomcat#Common On 13 Mar 2007, at 20:58, Susan Richards wrote: How does one prevent Tomcat from displaying the Tomcat version in the 404 not found page? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Turn off Tomcat Version on 404 error.
How does one prevent Tomcat from displaying the Tomcat version in the 404 not found page?