RE: Tomcat LoadBalancing

2010-10-14 Thread Deepak Pal

Hello,

My organisatin is also planning to use NginX web server by replacing 
apache2 web server in this configuration as a front end Load balancer 
and then provide load to tomcat. will it work or we should go with apache.


Deepak

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Oliver Siegmar
Hi all,

Am Thursday 14 October 2010 schrieb Christopher Schultz:
> So I'm surprised that Oliver is getting that weird output.

I wrote in my initial mail to this list "I have an enum that has an overridden 
toString() method". I thought it was clear what that means, obviously it was 
not. Sorry for the confusion. So this is a simplified example for my enum:

public enum MyEnum {

VALID(0),
INVALID(1);

private final int code;

private MyEnum(int code) {
this.code = code;
}

@Override
public String toString() {
return name() + " result, code: " + code;
}

}


My JSP looks like this:

Output per EL: ${myEnumValue} 
Output per JSTL: 


The output is:

Output per EL: VALID
Output per JSTL: VALID result, code 0


The thing is, that EL is using the name() method to print the enum and JSTL is 
using toString(). I did not expect a different enum treatment here.


One possible explaination is that Pid is right when he says "The related 
sources jar was built in 2006, and the pom for that indicates that it's 
dependent on JSP 2.0, rather than 2.1". Does anyone know if a true JSTL 1.2 
using JSP 2.1 is available in the maven repository? Anyway I will try a 
manually downloaded version tonight.



Bye

Oliver


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat LoadBalancing

2010-10-14 Thread Caldarale, Charles R
> From: Deepak Pal [mailto:deepak@orkash.com] 
> Subject: Re: Tomcat LoadBalancing

> Should I continue with this configuration or make 
> some changes to it.

Since you're already front-ending Tomcat with httpd, you should use httpd as 
the load balancer.  That's a proven and widely used technique.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat LoadBalancing

2010-10-14 Thread Deepak Pal

Hello All,

As I have already told you guys that I want to achieve Load balancing 
within Tomcat servers. In this configuration head Tomcat server will get 
request from apache web server and then distribute that load among the 
Tomcat load balancers members. But as Mark told us that Tomcat is not 
supporting reverse proxy . will this be possible for me to achieve this 
configuration. I have attached a document with said architecture .


Should I continue with this configuration or make some changes to it.

I will be very thankful if you guys give me some idea about that.

Thanks & Regards
Deepak


Archetecture.odg
Description: application/vnd.oasis.opendocument.graphics

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Inconsistent output of Java 5 enums

2010-10-14 Thread Martin Gainty

as of J2SE5 enum is a J2SE keyword 
 
http://en.wikibooks.org/wiki/Java_Programming/Keywords/enum

hth
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Thu, 14 Oct 2010 19:50:42 +0100
> From: p...@pidster.com
> To: users@tomcat.apache.org
> Subject: Re: Inconsistent output of Java 5 enums
> 
> On 14/10/2010 19:42, Christopher Schultz wrote:
> > Oliver,
> > 
> > On 10/14/2010 12:24 PM, Oliver Siegmar wrote:
> >> On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
> >>> What do your taglib declarations look like? I've only used the JSTL a
> >>> little bit, and I found that when you have the wrong taglib URL, things
> >>> don't work properly.
> > 
> >> This is how I use JSTL core:
> > 
> >> <%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
> > 
> > That looks like the one that worked properly for me.
> > 
> > I unfortunately know very little about the JSTL and it's interaction
> > with POJOs. I would expect that value="${enum}" would somehow convert
> > the value to a String for inclusion into the output stream, and calling
> > EnumType.toString sounds like the right thing to do.
> > 
> > Can you look at the translated .java file that comes from your sample
> > .jsp and post what the JSP compiler has generated?
> > 
> > This might be a bug, but I'm not really sure. What if the object is not
> > an enum?
> 
> Which JSTL implementation are you using and which Java version was it
> compiled for/on?
> 
> 
> p
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
  

Re: Apache Reverse Proxy required or not?

2010-10-14 Thread Ben Stringer
> Hi All,
>
>
>
> Quick question on what people's views are with regard to using Tomcat to
> host external/internet facing sites. A quick Google search recommends
> that these should be 'fronted' by Apache running reverse proxy. Is
> Tomcat classed as insecure and as such requires this proxy in front or
> is this due to the fact that Tomcat cannot reverse proxy on its own.
>

Certainly tomcat is up to the task of running external sites without a
reverse proxy. Some reasons you may choose to put a httpd reverse proxy in
front of tomcat:

- Allows displaying a "this site is down for maintenance" message when you
have taken your tomcat down for maintenance.
- Many third party security products supply agents as an apache httpd plugin.
- httpd can be used as a load balancer to a farm of tomcat processes.
- you may prefer to have the web access logging granularity that httpd
provides.

It really depends on your situation.

Cheers, Ben


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Konstantin Kolinko
2010/10/14 Christopher Schultz :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Oliver,
>
> On 10/14/2010 12:24 PM, Oliver Siegmar wrote:
>> On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
>>> What do your taglib declarations look like? I've only used the JSTL a
>>> little bit, and I found that when you have the wrong taglib URL, things
>>> don't work properly.
>>
>> This is how I use JSTL core:
>>
>> <%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
>
> That looks like the one that worked properly for me.
>
> I unfortunately know very little about the JSTL and it's interaction
> with POJOs. I would expect that value="${enum}" would somehow convert
> the value to a String for inclusion into the output stream, and calling
> EnumType.toString sounds like the right thing to do.
>
> Can you look at the translated .java file that comes from your sample
> .jsp and post what the JSP compiler has generated?
>
> This might be a bug, but I'm not really sure. What if the object is not
> an enum?
>

The chapter 1.18.2 of the Expression Language Specification Version
2.1, Final Release - May 8, 2006 (a part of JSR-000245: JSP 2.1)
defines how an EL expression is coerced to a String.

One of the points there is
* "Otherwise, if A is Enum, return A.name()"

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Pid
On 14/10/2010 21:20, Bernard Bondar wrote:
> Thank you!

But note: if the app contains JSPs and those JSPs were precompiled using
the Jasper Ant task, the app will need to be recompiled to avoid weird
errors.

If you don't know what I'm talking about, don't worry unless you see a
bunch of errors.


p

> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Sent: Thursday, October 14, 2010 4:16 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5 -6.0 Upgrade Question
> 
> Bernard,
> 
> On 10/14/2010 3:45 PM, Bernard Bondar wrote:
>> Almost forgot, what about a webapp (which I currently have) that is
>> under 5.5?
> 
> Presumably you are asking what you'd have to do in order to get your
> webapp deployed under the new install: you just have to deploy it again
> on Tomcat 6.0.
> 
> Think of them as completely separate, non-overlapping and disconnected
> pieces of software. Because they are.
> 
> -chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Pid
On 14/10/2010 20:31, Christopher Schultz wrote:
> All,
> 
> On 10/14/2010 3:24 PM, Christopher Schultz wrote:
>> Pid,
> 
>> On 10/14/2010 3:21 PM, Pid wrote:
>>> On 14/10/2010 20:03, Oliver Siegmar wrote:
 Hi Pid,

 Am Thursday 14 October 2010 schrieb Pid:
> Which JSTL implementation are you using and which Java version was it
> compiled for/on?

 http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar

 Using Sun/Oracle Java 6u21
> 
>>> OK.
> 
>>> The related sources jar was built in 2006, and the pom for that
>>> indicates that it's dependent on JSP 2.0, rather than 2.1.
> 
>>> At a guess, JSTL doesn't know what an enum is, so it's just doing what
>>> it would do for any other unknown Object subclass, and is calling the
>>> .toString() method.
> 
>> Something I didn't bother asking: what does the default Enum.toString
>> return?
> 
> Answer to my own question:
> 
> public class EnumTest
> {
>   public enum Weekday {
> SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY
>   }
> 
>   public static void main(String[] args)
>   {
> System.out.println(Weekday.SUNDAY);
>   }
> }
> 
> This produces "SUNDAY" as output.
> 
> The EnumTest.Weekday "class" doesn't override the toString method,
> allowing java.lang.Enum (it's superclass) to handle that.
> 
> java.lang.Enum.toString is implemented like this:
> 
> public String toString()
> {
>   return name;
> }
> 
> ... and "name" is a String which is initialized in the constructor (when
> I decompile EnumTest.Weekday, I can see it uses the string "Sunday", as
> one might expect).
> 
> So I'm surprised that Oliver is getting that weird output.

He's overriden the .toString method, no?

EL must be recognising it's an Enum and treating it differently.
There's a spec for that, so it'll probably define what to do with an Enum.


p

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-14 Thread Pid
On 14/10/2010 21:39, János Löbb wrote:
> 
> On Oct 14, 2010, at 3:00 PM, Christopher Schultz wrote:
> 
> All,
> 
> Is there any interest in my (finally) presenting my performance data for
> Tomcat connectors versus Apache httpd at the conference meetup?
> 
> I'd have to repeat my tests (my data is for 6.0.20 and we're on 6.0.29,
> now) plus add some stuff like "static data via mod_jk" just for a point
> of comparison to see what kind of overhead mod_jk adds to the mix.
> 
> That kind means a pain in my arse with about 15 days to get it done.
> 
> But, if there's interest, I'll get off my butt and show some purty
> pitchers at the meetup.
> 
> -chris
>>
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

