Re: deploy webapp to nfs shared drive

2009-06-15 Thread Pid
Robert Rowntree wrote: we are running a cluster of 3 nodes. we are on linux . we run tomcat 5.5.15 and do not use the server.conf clustering . we cluster tomcat with an external load balancer. That's a really old Tomcat, lots and lots of bug fixes since then. You should consider upgrading, at

Beginner with apache

2009-06-15 Thread Hracek, Petr
Hello all, sorry for this beginner question but I do not know who to setup my servlet. On the machine is installed and run apache server as well. Version is 2.2.3. In the configuration file is mentioned: JkMount /sso/servlet/* ajp13 JkMount /swt/servlet/* ajp13 My TOMCAT_HOME directory is

Re: Beginner with apache

2009-06-15 Thread André Warnier
Hi. In the information below, you forgot to mention - what version of Tomcat this is - on what platform this is From bits and pieces below, I guess that this may be Tomcat 5.5.? , on a RedHat Linux system. The basic answer to your question #1 below is yes, and to your question #2 also. But

Re: Upgrade to Tomcat 6 on Ubuntu

2009-06-15 Thread Timo Meinen | mindmatters
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Neil, we usually don't use the Tomcat installation provided by Ubuntu, because the files are distributed over the hole filesystem. e.g. conf under /etc. It's no problem to download a regular Tomcat-distribution as tar.gz or zip und unzip it

RE: Beginner with apache

2009-06-15 Thread Hracek, Petr
Tomcat 5.5 is onstalled on openSUSE11.1 Tomcat configuration files are stored in /etc/tomcat55/ TOMCAT_HOME is /srv/www/tomcat55/ Servlet locations are /opt/swt/servlet and /opt/sso/servlets regards / S pozdravem Petr Hráček -Original Message- From: André Warnier

[Tomcat not Running Error message]

2009-06-15 Thread jaypee
Hai I want to catch the server not running exception in tomcat. For example with out running the server if i access http://localhost:8080/ Failed to Connect Firefox can't establish a connection to the server at localhost:8080. Though the site seems valid, the browser was unable to establish a

Re: Beginner with apache

2009-06-15 Thread André Warnier
Hracek, Petr wrote: Tomcat 5.5 is onstalled on openSUSE11.1 Tomcat configuration files are stored in /etc/tomcat55/ TOMCAT_HOME is /srv/www/tomcat55/ Servlet locations are /opt/swt/servlet and /opt/sso/servlets Well then, my guess was wrong, and in my answer below, replace RedHat by Suse..

Re: [Tomcat not Running Error message]

2009-06-15 Thread André Warnier
jaypee wrote: Hai I want to catch the server not running exception in tomcat. I'm going to wait for an answer from a real Tomcat expert, but I think that this will be very difficult. :-) For example with out running the server if i access http://localhost:8080/ Failed to Connect

RE: [Tomcat not Running Error message]

2009-06-15 Thread Peter Crowther
From: jaypee [mailto:jp.mcy...@gmail.com] I want to catch the server not running exception in tomcat. For example with out running the server if i access http://localhost:8080/ Failed to Connect Firefox can't establish a connection to the server at localhost:8080. OK. So... let's get

Re: [Tomcat not Running Error message]

2009-06-15 Thread jaypee
Thanks for your kind reply. my tomcat server is running on Windows Xp. Thanks, On Mon, Jun 15, 2009 at 7:21 PM, Peter Crowther peter.crowt...@melandra.com wrote: From: jaypee [mailto:jp.mcy...@gmail.com] I want to catch the server not running exception in tomcat. For example with

RE: Beginner with apache

2009-06-15 Thread Hracek, Petr
First of all thank you. Suse gyus are not responsible for this step. Only development in the firm. From the last release of the product tomcat 3.2.1 has been used. Now it has to be used tomcat-5.5. or distro package from SuSE. If I understand right then, if in my directory /opt/sso/servlet is

RE: [Tomcat not Running Error message]

2009-06-15 Thread Peter Crowther
From: jaypee [mailto:jp.mcy...@gmail.com] my tomcat server is running on Windows Xp. OK. That's a shame - there are some tricks you could pull with inetd on Unix that would allow you to start Tomcat if it wasn't started, but that option isn't available on Windows. Let's go back to the

Problem with apache tomcat while running load test

2009-06-15 Thread Aneesha Pant
We are trying to run a load test using Borland Silk route on a application running on Tomcat 5.0.16 on Apache 2.2.3.11. we have configured 4 tomcats with 1 Apache using worker.properties file. when we try to run 1000 concurrent users doing transactions on the website the site stops responding

Re: Upgrade to Tomcat 6 on Ubuntu

2009-06-15 Thread Christopher Piggott
On Fri, Jun 12, 2009 at 4:32 PM, André Warniera...@ice-sa.com wrote: If yes, you are using the Ubuntu prepackaged version of tomcat 6.x (?), and it probably install it alongside tomcat 5.5, not on top of it. Yep, that's exactly what it does. The ubuntu packages put tomcat6 into directories

RE: Problem with apache tomcat while running load test

2009-06-15 Thread Peter Crowther
Any messages in any of the (many) log files? Connector version? I assume mod_jk, but which? Out of interest, why are you using an unsupported Tomcat version? - Peter From: Aneesha Pant [mailto:aneesha.p...@edelcap.com] Sent: 15 June 2009 12:09 To:

Re: Same (virtual) machines, very different behaviour

2009-06-15 Thread Lucio Capuani
The interfaces are OK. The behavior indicates that may not be the case. OK. But since I can ping them and the server answers promptly when it's finally up - same for other servers bound to all the interfaces, by the way: apache on the public interface, exim on localhost: all of them works

Re: how to get the console output on ubuntu

2009-06-15 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 syed shah wrote: 1)How to get console output on ubuntu If you are running Tomcat with the startup script provided by Ubuntu in /etc/init.d/tomcat*, you have logs in /var/log/tomcat* and /var/log/daemon.log. The latter should contain console

Re: Upgrade to Tomcat 6 on Ubuntu

2009-06-15 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christopher Piggott wrote: The ubuntu packages for tomcat really aren't too bad. My only complaint is that they recommend running with GCJ, That was long ago I think. At least on Debian it defaults to OpenJDK. Cheers, Marcus -BEGIN PGP

RE: Problem with apache tomcat while running load test

2009-06-15 Thread Aneesha Pant
There is nothing in any of the log files. The application we are using works on Tomcat 5.0.16, have not yet tested on latest tomcat. Yes Mod_jk the version is mod_jk-1.2.25-httpd-2.0.59.so mod_jk-1.2.23-apache-2.2.x-linux-i68 Aneesha Pant mailto:aneesha.p...@edelcap.com-original

Re: Problem with apache tomcat while running load test

2009-06-15 Thread Pid
Aneesha Pant wrote: There is nothing in any of the log files. The application we are using works on Tomcat 5.0.16, have not yet tested on latest tomcat. Yes Mod_jk the version is mod_jk-1.2.25-httpd-2.0.59.so mod_jk-1.2.23-apache-2.2.x-linux-i68 If performance is an issue then you really

RE: Beginner with apache

2009-06-15 Thread Caldarale, Charles R
From: Hracek, Petr [mailto:petr.hra...@siemens-enterprise.com] Subject: RE: Beginner with apache Suse gyus are not responsible for this step. Now it has to be used tomcat-5.5. or distro package from SuSE. If it's the package from SuSE, then the SuSE guys *are* responsible. I would highly

RE: Upgrade to Tomcat 6 on Ubuntu

2009-06-15 Thread Martin Gainty
most of the required packages are catalinabat/sh command line parameters e.g. run -security Start in the current window with security manager i thought any additional packages would need to be configured in your startup params e.g. java

Re: using static helper classes within servlets

2009-06-15 Thread Sid Sidney
The classes I want to refactor are delegate objects that help my web tier connect to the ejb tier.   My servlets and also my Strut's action classes use these delegates to get references to the session beans in the backend tier. At this moment, the servlets and action classes create new

RE: using static helper classes within servlets

2009-06-15 Thread Caldarale, Charles R
From: Sid Sidney [mailto:pvcsv...@yahoo.com] Subject: Re: using static helper classes within servlets I was hoping to avoid this by making the delegate a static class or maybe a singleton. Not sure what you mean by static class; do you mean references to the delegate objects are stored in

Re: using static helper classes within servlets

2009-06-15 Thread Leon Rosenberg
On Mon, Jun 15, 2009 at 4:39 PM, Caldarale, Charles Rchuck.caldar...@unisys.com wrote: From: Sid Sidney [mailto:pvcsv...@yahoo.com] Subject: Re: using static helper classes within servlets On a modern JVM, the synchronized block around the retrieval of the reference will not cost much.  

Re: chunked encoding

2009-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 6/13/2009 8:57 PM, Martin Gainty wrote: how do you accomodate multi-mb size files? You do one of the following: 1. Use some means to determine the file size a priori (like using a static file, but in a database, so you can ask the db

Re: using static helper classes within servlets

2009-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 6/14/2009 1:01 PM, Jonathan Mast wrote: class BeanBag { private static SomeBean someBean = null; public static synchronized getSomeBean() { if (someBean == null) someBean = new SomeBean();

Re: [OT] using static helper classes within servlets

2009-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 6/14/2009 5:43 PM, David Blevins wrote: Regardless of that choice we will still handle sychronization of instantiation, so double-check-locking or other things will not be necessary. NB: DCL does not work in Java. Period.

Re: [OT] using static helper classes within servlets

2009-06-15 Thread Tim Funk
correction: The double checked idiom was fixed in java5. The variable which is checked needs to be declared as volatile. The link states that at the bottom. -Tim Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 6/14/2009 5:43 PM, David Blevins wrote:

RE: [OT] using static helper classes within servlets

2009-06-15 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: [OT] using static helper classes within servlets NB: DCL does not work in Java. Period. While that statement was true for 1.4 and prior JVMs, 1.5 actually made DCL work.

RE: chunked encoding

2009-06-15 Thread Martin Gainty
mg(hopefully) brief response Date: Mon, 15 Jun 2009 12:22:28 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: chunked encoding -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 6/13/2009 8:57 PM, Martin Gainty wrote: how do you accomodate

RE: using static helper classes within servlets

2009-06-15 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: using static helper classes within servlets You can get a significant performance improvement by doing this instead: private static final SomeBean someBean = new SomeBean(); public static getSomeBean() {

Re: deploy webapp to nfs shared drive

2009-06-15 Thread robr
Pid-2 wrote: Robert Rowntree wrote: we are running a cluster of 3 nodes. we are on linux . we run tomcat 5.5.15 and do not use the server.conf clustering . we cluster tomcat with an external load balancer. That's a really old Tomcat, lots and lots of bug fixes since then. You should

Re: using static helper classes within servlets

2009-06-15 Thread Jonathan Mast
Sid, what everyone is saying about my first reply to your post is correct, that code sample unnecessarily uses synchronization to achieve what static initialize could do less expensively. I wrote class awhile ago with paying much attention to the costs of synchronization. private static final

Tomcat cluster on Windows 7 RC

2009-06-15 Thread Sergey Elin
Hi, I'm trying to setup a simple 2-node tomcat cluster on Windows 7 RC. Everything works fine exept local nodes dosen't connect to each other and even dosen't find each other. Any external nodes can find and share sessions with local. I try to follow some googled tips (even turn off firewall)

Re: Comet error state always happen--why?

2009-06-15 Thread Filip Hanik - Dev Lists
most likely your client is closing your connection due to inactivity, nothing you can do about it you would do setTimeout(Long.MAX_VALUE) if you want a really long timeout, I'm not sure -1 is a valid value Filip stang wrote: Hi there, I'm trying to test out Tomcat's comet support by

Re: Tomcat cluster on Windows 7 RC

2009-06-15 Thread Filip Hanik - Dev Lists
you could be running into this regression https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 if you are using 6.0.20, otherwise you may not have multicasting configured Filip Sergey Elin wrote: Hi, I'm trying to setup a simple 2-node tomcat cluster on Windows 7 RC. Everything works fine

Re: using static helper classes within servlets

2009-06-15 Thread Sid Sidney
I appreciate all of the great input. Thanks!!! --- On Mon, 6/15/09, Jonathan Mast jhmast.develo...@gmail.com wrote: From: Jonathan Mast jhmast.develo...@gmail.com Subject: Re: using static helper classes within servlets To: Tomcat Users List users@tomcat.apache.org Date: Monday, June 15, 2009,

Re: [OT] using static helper classes within servlets

2009-06-15 Thread David Blevins
On Jun 15, 2009, at 9:32 AM, Christopher Schultz wrote: On 6/14/2009 5:43 PM, David Blevins wrote: Regardless of that choice we will still handle sychronization of instantiation, so double-check-locking or other things will not be necessary. NB: DCL does not work in Java. Period.

Apache mod_jk HTTPS problem

2009-06-15 Thread attacus
Recently I registered the domain for my application IP. Now I use Apache and mod_jk as front end for JBoss 4.2.2. I can access my application in three ways: thorough localhost, IP and domain name. In case of HTTP all works fine but requests for HTTPS pages are successfully only if I use localhost

Generated PDF download from Tomcat

2009-06-15 Thread Tokajac
Hello, I convert a html page with PD4ML to PDF. After that I want to download it via browser. This is used for download: view plaincopy to clipboardprint? response.setContentType(application/force-download); response.setHeader(Pragma, No-cache);

RE: Generated PDF download from Tomcat

2009-06-15 Thread attacus
response.setHeader(Pragma, public); response.setHeader(Cache-Control, max-age=0); response.setContentType(application/octet-stream); response.setHeader(content-disposition, attachment; filename=yourfile.pdf); And don't use window.open(). Just use direct link. -Original Message- From:

Logging - No More Connections

2009-06-15 Thread JebaB
I am currently using Tomcat 6.0 and in the previous versions I have used, I used to see a message when all the threads are in use and Tomcat was rejecting connections due to no more available threads. I am not able to see this message on Tomcat 6.0. I was able to add property in

Re: [OT] using static helper classes within servlets

2009-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 6/15/2009 12:43 PM, Tim Funk wrote: correction: The double checked idiom was fixed in java5. The variable which is checked needs to be declared as volatile. The link states that at the bottom. ...which is why I said: There are cases

localhost:8080 comms problem on a mac

2009-06-15 Thread Ken Bowen
Hi all, This isn't really a Tomcat problem, but I'm wondering if anyone here has encountered this. I haven't found anything useful by googling. I develop on a mac laptop, and after a recent software upgrade to OS X 10.5.7, I suddenly can't connect any browser to Tomcat running on port

RE: localhost:8080 comms problem on a mac

2009-06-15 Thread Caldarale, Charles R
From: Ken Bowen [mailto:kbo...@als.com] Subject: localhost:8080 comms problem on a mac catalina.out doesn't show any activity. What about the other Tomcat log files? I can use lsof to see that tomcat is listening on 8080 (and also on 8009). What about access from another computer (e.g.,

Re: localhost:8080 comms problem on a mac

2009-06-15 Thread Ken Bowen
Hi Chuck, Err, ...I seem to have misplaced ROOT (usually I'm a packrat, so I'll have to get a new one). I dropped another simple app in, and of course access to it works. (shamefaced...). I got started with a web-service servlet that wasn't responding got off track...time to go to bed.

Re: Tomcat cluster on Windows 7 RC

2009-06-15 Thread Sergey Elin
Hi, yes it is 6.0.20. I just downgrade to 6.0.18 and it seems to work. Thanks! 2009/6/15 Filip Hanik - Dev Lists devli...@hanik.com: you could be running into this regression https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 if you are using 6.0.20, otherwise you may not have