> Chris,

> Can You post that also here on this list ?

Wiki, then that link to list, is probably better - if at all possible.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Meetup during ApacheConNA2010

2010-10-14 Thread jean-frederic clere
Hi,

We will have a meetup during the ApacheConNA2010 on Thursday 4th at
20h00. Meetups are free to attend and a opportunity to have short
presentation and discussion about the new Tomcat 7 and the latest
improvement done in the code.
See http://wiki.apache.org/tomcat/TomcatAtApacheConNA2010 and register
if you are around Atlanta and want to join us.

Cheers

Jean-Frederic

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-14 Thread Mark Thomas
On 14/10/2010 21:39, Christopher Schultz wrote:
> I'm about to have another baby, though.

Congrats.

>>> But, if there's interest, I'll get off my butt and show some purty
>>> pitchers at the meetup.
> 
>> I'd like to see. I think the discussion around the results could be very
>> interesting.
> 
> Note to self: bring body armor.
> 
> Seriously, though, I'm not prepared to do a formal presentation -
> especially because I have no idea what materials will be available
> (electricity?) at the meetup. What I am prepared to do is show up with a
> few hard copies of my raw data and graphs to circulate. Paper rarely
> experiences technical difficulties.

Last time there was a projector but I don't know what we'll get this
time. You plan sounds fine to me. The meet-up is meant to be informal.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-14 Thread János Löbb

On Oct 14, 2010, at 3:00 PM, Christopher Schultz wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> All,
> 
> Is there any interest in my (finally) presenting my performance data for
> Tomcat connectors versus Apache httpd at the conference meetup?
> 
> I'd have to repeat my tests (my data is for 6.0.20 and we're on 6.0.29,
> now) plus add some stuff like "static data via mod_jk" just for a point
> of comparison to see what kind of overhead mod_jk adds to the mix.
> 
> That kind means a pain in my arse with about 15 days to get it done.
> 
> But, if there's interest, I'll get off my butt and show some purty
> pitchers at the meetup.
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAky3U0EACgkQ9CaO5/Lv0PABKgCfcyr0VPFBzG/fowl5uXnpVyph
> ZUEAn0rDK2niCUWcE4f2sTkWmVjF3l+p
> =pyXG
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

Chris,

Can You post that also here on this list ?

Thanks ahead,

János
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 10/14/2010 4:21 PM, Mark Thomas wrote:
> On 14/10/2010 20:00, Christopher Schultz wrote:
>> All,
>>
>> Is there any interest in my (finally) presenting my performance data for
>> Tomcat connectors versus Apache httpd at the conference meetup?
>>
>> I'd have to repeat my tests (my data is for 6.0.20 and we're on 6.0.29,
>> now) plus add some stuff like "static data via mod_jk" just for a point
>> of comparison to see what kind of overhead mod_jk adds to the mix.
>>
>> That kind means a pain in my arse with about 15 days to get it done.
> 
> 15 days? That's loads of time. (Note to self - must think about writing
> my presentations...).

:)

I'm about to have another baby, though.

>> But, if there's interest, I'll get off my butt and show some purty
>> pitchers at the meetup.
> 
> I'd like to see. I think the discussion around the results could be very
> interesting.

Note to self: bring body armor.

Seriously, though, I'm not prepared to do a formal presentation -
especially because I have no idea what materials will be available
(electricity?) at the meetup. What I am prepared to do is show up with a
few hard copies of my raw data and graphs to circulate. Paper rarely
experiences technical difficulties.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3anYACgkQ9CaO5/Lv0PDYWgCfSPHV4avhHBbYdWmfL8NwYKp0
dxsAnRAY2OOUYsf2N+rfRVGQz3H2UWMu
=bh3/
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-14 Thread Mark Thomas
On 14/10/2010 20:00, Christopher Schultz wrote:
> All,
> 
> Is there any interest in my (finally) presenting my performance data for
> Tomcat connectors versus Apache httpd at the conference meetup?
> 
> I'd have to repeat my tests (my data is for 6.0.20 and we're on 6.0.29,
> now) plus add some stuff like "static data via mod_jk" just for a point
> of comparison to see what kind of overhead mod_jk adds to the mix.
> 
> That kind means a pain in my arse with about 15 days to get it done.

15 days? That's loads of time. (Note to self - must think about writing
my presentations...).

> But, if there's interest, I'll get off my butt and show some purty
> pitchers at the meetup.

I'd like to see. I think the discussion around the results could be very
interesting.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Bernard Bondar
Thanks!

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Thursday, October 14, 2010 4:17 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5 -6.0 Upgrade Question

> From: Bernard Bondar [mailto:bbon...@nyit.edu] 
> Subject: RE: Tomcat 5.5 -6.0 Upgrade Question

> forgot, what about a webapp (which I currently have) that is under 5.5?

You can usually just copy it over to the new Tomcat's appBase directory 
(usually named webapps).  As mentioned before, make sure that any  
element for it is in the webapp's META-INF/context.xml file, not in 
conf/server.xml, and also remove the path and docBase attributes, if present.  
(If that makes the  element empty, just delete it.)

Look at the webapps that are distributed with Tomcat for examples.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Bernard Bondar
Thank you!

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Thursday, October 14, 2010 4:16 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 -6.0 Upgrade Question

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bernard,

On 10/14/2010 3:45 PM, Bernard Bondar wrote:
> Almost forgot, what about a webapp (which I currently have) that is
> under 5.5?

Presumably you are asking what you'd have to do in order to get your
webapp deployed under the new install: you just have to deploy it again
on Tomcat 6.0.

Think of them as completely separate, non-overlapping and disconnected
pieces of software. Because they are.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3ZQQACgkQ9CaO5/Lv0PDRbACguXS+v9eLybqO0BaTjWRp1Uvm
F0wAn1/ti4jL5YwG7fUFc+H9ZPZozmlk
=uWJ5
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Caldarale, Charles R
> From: Bernard Bondar [mailto:bbon...@nyit.edu] 
> Subject: RE: Tomcat 5.5 -6.0 Upgrade Question

> forgot, what about a webapp (which I currently have) that is under 5.5?

You can usually just copy it over to the new Tomcat's appBase directory 
(usually named webapps).  As mentioned before, make sure that any  
element for it is in the webapp's META-INF/context.xml file, not in 
conf/server.xml, and also remove the path and docBase attributes, if present.  
(If that makes the  element empty, just delete it.)

Look at the webapps that are distributed with Tomcat for examples.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bernard,

On 10/14/2010 3:45 PM, Bernard Bondar wrote:
> Almost forgot, what about a webapp (which I currently have) that is
> under 5.5?

Presumably you are asking what you'd have to do in order to get your
webapp deployed under the new install: you just have to deploy it again
on Tomcat 6.0.

Think of them as completely separate, non-overlapping and disconnected
pieces of software. Because they are.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3ZQQACgkQ9CaO5/Lv0PDRbACguXS+v9eLybqO0BaTjWRp1Uvm
F0wAn1/ti4jL5YwG7fUFc+H9ZPZozmlk
=uWJ5
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Caldarale, Charles R
> From: Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00 
> [mailto:jason.t.hansel@navy.mil] 
> Subject: RE: Tomcat 5.5 -6.0 Upgrade Question

> How can I remove myself from these Posts? 

Read the bottom of every message...

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Apache Reverse Proxy required or not?

2010-10-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Subject: Re: Apache Reverse Proxy required or not?

> > > Is Tomcat classed as insecure 
> > 
> > Nope.

> Unless it's identified as Jetty. :(

> [Sorry, I can't find a reference to that thread 
> I swear it was this week!]

It was JRun, not Jetty.

http://marc.info/?l=tomcat-user&m=128673918709979&w=2

 - 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.



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Bernard Bondar
Almost forgot, what about a webapp (which I currently have) that is under 5.5?

Thanks,
Bernard

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Thursday, October 14, 2010 3:26 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 -6.0 Upgrade Question

On 14/10/2010 18:04, Bernard Bondar wrote:
> You're right, it's Windows 2003 server.  Not sure which download - any 
> suggestions?  You say I can install new alongside old wouldn't there be some 
> type of conflict?

Please respond to the list.

The .zip contains the server installer script as well.

If you're trying to install Tomcat as a Windows service, (rather than using the 
.bat files to start it) you'll need to uninstall the old service reference 
before installing the service reference for the new one, or use a different 
name.

If you're not installing Tomcat as a service, just do the next bit.

Unzip the download in directory alongside the old one.


p



> Thanks,
> Bernard
> 
> -Original Message-
> From: Pid [mailto:p...@pidster.com]
> Sent: Thursday, October 14, 2010 12:59 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5 -6.0 Upgrade Question
> 
> On 14/10/2010 17:34, Bernard Bondar wrote:
>> Hi All,
>>
>> Does anyone know if I need to uninstall  Tomcat 5.5  before I install 6.0 or 
>> can I just install on top of it?
> 
> Umm, probably not such a good idea.
> 
> Depending on the OS & download you're using (you didn't say), you can install 
> the new version alongside the old one.
> 
> 
> p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00
How can I remove myself from these Posts? 

-Original Message-
From: Bernard Bondar [mailto:bbon...@nyit.edu] 
Sent: Thursday, October 14, 2010 3:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5 -6.0 Upgrade Question

Thank you,
Bernard

-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Thursday, October 14, 2010 3:26 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 -6.0 Upgrade Question

On 14/10/2010 18:04, Bernard Bondar wrote:
> You're right, it's Windows 2003 server.  Not sure which download - any
suggestions?  You say I can install new alongside old wouldn't there be some
type of conflict?

Please respond to the list.

The .zip contains the server installer script as well.

If you're trying to install Tomcat as a Windows service, (rather than using
the .bat files to start it) you'll need to uninstall the old service
reference before installing the service reference for the new one, or use a
different name.

If you're not installing Tomcat as a service, just do the next bit.

Unzip the download in directory alongside the old one.


p



> Thanks,
> Bernard
> 
> -Original Message-
> From: Pid [mailto:p...@pidster.com]
> Sent: Thursday, October 14, 2010 12:59 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5 -6.0 Upgrade Question
> 
> On 14/10/2010 17:34, Bernard Bondar wrote:
>> Hi All,
>>
>> Does anyone know if I need to uninstall  Tomcat 5.5  before I install 6.0
or can I just install on top of it?
> 
> Umm, probably not such a good idea.
> 
> Depending on the OS & download you're using (you didn't say), you can
install the new version alongside the old one.
> 
> 
> p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



smime.p7s
Description: S/MIME cryptographic signature


Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

On 10/14/2010 3:24 PM, Christopher Schultz wrote:
> Pid,
> 
> On 10/14/2010 3:21 PM, Pid wrote:
>> On 14/10/2010 20:03, Oliver Siegmar wrote:
>>> Hi Pid,
>>>
>>> Am Thursday 14 October 2010 schrieb Pid:
 Which JSTL implementation are you using and which Java version was it
 compiled for/on?
>>>
>>> http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
>>>
>>> Using Sun/Oracle Java 6u21
> 
>> OK.
> 
>> The related sources jar was built in 2006, and the pom for that
>> indicates that it's dependent on JSP 2.0, rather than 2.1.
> 
>> At a guess, JSTL doesn't know what an enum is, so it's just doing what
>> it would do for any other unknown Object subclass, and is calling the
>> .toString() method.
> 
> Something I didn't bother asking: what does the default Enum.toString
> return?

Answer to my own question:

public class EnumTest
{
  public enum Weekday {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY
  }

  public static void main(String[] args)
  {
System.out.println(Weekday.SUNDAY);
  }
}

This produces "SUNDAY" as output.

The EnumTest.Weekday "class" doesn't override the toString method,
allowing java.lang.Enum (it's superclass) to handle that.

java.lang.Enum.toString is implemented like this:

public String toString()
{
  return name;
}

... and "name" is a String which is initialized in the constructor (when
I decompile EnumTest.Weekday, I can see it uses the string "Sunday", as
one might expect).

So I'm surprised that Oliver is getting that weird output.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3Wn4ACgkQ9CaO5/Lv0PB1yACeKEbeavY+ois6H2BMndqRLWsm
CxEAn0SsiuLsvv6O/Szd3QKsPZ66Mxgj
=bQGI
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Bernard Bondar
Thank you,
Bernard

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Thursday, October 14, 2010 3:26 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 -6.0 Upgrade Question

On 14/10/2010 18:04, Bernard Bondar wrote:
> You're right, it's Windows 2003 server.  Not sure which download - any 
> suggestions?  You say I can install new alongside old wouldn't there be some 
> type of conflict?

Please respond to the list.

The .zip contains the server installer script as well.

If you're trying to install Tomcat as a Windows service, (rather than using the 
.bat files to start it) you'll need to uninstall the old service reference 
before installing the service reference for the new one, or use a different 
name.

If you're not installing Tomcat as a service, just do the next bit.

Unzip the download in directory alongside the old one.


p



> Thanks,
> Bernard
> 
> -Original Message-
> From: Pid [mailto:p...@pidster.com]
> Sent: Thursday, October 14, 2010 12:59 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5 -6.0 Upgrade Question
> 
> On 14/10/2010 17:34, Bernard Bondar wrote:
>> Hi All,
>>
>> Does anyone know if I need to uninstall  Tomcat 5.5  before I install 6.0 or 
>> can I just install on top of it?
> 
> Umm, probably not such a good idea.
> 
> Depending on the OS & download you're using (you didn't say), you can install 
> the new version alongside the old one.
> 
> 
> p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Pid
On 14/10/2010 18:04, Bernard Bondar wrote:
> You're right, it's Windows 2003 server.  Not sure which download - any 
> suggestions?  You say I can install new alongside old wouldn't there be some 
> type of conflict?

Please respond to the list.

The .zip contains the server installer script as well.

If you're trying to install Tomcat as a Windows service, (rather than
using the .bat files to start it) you'll need to uninstall the old
service reference before installing the service reference for the new
one, or use a different name.

If you're not installing Tomcat as a service, just do the next bit.

Unzip the download in directory alongside the old one.


p



> Thanks,
> Bernard
> 
> -Original Message-
> From: Pid [mailto:p...@pidster.com] 
> Sent: Thursday, October 14, 2010 12:59 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5 -6.0 Upgrade Question
> 
> On 14/10/2010 17:34, Bernard Bondar wrote:
>> Hi All,
>>
>> Does anyone know if I need to uninstall  Tomcat 5.5  before I install 6.0 or 
>> can I just install on top of it?
> 
> Umm, probably not such a good idea.
> 
> Depending on the OS & download you're using (you didn't say), you can install 
> the new version alongside the old one.
> 
> 
> p



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pid,

On 10/14/2010 3:21 PM, Pid wrote:
> On 14/10/2010 20:03, Oliver Siegmar wrote:
>> Hi Pid,
>>
>> Am Thursday 14 October 2010 schrieb Pid:
>>> Which JSTL implementation are you using and which Java version was it
>>> compiled for/on?
>>
>> http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
>>
>> Using Sun/Oracle Java 6u21
> 
> OK.
> 
> The related sources jar was built in 2006, and the pom for that
> indicates that it's dependent on JSP 2.0, rather than 2.1.
> 
> At a guess, JSTL doesn't know what an enum is, so it's just doing what
> it would do for any other unknown Object subclass, and is calling the
> .toString() method.

Something I didn't bother asking: what does the default Enum.toString
return?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3WM8ACgkQ9CaO5/Lv0PA1dgCghEZM8Y1K+hWs+jH6mUqGau4W
uz8An1VCUaS60Af2T8L54dd2c05tgQmf
=yrfV
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Pid
On 14/10/2010 20:03, Oliver Siegmar wrote:
> Hi Pid,
> 
> Am Thursday 14 October 2010 schrieb Pid:
>> Which JSTL implementation are you using and which Java version was it
>> compiled for/on?
> 
> http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
> 
> Using Sun/Oracle Java 6u21

OK.

The related sources jar was built in 2006, and the pom for that
indicates that it's dependent on JSP 2.0, rather than 2.1.

At a guess, JSTL doesn't know what an enum is, so it's just doing what
it would do for any other unknown Object subclass, and is calling the
.toString() method.


p



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bernard,

On 10/14/2010 3:08 PM, Bernard Bondar wrote:
> Thanks, do you think I can install 6.0 on the same server as the 5.5
> without having conflicts?

I was only adding to comments other have made. What did they say?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3V6gACgkQ9CaO5/Lv0PAMSgCggDjLNzaJtr3dnmtuzJfz6VWL
HscAniHHC0ZEh1NFPmBXdu4pWxZaPdcp
=KOLk
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Reverse Proxy required or not?

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

On 10/14/2010 1:01 PM, Pid wrote:
> On 14/10/2010 17:19, Rob Gregory wrote:
>>
>> Is Tomcat classed as insecure 
> 
> Nope.

Unless it's identified as Jetty. :(

[Sorry, I can't find a reference to that thread I swear it was this
week!]

>> and as such requires this proxy in front or is this due to the fact that
>> Tomcat cannot reverse proxy on its own. 
> 
> Why does it need to?
> 
> (Arguably, putting HTTPD in front of Tomcat gives you a larger potential
> for vulnerabilities, not less)

...or at least a different set of vulnerabilities.

As Mark Thomas mentioned the other day, Tomcat cannot currently do
reverse-proxying, though it's been considered a few times in the past.
Nobody has ever bothered to implement it, probably because Apache httpd
does such a good job at it.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3V1cACgkQ9CaO5/Lv0PAcFgCgh6PWoc0ZXGrbLikOo5WU0WYc
qm8An25SGd+07tr8tTkcv40/tvx7kcUk
=MNJf
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bernard,

On 10/14/2010 12:34 PM, Bernard Bondar wrote:
> Does anyone know if I need to uninstall  Tomcat 5.5  before I install
> 6.0 or can I just install on top of it?

I'd like to add to the comments of Chuck and Pid:

No matter what you do, do not try to copy your conf/server.xml from your
5.5 install to your 6.0 install. Instead, use the new conf/server.xml as
a guide, and add anything you need.

For our production environment, the only changes we make from the
default conf/server.xml are to configure the shutdown port and the
s: everything else stays stock.

If you haven't already done so, move any  configuration you
have out of your conf/server.xml and into your webapp's
META-INF/context.xml. Don't forget to remove any "path" or docBase
attributes you may have on the  element.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3VDYACgkQ9CaO5/Lv0PDUFgCgt9UZrsGZz8qQGEgVeYYOKDr5
9Q0AoLoMjArM1s0DaYRa00zuPip5JW6a
=j35J
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Oliver Siegmar
Hi Pid,

Am Thursday 14 October 2010 schrieb Pid:
> Which JSTL implementation are you using and which Java version was it
> compiled for/on?

http://repo2.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar

Using Sun/Oracle Java 6u21


Bye

Oliver

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



ApacheCon2010NA Meetup / Connector Performance

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Is there any interest in my (finally) presenting my performance data for
Tomcat connectors versus Apache httpd at the conference meetup?

I'd have to repeat my tests (my data is for 6.0.20 and we're on 6.0.29,
now) plus add some stuff like "static data via mod_jk" just for a point
of comparison to see what kind of overhead mod_jk adds to the mix.

That kind means a pain in my arse with about 15 days to get it done.

But, if there's interest, I'll get off my butt and show some purty
pitchers at the meetup.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3U0EACgkQ9CaO5/Lv0PABKgCfcyr0VPFBzG/fowl5uXnpVyph
ZUEAn0rDK2niCUWcE4f2sTkWmVjF3l+p
=pyXG
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Where do files served get logged?

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dave,

On 10/14/2010 12:58 PM, laredotornado wrote:
> I haven't done any benchmarks, and I'm assuming some of the folks on this
> thread are the Tomcat developers and can speak first hand to the speed.

While I am not a Tomcat developer, I can speak to the performance of
Tomcat with regard to static files: if you use the APR or NIO connectors
with sendFile="true", your performance will be on par with Apache httpd.
The blocking (default) connector has pretty horrible performance,
comparably.

That being said, I have tested a variety of static file sizes, and if
you have files that are less than about 64KiB in size, it doesn't matter
what connector you use.

*I'll repeat that for emphasis: all connectors perform the same with
static files up to about 64KiB in size.*

My tests were done against Tomcat 6.0.20 and Apache httpd 2.2.11.

> If so, I would encourage you to update the wiki...
> 
> http://wiki.apache.org/tomcat/FAQ/Connectors
> 
> because it mentions that Apache is faster at serving static content than
> Tomcat for high-traffic sites.

It says that "historically, Apache httpd has been faster".
Unfortunately, it does not say that this is no longer true.

There's also another piece of this puzzle: the use of Apache httpd makes
all your dynamic requests that must be proxied to Tomcat slower. So, the
question is this: do you get more static of dynamic requests? If you get
more static requests than dynamic requests, maybe running Apache httpd
out front might make sense. If you have only a few static requests and
mostly dynamic ones, you may be optimizing 1% of your traffic and
de-optimizing 99% of it.

There is also another option: use an image server. Don't put your static
files on the same server as your (dynamic) webapp. Then, have that other
server serve those files hopefully faster.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3UrgACgkQ9CaO5/Lv0PC5sQCfbd9VQh10Fj93LwcTB1x4wAmg
dBkAoMQGaQUFPyntawbVDaFSt4YTThCK
=CQ2+
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Pid
On 14/10/2010 19:42, Christopher Schultz wrote:
> Oliver,
> 
> On 10/14/2010 12:24 PM, Oliver Siegmar wrote:
>> On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
>>> What do your taglib declarations look like? I've only used the JSTL a
>>> little bit, and I found that when you have the wrong taglib URL, things
>>> don't work properly.
> 
>> This is how I use JSTL core:
> 
>> <%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
> 
> That looks like the one that worked properly for me.
> 
> I unfortunately know very little about the JSTL and it's interaction
> with POJOs. I would expect that value="${enum}" would somehow convert
> the value to a String for inclusion into the output stream, and calling
> EnumType.toString sounds like the right thing to do.
> 
> Can you look at the translated .java file that comes from your sample
> .jsp and post what the JSP compiler has generated?
> 
> This might be a bug, but I'm not really sure. What if the object is not
> an enum?

Which JSTL implementation are you using and which Java version was it
compiled for/on?


p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Inconsistent output of Java 5 enums

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Oliver,

On 10/14/2010 12:24 PM, Oliver Siegmar wrote:
> On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
>> What do your taglib declarations look like? I've only used the JSTL a
>> little bit, and I found that when you have the wrong taglib URL, things
>> don't work properly.
> 
> This is how I use JSTL core:
> 
> <%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

That looks like the one that worked properly for me.

I unfortunately know very little about the JSTL and it's interaction
with POJOs. I would expect that value="${enum}" would somehow convert
the value to a String for inclusion into the output stream, and calling
EnumType.toString sounds like the right thing to do.

Can you look at the translated .java file that comes from your sample
.jsp and post what the JSP compiler has generated?

This might be a bug, but I'm not really sure. What if the object is not
an enum?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3TwoACgkQ9CaO5/Lv0PDsCwCgqJ0NM6aS0YADrzoHQhB+4ZYg
65kAoJQvuLUaPMjOBVhk2FED/TaLJpWA
=M0y7
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Access Log Valve - Query String

2010-10-14 Thread Tim Funk

Use pattern="combined" to see the querystring

-Tim

On 10/12/2010 12:21 PM, Leo Donahue - PLANDEVX wrote:

I am currently using the common pattern to log all requests using the Access 
Log Valve.

 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Where do files served get logged?

2010-10-14 Thread Pid
On 14/10/2010 17:58, laredotornado wrote:
> 
> I haven't done any benchmarks, and I'm assuming some of the folks on this
> thread are the Tomcat developers and can speak first hand to the speed.  If
> so, I would encourage you to update the wiki ...
> 
> http://wiki.apache.org/tomcat/FAQ/Connectors
> 
> because it mentions that Apache is faster at serving static content than
> Tomcat for high-traffic sites.  - Dave

It says:

"Apache is faster at serving static content than Tomcat. But unless you
have a high traffic site, this point is useless. But in some scenarios,
tomcat can be faster than Apache httpd. So benchmark YOUR site."

If you read the rest of it, it also says (in bold):

"Tomcat can perform at httpd speeds when using the proper connector (APR
with sendFile enabled). Speed should not be considered a factor when
choosing between Apache httpd and Tomcat "


p


> Jeff Hubbs-2 wrote:
>>
>>   On 10/14/10 12:08 PM, Caldarale, Charles R wrote:
>>>
 I'm trying to make sure Tomcat is not serving static
 files that Apache can serve more efficiently.
>>> Why do you think httpd can serve them more efficiently?
>> I recall from reading about Slashdot's architecture some years ago 
>> (Perl/MySQL at the time) that they had separate servers running Tux for 
>> static content...
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>>
> 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Handling Tomcat crash

2010-10-14 Thread Pid
On 14/10/2010 17:45, Maximilian Stocker wrote:
> -Original Message-
> From: Tarun Gupta [mailto:tarun.gu...@digitalmountain.com]
> Sent: Thursday, October 14, 2010 12:41 PM
> To: users@tomcat.apache.org
> Subject: Handling Tomcat crash
> 
> In the event the tomcat crashes I would like to restart tomcat automatically
> or better be alerted of the status that it is crashed. I'm running Tomcat on
> Windows server.

Which version of Tomcat? JVM? Windows?

> Is there any script which may restart tomcat or any opensource tool which
> will send me an alert that it is crashed.

Well there's lots of monitoring tools around.  GIYF.

> The easiest thing would be to use the tools provided by the OS. Go
into services and configure the recovery options as you desire. Restart
the service is an option.
>
> But why is tomcat crashing?
>

+1  This is a more important question.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Apache Reverse Proxy required or not?

2010-10-14 Thread Pid
On 14/10/2010 17:19, Rob Gregory wrote:
> Hi All,
> 
> Quick question on what people's views are with regard to using Tomcat to
> host external/internet facing sites. A quick Google search recommends
> that these should be 'fronted' by Apache running reverse proxy. 

What reasons did they give?

> Is Tomcat classed as insecure 

Nope.

> and as such requires this proxy in front or is this due to the fact that
> Tomcat cannot reverse proxy on its own. 

Why does it need to?

(Arguably, putting HTTPD in front of Tomcat gives you a larger potential
for vulnerabilities, not less)


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Pid
On 14/10/2010 17:34, Bernard Bondar wrote:
> Hi All,
> 
> Does anyone know if I need to uninstall  Tomcat 5.5  before I install 6.0 or 
> can I just install on top of it?

Umm, probably not such a good idea.

Depending on the OS & download you're using (you didn't say), you can
install the new version alongside the old one.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Where do files served get logged?

2010-10-14 Thread laredotornado

I haven't done any benchmarks, and I'm assuming some of the folks on this
thread are the Tomcat developers and can speak first hand to the speed.  If
so, I would encourage you to update the wiki ...

http://wiki.apache.org/tomcat/FAQ/Connectors

because it mentions that Apache is faster at serving static content than
Tomcat for high-traffic sites.  - Dave





Jeff Hubbs-2 wrote:
> 
>   On 10/14/10 12:08 PM, Caldarale, Charles R wrote:
>>
>>> I'm trying to make sure Tomcat is not serving static
>>> files that Apache can serve more efficiently.
>> Why do you think httpd can serve them more efficiently?
> I recall from reading about Slashdot's architecture some years ago 
> (Perl/MySQL at the time) that they had separate servers running Tux for 
> static content...
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Where-do-files-served-get-logged--tp29963979p29964522.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Handling Tomcat crash

2010-10-14 Thread Maximilian Stocker
The easiest thing would be to use the tools provided by the OS. Go into 
services and configure the recovery options as you desire. Restart the service 
is an option.

But why is tomcat crashing?

-Original Message-
From: Tarun Gupta [mailto:tarun.gu...@digitalmountain.com]
Sent: Thursday, October 14, 2010 12:41 PM
To: users@tomcat.apache.org
Subject: Handling Tomcat crash

In the event the tomcat crashes I would like to restart tomcat automatically
or better be alerted of the status that it is crashed. I'm running Tomcat on
Windows server.

Is there any script which may restart tomcat or any opensource tool which
will send me an alert that it is crashed.



Thanks.



Tarun






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Handling Tomcat crash

2010-10-14 Thread Tarun Gupta
In the event the tomcat crashes I would like to restart tomcat automatically
or better be alerted of the status that it is crashed. I'm running Tomcat on
Windows server.

Is there any script which may restart tomcat or any opensource tool which
will send me an alert that it is crashed.

 

Thanks.

 

Tarun

 

 



RE: Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Caldarale, Charles R
> From: Bernard Bondar [mailto:bbon...@nyit.edu] 
> Subject: Tomcat 5.5 -6.0 Upgrade Question

> Does anyone know if I need to uninstall Tomcat 5.5 before I 
> install 6.0 or can I just install on top of it?

You do not need to uninstall prior versions, but you certainly don't want to 
install on top of an existing version.  Always install in a different location, 
configure the new version, then update scripts as needed to point to the new 
spot.

(The above presumes you're installing a real Tomcat downloaded from 
tomcat.apache.org; if you're using a 3rd-party repackaged version, you're on 
your own.)

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 5.5 -6.0 Upgrade Question

2010-10-14 Thread Bernard Bondar
Hi All,

Does anyone know if I need to uninstall  Tomcat 5.5  before I install 6.0 or 
can I just install on top of it?

Thank you,
Bernard



Apache Reverse Proxy required or not?

2010-10-14 Thread Rob Gregory
Hi All,

 

Quick question on what people's views are with regard to using Tomcat to
host external/internet facing sites. A quick Google search recommends
that these should be 'fronted' by Apache running reverse proxy. Is
Tomcat classed as insecure and as such requires this proxy in front or
is this due to the fact that Tomcat cannot reverse proxy on its own. 

 

Cheers

Rob

 



Re: Insonsistent output of Java 5 enums

2010-10-14 Thread Oliver Siegmar
Hi Chris,

On Wednesday 13 October 2010 21:21:33 Christopher Schultz wrote:
> What do your taglib declarations look like? I've only used the JSTL a
> little bit, and I found that when you have the wrong taglib URL, things
> don't work properly.

This is how I use JSTL core:

<%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


Bye

Oliver

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Where do files served get logged?

2010-10-14 Thread Pid
On 14/10/2010 17:05, laredotornado wrote:
> 
> Hi,
> 
> I'm using Tomcat 6.0.26.  Where is it configured, or where do I look to see
> what files Tomcat has served?  I'm trying to make sure Tomcat is not serving
> static files that Apache can serve more efficiently.

[I'm wincing & extending a cordial offer of some sandbags]


Getting the actual question out of the way first: you're looking for an
access log, which is (usually) defined inside the Host element, as per:

 http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve

The logs are usually found in your tomcat/logs directory.


Addressing the indirect assertion second: Tomcat can serve static files
just as efficiently as Apache HTTPD, it's an old, out-of-date belief
that it can't.

There's a distinct possibility that this thread will shortly contain a
series of messages which explain how & why...


p


> Thanks, - Dave



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Where do files served get logged?

2010-10-14 Thread Edward Bicker
In the served files log.

-Original Message-
>From: Jeff Hubbs 
>Sent: Oct 14, 2010 12:15 PM
>To: Tomcat Users List 
>Subject: Re: Where do files served get logged?
>
>  On 10/14/10 12:08 PM, Caldarale, Charles R wrote:
>>
>>> I'm trying to make sure Tomcat is not serving static
>>> files that Apache can serve more efficiently.
>> Why do you think httpd can serve them more efficiently?
>I recall from reading about Slashdot's architecture some years ago 
>(Perl/MySQL at the time) that they had separate servers running Tux for 
>static content...
>
>-
>To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>For additional commands, e-mail: users-h...@tomcat.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Where do files served get logged?

2010-10-14 Thread Jeff Hubbs

 On 10/14/10 12:08 PM, Caldarale, Charles R wrote:



I'm trying to make sure Tomcat is not serving static
files that Apache can serve more efficiently.

Why do you think httpd can serve them more efficiently?
I recall from reading about Slashdot's architecture some years ago 
(Perl/MySQL at the time) that they had separate servers running Tux for 
static content...


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Where do files served get logged?

2010-10-14 Thread Caldarale, Charles R
> From: laredotornado [mailto:laredotorn...@gmail.com] 
> Subject: Where do files served get logged?

> Where is it configured, or where do I look to see what files 
> Tomcat has served?

You can enable the AccessLogValve in conf/server.xml, and tailor it to your 
liking.

> I'm trying to make sure Tomcat is not serving static
> files that Apache can serve more efficiently.

Why do you think httpd can serve them more efficiently?

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Where do files served get logged?

2010-10-14 Thread laredotornado

Hi,

I'm using Tomcat 6.0.26.  Where is it configured, or where do I look to see
what files Tomcat has served?  I'm trying to make sure Tomcat is not serving
static files that Apache can serve more efficiently.

Thanks, - Dave
-- 
View this message in context: 
http://old.nabble.com/Where-do-files-served-get-logged--tp29963979p29963979.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Disable class monitoring for reloading container classes

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jane,

On 10/14/2010 11:42 AM, Jane Muse wrote:
>  Chris wrote:
>  
> 
> We didn't change  in context.xml from how it was
> installed in tomcat 6.0.18. The default is commented out. But thanks for
> the info. 

That's not what Subversion says:

http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/conf/context.xml

Someone has modified this file.

>  deployed to "/APP_NAME" automatically, unless you have  .
> 
> And if autoDeploy="false" then you have to shutdown tomcat, delete the
> CATALINA_BASE/WEBAPPS/APP_NAME directory, and restart tomcat in order
> for the webapp to deploy, correct? I think we'll do it this way in the
> production environment.

If you really are using
CATALINA_BASE/conf/[enginename]/[hostname]/[appname].xml, then I
wouldn't expect anything to be copied into CATALINA_BASE/webapps during
deployment. Instead, the WAR should be exploded into the
CATALINA_BASE/work directory. You should definitely delete that if you
intend to re-deploy your webapp.

When you re-deploy, you should either check
CATALINA_BASE/conf/[enginename]/[hostname]/[appname].xml or delete it
and update it from your canonical source
(COMPANY_NAME/APP_CONF/DIR/app_name.xml or was it
COMPANY_NAME/APP_CONF_DIR/conf/APP_NAME.xml or was it
COMPANY_NAME/APP_CONF_DIR/APP_NAME.xml... it wasn't at all clear from
your previous message).

> 
>  
> Ok, I removed it. It's not necessary because the name of the.xml file
> will be used as the context path, correct?

It's actually illegal. I wish someone would apply a patch that would
refuse to deploy a context with the path specified in it. It's probably
too much of a pain to code it so that it knows when it's actually legal
(when it's in server.xml, which is not recommended).

>  DST kicks-in
> 
> I'll definitely let you know!

Good luck,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3KPQACgkQ9CaO5/Lv0PBulACfQJcY6/6ZcGLTOtbytC7JnVbb
77gAnR6UWh3s5eWD02nx7fsxh4MGFZ6v
=yJ4S
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why I am getting Malware detection in Tomcat 5.5.031

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Saurabh,

On 10/14/2010 11:48 AM, Christopher Schultz wrote:
> If you want to keep the file, but remove the warnings, try opening the
> file in an archiver and removing "*.o" from the contents. You may have
> to look deep in subdirectories to find them all.

Also delete *.a from the file.

Note that the "virus" found was actually called "HEUR/ELF.Malformed":

http://www.avira.com/en/support-threats-summary/tid/5245/threat/HEUR.ELF.Malformed

Avira has found a file with an illegal ELF format. These are object
files in the tarball that should have been removed before packaging.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3JxgACgkQ9CaO5/Lv0PAhuwCaA62OSurXHOumJlu5iNMuPO+3
vBQAn0q/REUTt2URWS6KVmP0n4y5tXQG
=dw1H
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why I am getting Malware detection in Tomcat 5.5.031

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Saurabh,

On 10/10/2010 11:29 AM, Saurabh Agrawal (PSL) wrote:
> I am trying to install apache tomcat 5.5.031 on Windows 7

Hopefully, you means 5.5.31, since 5.5.031 is not a valid Tomcat version
number.

Are you installing from scratch? If so, I would recommend Tomcat 6.0.29,
or even Tomcat 7 if you're willing to live on the edge.

> , but I am getting
> Malware detection by Avira.
> Before reporting this problem to Avira, I would like to confirm if something
> not suspicious in tomcat package.

This is a bug logged against Tomcat 6.0.x, but it could be the same
problem in Tomcat 5.5.31:

https://issues.apache.org/bugzilla/show_bug.cgi?id=49674

You should be able to simply delete this file
(commons-daemon-native.tar.gz): you are not likely to be using the file.
If you want to keep the file, but remove the warnings, try opening the
file in an archiver and removing "*.o" from the contents. You may have
to look deep in subdirectories to find them all.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3JlUACgkQ9CaO5/Lv0PBS4gCfRTmniwyZ/8IzUTXlSknPhJ99
7bkAoKflv48suHcgMJg0l0t+Auz6Cp4L
=kwXV
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Disable class monitoring for reloading container classes

2010-10-14 Thread Jane Muse
 Chris wrote:
 

We didn't change  in context.xml from how it was
installed in tomcat 6.0.18. The default is commented out. But thanks for
the info. 

.

And if autoDeploy="false" then you have to shutdown tomcat, delete the
CATALINA_BASE/WEBAPPS/APP_NAME directory, and restart tomcat in order
for the webapp to deploy, correct? I think we'll do it this way in the
production environment.


mailto:ch...@christopherschultz.net] 
Sent: Thursday, October 14, 2010 7:54 AM
To: Tomcat Users List
Subject: Re: Disable class monitoring for reloading container classes

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jane,

On 10/13/2010 5:41 PM, Jane Muse wrote:
> We have a directory called COMPANY_NAME/tomcat that is CATALINA_BASE. 
> I sent the contents of CATALINA_BASE/conf/context.xml in the email 
> below.

Great. It's probably not necessary to comment-out the 
as the context should not be reloadable if you set reloadable="true",
though I haven't tried actually 'touch'ing web.xml just to see if it
would trigger a context reload.

> We have a CATALINA_BASE/WEBAPPS/APP_NAME directory.

Okay. If you have a standard server.xml, that means that APP_NAME will
be deployed to "/APP_NAME" automatically, unless you have .

> We also have a COMPANY_NAME/APP_CONF_DIR that contains a /conf 
> directory, the APP_NAME.war file, and an APP_NAME.xml file.

Those files will be ignored unless there are other configuration
settings that make them relevant.

> There is a
> context element defined in the COMPANY_NAME/APP_CONF/DIR/app_name.xml
> file with reloadable="false". This is the one I was changing. However 
> it turns out that we used this one as a placeholder in case the one in

> the CATALINA_BASE/conf/[enginename]/[hostname]/app_name.xml got
deleted.

That sounds like a good plan. Again, the file you were editing was not
being consulted by Tomcat. You'll need to copy that file into
CATALINA_BASE/conf/[enginename]/[hostname]/[app_name].xml.

As Chuck states, you must remove the "path" attribute from the 
element: it will be ignored at best and cause a double-deployment (or
failed deployment) at worst. Or, it might cause your webapp to reload
for unknown reasons :)

> We also have a context element in a place I hadn't seen before at:
> CATALINA_BASE/conf/[enginename]/[hostname]/app_name.xml. This context 
> element had reloadable="true". I changed it to reloadable="false" and 
> restarted tomcat. Now the app does not get reloaded! Fixed. Thanks to 
> all.

This was going to be my final attempt: that you were editing the wrong
configuration file.

Still, we'd love to hear the resolution of the file timestamp changing
when DST kicks-in. Please let us know what you find out.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3GZEACgkQ9CaO5/Lv0PBMWACeL/QV75reOUF3KPewOcdwp7KO
jBEAoMGqeakQr/JsiEMpGFGJTwcSl7Nw
=5BkZ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connecting Tomcat 6.0.26 to MySQL 5.1

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

On 10/11/2010 7:32 AM, m.os...@dsl.pipex.com wrote:
> Having rebuilt my Windows PC, I am trying to get Tomcat running
> under NetBeans to connect to MySQL.

If you were rebuilding, why did you stick with Microsoft Windows? :)

> I believe MySQL is alright because the various tools retrieve data 
> correctly. But when my Java web app is run from NetBeans, Tomcat 
> shows the homepage but then gives a Java null pointer error. The
> logs tell me this is to do with retrieving user data from the
> database. So I'm assuming that the two system components are not able
> to talk to each other. But why?

It could be anything. Care to show us the entire stack trace?

> I have mySQLConnector in the NetBeans library my web app is using. 
> I've placed MySQL Connector in Tomcat's config folder,

Which folder? Please be specific.

> MySQL Connector is also in the classpath of the PC.

A normal Tomcat installation will ignore any CLASSPATH setting. You
should not try to use the CLASSPATH for anything at all. You should also
make sure that the MySQL Connector/J library is only available in one
place in the ClassLoader hierarchy: namely, in TOMCAT_HOME/lib.

> The context.xml file in the web app is set to use the root user in
> MySQL and all relevant authorities in MySQL are set.

This is a bad idea: you should use a MySQL user that doesn't have SUPER
privileges.

> Code seems to be wrong only in IE so must be something to do with 
> security settings.

Sounds like you have a broken webapp.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3JNwACgkQ9CaO5/Lv0PCL+gCeN+F67BRlGu0e/rpiUBBcqa79
QQAAn1Ck4Gn+2uuHhpD6zdgLlC5r2R7P
=XofB
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Disable class monitoring for reloading container classes

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 10/14/2010 11:18 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Subject: Re: Disable class monitoring for reloading container classes
> 
>> It's probably not necessary to comment-out the 
>> as the context should not be reloadable if you set reloadable="true",
> 
> Is that a typo?  Do you mean reloadable="false"?

Er, yeah. It's overcast and rainy here today, making my brain move slowly.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3I+kACgkQ9CaO5/Lv0PAWDwCgtqsEnEqfGmKLrgU68qujXWdx
qPQAn04mg3npXZrdkFp80YiexY0Of9eX
=ZXrQ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Disable class monitoring for reloading container classes

2010-10-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Subject: Re: Disable class monitoring for reloading container classes

> It's probably not necessary to comment-out the 
> as the context should not be reloadable if you set reloadable="true",

Is that a typo?  Do you mean reloadable="false"?

 - 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.



Re: Tomcat performance under low load

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vijay,

On 10/13/2010 7:35 PM, Vijay Menon wrote:
> We're scaling to satisfactory loads of 250 concurrent
> requests serving pages in 0.5 seconds.

Excellent (assuming that 0.5 seconds is acceptable to your team).

> The other test scenario is where the tomcat instance is kept idle
> and a single request is sent in every 90 or so seconds. In this case,
> the response takes about 8 seconds out of which about 6 seconds
> cannot be tracked. As the result, what we're finding is that under
> high loads, it performs well but under very low loads, it does not.

:(

> This definitely happens in the
> tomcat layer as we've used the FastCommonAccessLogValve logger which
> gives the time for the request in Tomcat.

I'd like to echo Chuck's suggestion: take Apache httpd out of the
equation and run your "load" test against Tomcat directly.

> The connector properties
> are protocol="AJP/1.3" maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75" acceptCount="100" connectionTimeout="2"
> disableUploadTimeout="true" useBodyEncodingForURI="true".

If you want your server to be as efficient as possible, you should use
an  which will allow the request processing threads to be
destroyed during times of low activity. It's not really that big of a
deal, but it's worth mentioning.

A couple more questions:

1. How large are the requests you are processing? Is the usage profile
the same for "high load" versus "low load" situations -- other than the
actual frequency of requests, of course.

2. Are you using a database of any kind? If so, can you post the
configuration for that (minus any sensitive information, of course)?

90 seconds would be a very low timeout for a database connection, but
it's possible that you have a bottleneck in your application that
somehow only appears when you're nearly idle.

3. Is some other process running on the server during these low-load
times? Maybe some cron job or heavy reporting operation or something?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3HvUACgkQ9CaO5/Lv0PDK4gCeOJaCAXqQfB4C9EA0kYdrjRpt
0pAAn2EURuQAExb7lfBahaSdG5u2cshc
=Sw5F
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Java out of memory error

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rujin,

On 10/14/2010 7:19 AM, rujin raj wrote:
> I have Installed tomcat 5.5.20 on my windows 2008 server with 32 GB
> physical memory and the Java version is jre1.6.0.

Just a note: 5.5.20 is over 4 years old. You should really upgrade to
5.5.30 or even to 6.0.29. Upgrading from 5.5 to 6.0 is pretty seamless.

Are you using a 32-bit of 64-bit JVM? If you are using a 32-bit VM then
you are not able to take advantage of all that sweet, sweet system memory.

> Today i got one error and applications not working.Error as follows
> 
> Tomcat log:
> *14 Oct, 2010 4:08:05 PM
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run*
> *SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create
> new native thread) executing
> org.apache.tomcat.util.net.leaderfollowerworkerthr...@10d564d,
> terminating thread*
> *
> *
> In javaVM I set the initial memory pool size as 1000MB, Max memory pool
> size as 1200MB and thread stack size as blank.More over I am not able to
> set the minimum pool size more than 1024 MB.
> 
> How can I increase the JVM memory more than 1GB?? 

Looks like you are on a 32-bit JVM. Try upgrading to a 64-bit JVM if you
want more memory, although memory probably isn't your real problem.

> What might me the cause for java out of memory error? How to resolve the
> problem?

Note the entire message: "java.lang.OutOfMemoryError: unable to create
new native thread". It doesn't say it's out of heap space, it says that
it can't create a new native thread. There are a couple of reasons this
could happen:

1. The Tomcat user cannot create any more threads because of a thread
limit within a single process. Windows can limit the number of threads a
process can create as a security and resource management mechanism.

2. The process can't create another thread due to the available (native)
memory and the stack size you have for a thread.

This page has some good information about thread limits on Windows:
http://blogs.technet.com/b/markrussinovich/archive/2009/07/08/3261309.aspx

Can you post all of the JVM arguments you are using to start Java?

Could you also post all the  elements from your
conf/server.xml file?

Finally, can you comment on the use of any threads within your own
application that are /not/ managed by Tomcat? For instance, do you use
TimerTask/Quartz to do background jobs, or do you launch any of your own
threads?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3HW8ACgkQ9CaO5/Lv0PDeegCeJ+5I8eyEErTA5JGm/GatECiz
VF4An3pOLa0D9kltombztjf4rm7UxIGO
=tpHH
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Java out of memory error

2010-10-14 Thread Juha Laiho

On 10/14/2010 02:19 PM, rujin raj wrote:

I have Installed tomcat 5.5.20 on my windows 2008 server with 32 GB
physical memory and the Java version is jre1.6.0.


Is the OS installation 64-bit or 32-bit?

If the application is 64-bit, is the Java installation 64-bit or 32-bit?
(I suppose your Java installation is 32-bit)


Five applications are installed in it.Today i got one error and

> applications not working.Error as follows


Tomcat log:
*14 Oct, 2010 4:08:05 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run*
*SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create
new native thread) executing
org.apache.tomcat.util.net.leaderfollowerworkerthr...@10d564d,
terminating thread*
*
*
In javaVM I set the initial memory pool size as 1000MB, Max memory pool
size as 1200MB and thread stack size as blank.More over I am not able to
set the minimum pool size more than 1024 MB.

How can I increase the JVM memory more than 1GB??


First, a 64-bit Java installation is needed. And this is only available,
if the operating system installation is 64-bit.

With these two requirements fulfilled, the JVM can be configured with
larger memory allocations.


What might me the cause for java out of memory error? How to resolve the
problem?


I'm a bit uncertain of the error message, however: it may be that it's
not actually JVM memory that is exhausted, but threads. Could it be that
your application is starting new threads, but not disposing of them
properly?

If it is a memory exhaustion situation, you should be able to find
numerous discussions on how to pinpoint memory leaks in applications
running under Tomcat. Some of the memory analysis techniques might
help in resolving thread exhaustion issues, too (if you can locate
the unexpected thread objects and find what is keeping them alive).
Another way to find out about the threads is to produce a thread
dump of the running JVM (that also has been often discussed on
this list).

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Disable class monitoring for reloading container classes

2010-10-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jane,

On 10/13/2010 5:41 PM, Jane Muse wrote:
> We have a directory called COMPANY_NAME/tomcat that is CATALINA_BASE. 
> I sent the contents of CATALINA_BASE/conf/context.xml in the email
> below.

Great. It's probably not necessary to comment-out the 
as the context should not be reloadable if you set reloadable="true",
though I haven't tried actually 'touch'ing web.xml just to see if it
would trigger a context reload.

> We have a CATALINA_BASE/WEBAPPS/APP_NAME directory.

Okay. If you have a standard server.xml, that means that APP_NAME will
be deployed to "/APP_NAME" automatically, unless you have .

> We also have a COMPANY_NAME/APP_CONF_DIR that contains a /conf
> directory, the APP_NAME.war file, and an APP_NAME.xml file.

Those files will be ignored unless there are other configuration
settings that make them relevant.

> There is a
> context element defined in the COMPANY_NAME/APP_CONF/DIR/app_name.xml
> file with reloadable="false". This is the one I was changing. However it
> turns out that we used this one as a placeholder in case the one in the
> CATALINA_BASE/conf/[enginename]/[hostname]/app_name.xml got deleted.

That sounds like a good plan. Again, the file you were editing was not
being consulted by Tomcat. You'll need to copy that file into
CATALINA_BASE/conf/[enginename]/[hostname]/[app_name].xml.

As Chuck states, you must remove the "path" attribute from the 
element: it will be ignored at best and cause a double-deployment (or
failed deployment) at worst. Or, it might cause your webapp to reload
for unknown reasons :)

> We also have a context element in a place I hadn't seen before at:
> CATALINA_BASE/conf/[enginename]/[hostname]/app_name.xml. This context
> element had reloadable="true". I changed it to reloadable="false" and
> restarted tomcat. Now the app does not get reloaded! Fixed. Thanks to
> all.

This was going to be my final attempt: that you were editing the wrong
configuration file.

Still, we'd love to hear the resolution of the file timestamp changing
when DST kicks-in. Please let us know what you find out.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky3GZEACgkQ9CaO5/Lv0PBMWACeL/QV75reOUF3KPewOcdwp7KO
jBEAoMGqeakQr/JsiEMpGFGJTwcSl7Nw
=5BkZ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Paul Primeau
At this point it's just failing at the service. 


Paul Primeau
CGI Engineering & Technical Support
ETS Midrange Service Line 
PWGSC - ITSB - SM&D
700 Montreal Road - Annex B, Station 2079
Ottawa, Ontario, Canada, K1A 0P7
Work: (613) 748-2379 ; Fax: (613) 748-4843
mailto:paul.prim...@pwgsc.gc.ca
Info/Man: ETSMRSUP 


-Original Message-
From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] 
Sent: Thursday, October 14, 2010 9:41 AM
To: Tomcat Users List
Subject: RE: upgrading apache tomcat on windows 2003

Is the install actually failing or is it just failing to add the service? If 
the 2nd is the case then removing the service should allow the installation to 
go through without errors.


> -Original Message-
> From: Paul Primeau [mailto:paul.prim...@tpsgc-pwgsc.gc.ca]
> Sent: 14 October 2010 14:42
> To: Tomcat Users List
> Subject: RE: upgrading apache tomcat on windows 2003
> 
> Thanks for the quick response Rob,
> So it is possible to use the installer to upgrade.
> I don't have to uninstall and then re-install.
> You suggest removing the service and continuing with the install.
> 
> I would like to find procedures that detail the steps to do when
upgrading
> from one version to another
> on a windows system.
> I have tried looking for upgrade documentation on the net and I can't
find
> any.
> 
> Thanks again,
> 
> Paul Primeau
> CGI Engineering & Technical Support
> ETS Midrange Service Line
> PWGSC - ITSB - SM&D
> mailto:paul.prim...@pwgsc.gc.ca
> 
> 
> -Original Message-
> From: Rob Gregory [mailto:rob.greg...@ibsolutions.com]
> Sent: Thursday, October 14, 2010 9:26 AM
> To: Tomcat Users List
> Subject: RE: upgrading apache tomcat on windows 2003
> 
> Can you not just manually remove the existing service i.e. from a cmd
> prompt:-
> 
> sc delete 
> 
> You can determine the name of the service from the services option
within
> control panel but guessing it is called Tomcat.
> 
> Rob
> 
> 
> > -Original Message-
> > From: Paul Primeau [mailto:paul.prim...@tpsgc-pwgsc.gc.ca]
> > Sent: 14 October 2010 14:20
> > To: users@tomcat.apache.org
> > Subject: upgrading apache tomcat on windows 2003
> >
> > Good Morning,
> >
> > I am trying to upgrade from apache tomcat version 5.5.20 to 5.5.31
on
> a
> > windows 2003 system.
> > I downloaded the apache-tomcat-5.5.31.exe to my server and started
the
> > install.
> > I stopped the existing tomcat-apache service.
> > I noticed that there is no upgrade option so I continued with the
> install
> > option.
> > everything was ok until a hit the following error--> Failed to
install
> > Tomcat5 service.
> > Check you settings and permissions.
> > Ignore and continue anyway (not recommended)
> >
> > So my question is how to upgrade from one version to another.
> > Do I have to un-install and re-install the latest version.
> >
> > Thanks
> >
> >
> >
> > Paul Primeau
> > CGI Engineering & Technical Support
> > ETS Midrange Service Line
> > PWGSC - ITSB - SM&D
> > mailto:paul.prim...@pwgsc.gc.ca
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Rob Gregory
Is the install actually failing or is it just failing to add the
service? If the 2nd is the case then removing the service should allow
the installation to go through without errors.


> -Original Message-
> From: Paul Primeau [mailto:paul.prim...@tpsgc-pwgsc.gc.ca]
> Sent: 14 October 2010 14:42
> To: Tomcat Users List
> Subject: RE: upgrading apache tomcat on windows 2003
> 
> Thanks for the quick response Rob,
> So it is possible to use the installer to upgrade.
> I don't have to uninstall and then re-install.
> You suggest removing the service and continuing with the install.
> 
> I would like to find procedures that detail the steps to do when
upgrading
> from one version to another
> on a windows system.
> I have tried looking for upgrade documentation on the net and I can't
find
> any.
> 
> Thanks again,
> 
> Paul Primeau
> CGI Engineering & Technical Support
> ETS Midrange Service Line
> PWGSC - ITSB - SM&D
> mailto:paul.prim...@pwgsc.gc.ca
> 
> 
> -Original Message-
> From: Rob Gregory [mailto:rob.greg...@ibsolutions.com]
> Sent: Thursday, October 14, 2010 9:26 AM
> To: Tomcat Users List
> Subject: RE: upgrading apache tomcat on windows 2003
> 
> Can you not just manually remove the existing service i.e. from a cmd
> prompt:-
> 
> sc delete 
> 
> You can determine the name of the service from the services option
within
> control panel but guessing it is called Tomcat.
> 
> Rob
> 
> 
> > -Original Message-
> > From: Paul Primeau [mailto:paul.prim...@tpsgc-pwgsc.gc.ca]
> > Sent: 14 October 2010 14:20
> > To: users@tomcat.apache.org
> > Subject: upgrading apache tomcat on windows 2003
> >
> > Good Morning,
> >
> > I am trying to upgrade from apache tomcat version 5.5.20 to 5.5.31
on
> a
> > windows 2003 system.
> > I downloaded the apache-tomcat-5.5.31.exe to my server and started
the
> > install.
> > I stopped the existing tomcat-apache service.
> > I noticed that there is no upgrade option so I continued with the
> install
> > option.
> > everything was ok until a hit the following error--> Failed to
install
> > Tomcat5 service.
> > Check you settings and permissions.
> > Ignore and continue anyway (not recommended)
> >
> > So my question is how to upgrade from one version to another.
> > Do I have to un-install and re-install the latest version.
> >
> > Thanks
> >
> >
> >
> > Paul Primeau
> > CGI Engineering & Technical Support
> > ETS Midrange Service Line
> > PWGSC - ITSB - SM&D
> > mailto:paul.prim...@pwgsc.gc.ca
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Paul Primeau
Thanks for the quick response Rob,
So it is possible to use the installer to upgrade.
I don't have to uninstall and then re-install.
You suggest removing the service and continuing with the install.

I would like to find procedures that detail the steps to do when upgrading from 
one version to another 
on a windows system.
I have tried looking for upgrade documentation on the net and I can't find any. 

Thanks again,

Paul Primeau
CGI Engineering & Technical Support
ETS Midrange Service Line 
PWGSC - ITSB - SM&D
mailto:paul.prim...@pwgsc.gc.ca


-Original Message-
From: Rob Gregory [mailto:rob.greg...@ibsolutions.com] 
Sent: Thursday, October 14, 2010 9:26 AM
To: Tomcat Users List
Subject: RE: upgrading apache tomcat on windows 2003

Can you not just manually remove the existing service i.e. from a cmd
prompt:-

sc delete 

You can determine the name of the service from the services option within 
control panel but guessing it is called Tomcat.

Rob


> -Original Message-
> From: Paul Primeau [mailto:paul.prim...@tpsgc-pwgsc.gc.ca]
> Sent: 14 October 2010 14:20
> To: users@tomcat.apache.org
> Subject: upgrading apache tomcat on windows 2003
> 
> Good Morning,
> 
> I am trying to upgrade from apache tomcat version 5.5.20 to 5.5.31 on
a
> windows 2003 system.
> I downloaded the apache-tomcat-5.5.31.exe to my server and started the 
> install.
> I stopped the existing tomcat-apache service.
> I noticed that there is no upgrade option so I continued with the
install
> option.
> everything was ok until a hit the following error--> Failed to install 
> Tomcat5 service.
> Check you settings and permissions.
> Ignore and continue anyway (not recommended)
> 
> So my question is how to upgrade from one version to another.
> Do I have to un-install and re-install the latest version.
> 
> Thanks
> 
> 
> 
> Paul Primeau
> CGI Engineering & Technical Support
> ETS Midrange Service Line
> PWGSC - ITSB - SM&D
> mailto:paul.prim...@pwgsc.gc.ca
> 
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: upgrading apache tomcat on windows 2003

2010-10-14 Thread Rob Gregory
Can you not just manually remove the existing service i.e. from a cmd
prompt:-

sc delete 

You can determine the name of the service from the services option
within control panel but guessing it is called Tomcat.

Rob


> -Original Message-
> From: Paul Primeau [mailto:paul.prim...@tpsgc-pwgsc.gc.ca]
> Sent: 14 October 2010 14:20
> To: users@tomcat.apache.org
> Subject: upgrading apache tomcat on windows 2003
> 
> Good Morning,
> 
> I am trying to upgrade from apache tomcat version 5.5.20 to 5.5.31 on
a
> windows 2003 system.
> I downloaded the apache-tomcat-5.5.31.exe to my server and started the
> install.
> I stopped the existing tomcat-apache service.
> I noticed that there is no upgrade option so I continued with the
install
> option.
> everything was ok until a hit the following error-->
> Failed to install Tomcat5 service.
> Check you settings and permissions.
> Ignore and continue anyway (not recommended)
> 
> So my question is how to upgrade from one version to another.
> Do I have to un-install and re-install the latest version.
> 
> Thanks
> 
> 
> 
> Paul Primeau
> CGI Engineering & Technical Support
> ETS Midrange Service Line
> PWGSC - ITSB - SM&D
> mailto:paul.prim...@pwgsc.gc.ca
> 
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



upgrading apache tomcat on windows 2003

2010-10-14 Thread Paul Primeau
Good Morning,

I am trying to upgrade from apache tomcat version 5.5.20 to 5.5.31 on a windows 
2003 system.
I downloaded the apache-tomcat-5.5.31.exe to my server and started the install.
I stopped the existing tomcat-apache service.
I noticed that there is no upgrade option so I continued with the install 
option.
everything was ok until a hit the following error-->
Failed to install Tomcat5 service.
Check you settings and permissions.
Ignore and continue anyway (not recommended)

So my question is how to upgrade from one version to another.
Do I have to un-install and re-install the latest version.

Thanks



Paul Primeau
CGI Engineering & Technical Support
ETS Midrange Service Line
PWGSC - ITSB - SM&D
mailto:paul.prim...@pwgsc.gc.ca






Java out of memory error

2010-10-14 Thread rujin raj
hi all,

I have Installed tomcat 5.5.20 on my windows 2008 server with 32 GB physical
memory and the Java version is jre1.6.0. Five applications are installed in
it.Today i got one error and applications not working.Error as follows

Tomcat log:
*14 Oct, 2010 4:08:05 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run*
*SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new
native thread) executing
org.apache.tomcat.util.net.leaderfollowerworkerthr...@10d564d, terminating
thread*
*
*
In javaVM I set the initial memory pool size as 1000MB, Max memory pool size
as 1200MB and thread stack size as blank.More over I am not able to set the
minimum pool size more than 1024 MB.

How can I increase the JVM memory more than 1GB??

What might me the cause for java out of memory error? How to resolve the
problem?

Please help me to resolve the problem.

Regards
rujinraj

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat LoadBalancing

2010-10-14 Thread Mark Thomas
On 14/10/2010 05:51, Deepak Pal wrote:
> Hello All,
> 
> I am new to this mailing list and want to know about Tomcat Load
> Balancing. I have searched a lot but I found only ways to establish a
> Tomcat load balancer by using apache HTTP web server as a front end load
> balancer. but I want a load balancer in which tomcat master handles all
> the requests and balance them on other tomcat instances and receives
> responses from them back.

There is (currently) no reverse proxy capability in Tomcat. It has been
talked about a few times but never written.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org