Re: Webapp reloading issue and intermittent 404 errors

2010-08-09 Thread Tomislav Petrović

Caldarale, Charles R said on 8.7.2010 3:31:

From: Caldarale, Charles R
Subject: RE: Webapp reloading issue and intermittent 404 errors

Given the test on lines 129-130, it is impossible to have a -1 at line
131 - unless there's a JVM bug.


6u21 was just released tonight, so you might give that a shot and see if the 
problem has been addressed.

Included in 6u21 are fixes for the problems described here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6875866
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6935535

Both seem to have a lot in common with the issue under discussion.

There's another String-related fix in the bug list, but the details are not 
retrievable at the moment:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6948602




Just to let you know, installing 6u21 seems to solve problem completely 
(hasn't manifested after upgrade at all).


--
Tomy t.petro...@inet.hr

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



64 bit version for linux

2010-08-09 Thread Angelo Chen

Hi,

in this link:
http://tomcat.apache.org/download-60.cgi#6.0.29
it has 32 and 64 bits version of tomcat for Windows. but for Linux, there is
only one version, why?

Thanks,

Angelo
-- 
View this message in context: 
http://old.nabble.com/64-bit-version-for-linux-tp29386189p29386189.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



Cluster Logging

2010-08-09 Thread Oscar Segarra Rey
Hi,

I would like to monitor cluster  as it was in tomcat 5.5 with the clause 
doClusterLog in tomcat 6.0.24.

I have added the following lines in logging.properties:

org.apache.catalina.tribes.MESSAGES.level = FINE
org.apache.catalina.tribes.level = FINE
org.apache.catalina.ha.level = FINE

And messages are written into catalina.out file.

I would like to write cluster messages in a cluster.out file but in the 
official web I could not find how to.

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

How can I achieve this objective ?

Thanks in advance.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834



Re: 64 bit version for linux

2010-08-09 Thread Mladen Turk

On 08/09/2010 11:40 AM, Angelo Chen wrote:


Hi,

in this link:
http://tomcat.apache.org/download-60.cgi#6.0.29
it has 32 and 64 bits version of tomcat for Windows. but for Linux, there is
only one version, why?



Windows versions are distributed with tomcat native and service wrapper
pre-compiled binaries, thus we have separate 32 and 64-bit flavors.

Fox *nix platforms you will need to build those by yourself
(many distributions already offer those) for what ever arch you have.


Regards
--
^TM

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



RE: Session ID changes when a node goes down

2010-08-09 Thread Oscar Segarra Rey
Hi, 

I have changed flag sticky_session in my workers.properties file:

worker.lb_worker.sticky_session=0

But system is experiencing the same behaviour:

FINE: Cluster is standalone: reset Session Request Delta at context /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handleJvmRoute
FINE: Detected a failover with different jvmRoute - orginal route: [workerW37] 
new one: [workerW38] at session id [65A210E6ABE6347B6B3AC89F31729836.workerW37]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeRequestSessionID
FINE: Set Orginal Session id at request attriute 
org.apache.catalina.ha.session.JvmRouteOrignalSessionID value: 
65A210E6ABE6347B6B3AC89F31729836.workerW37
09/08/2010 12:20:24 org.apache.catalina.ha.tcp.SimpleTcpCluster send
FINE: No members in cluster, ignoring 
message:SESSIONID-UPDATE#localhost./SUE#65A210E6ABE6347B6B3AC89F31729836.workerW37:65A210E6ABE6347B6B3AC89F31729836.workerW38
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeSessionID
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handlePossibleTurnover

Look at:
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]

1. Don't code your application assuming the session ID is constant 
-- We will try if is there no other option.

2.- Don't use sticky session.
-- I have tried to add the sticky_sessions=0 but I got the same behaviour.

I have the following lines in server.xml file:

Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/ 
 

To disable sticky sessions sould I comment the second line ?

3. Add a listener to handle the change in session ID
-- Yes, but there is no method related to session renaming. When a session is 
renamed a sessionCreation event is rised (no rename (because does not exist) 
and no descruction method)

Thanks in advance.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834


-Mensaje original-
De: Mark Thomas [mailto:ma...@apache.org] 
Enviado el: dissabte, 31 / juliol / 2010 15:07
Para: Tomcat Users List
Asunto: Re: Session ID changes when a node goes down

On 31/07/2010 13:58, Oscar Segarra Rey wrote:
 Hi,

 We are developing a web application wich uses session listeners and such kind
 of stuff in order to control which users are loged in every time.

 Nevertheless we have experienced a developement problem due to the session ID
 changes when one node goes down.

 30/07/2010 13:08:27 org.apache.catalina.ha.session.JvmRouteBinderValve
 changeSessionID
 FINE: Changed session from [18434EBFCF3D1009BBEEE5C02D370BCF.workerW37] to
 [18434EBFCF3D1009BBEEE5C02D370BCF.workerW38]

The jvmRoute part of the session ID is required for sticky sessions to 
work. If a node goes down, the session fails over to another node and 
hence the jvmRoute has to change.

 I think session ID should not change its ID or should be a way to avoid this
 rename processs.

 Is there any workarround or change this behaviour ?

1. Don't code your application assuming the session ID is constant
2. Don't use sticky sessions
3. Add a listener to handle the change in session ID

Mark



-
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: 64 bit version for linux

2010-08-09 Thread Angelo Chen

Thanks for the quick reply, I just downloaded 6.0.29, and it works in a
Centos 5.5 64 bit, but is the tomcat 64 bit version?


Mladen Turk-3 wrote:
 
 On 08/09/2010 11:40 AM, Angelo Chen wrote:

 Hi,

 in this link:
 http://tomcat.apache.org/download-60.cgi#6.0.29
 it has 32 and 64 bits version of tomcat for Windows. but for Linux, there
 is
 only one version, why?

 
 Windows versions are distributed with tomcat native and service wrapper
 pre-compiled binaries, thus we have separate 32 and 64-bit flavors.
 
 Fox *nix platforms you will need to build those by yourself
 (many distributions already offer those) for what ever arch you have.
 
 
 Regards
 -- 
 ^TM
 
 -
 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/64-bit-version-for-linux-tp29386189p29386741.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: 64 bit version for linux

2010-08-09 Thread Mladen Turk

On 08/09/2010 01:07 PM, Angelo Chen wrote:


Thanks for the quick reply, I just downloaded 6.0.29, and it works in a
Centos 5.5 64 bit, but is the tomcat 64 bit version?




If it's on 64-bit jvm, then yes :)

Regards
--
^TM

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



Re: 64 bit version for linux

2010-08-09 Thread André Warnier

Angelo Chen wrote:

Thanks for the quick reply, I just downloaded 6.0.29, and it works in a
Centos 5.5 64 bit, but is the tomcat 64 bit version?


Tomcat itself is java so it does not care.
What matters here is :
1) is the Java JVM that you use to run Tomcat, 32 or 64-bit
2) if you use the native Tomcat libraries, then you need the appropriate versions, as 
Mladen explained below






Mladen Turk-3 wrote:

On 08/09/2010 11:40 AM, Angelo Chen wrote:

Hi,

in this link:
http://tomcat.apache.org/download-60.cgi#6.0.29
it has 32 and 64 bits version of tomcat for Windows. but for Linux, there
is
only one version, why?


Windows versions are distributed with tomcat native and service wrapper
pre-compiled binaries, thus we have separate 32 and 64-bit flavors.

Fox *nix platforms you will need to build those by yourself
(many distributions already offer those) for what ever arch you have.


Regards
--
^TM

-
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: 64 bit version for linux

2010-08-09 Thread Angelo Chen

the standard tomcat(apache-tomcat-6.0.20.tar.gz) is running in a 64 bit
version of Centos. so can my app use memory bigger than 4G? I believe the 2G
is the limit for 32 bit version of Linux.


awarnier wrote:
 
 Angelo Chen wrote:
 Thanks for the quick reply, I just downloaded 6.0.29, and it works in a
 Centos 5.5 64 bit, but is the tomcat 64 bit version?
 
 Tomcat itself is java so it does not care.
 What matters here is :
 1) is the Java JVM that you use to run Tomcat, 32 or 64-bit
 2) if you use the native Tomcat libraries, then you need the appropriate
 versions, as 
 Mladen explained below
 
 
 
 
 Mladen Turk-3 wrote:
 On 08/09/2010 11:40 AM, Angelo Chen wrote:
 Hi,

 in this link:
 http://tomcat.apache.org/download-60.cgi#6.0.29
 it has 32 and 64 bits version of tomcat for Windows. but for Linux,
 there
 is
 only one version, why?

 Windows versions are distributed with tomcat native and service wrapper
 pre-compiled binaries, thus we have separate 32 and 64-bit flavors.

 Fox *nix platforms you will need to build those by yourself
 (many distributions already offer those) for what ever arch you have.


 Regards
 -- 
 ^TM

 -
 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
 
 
 

-- 
View this message in context: 
http://old.nabble.com/64-bit-version-for-linux-tp29386189p29387066.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: Session ID changes when a node goes down

2010-08-09 Thread Petrov, Petar
Hi,

2. I have tried to add the sticky_sessions=0 but I got the same behaviour.
-- If the sticky_session is set to 0 the load balancer can forward your 
request to any tomcat instance.
If stiky session is set to 1 then if the tomcat instance where the session is 
created is alive receives the request.
Sticky_session is usually set to 1, but this is not related to changing of the 
sessionId.

I have the following lines in server.xml file:
Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/ 
 
To disable sticky sessions sould I comment the second line ?
--The valve you mentioned Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/ takes care for 
changing of the sessionId.
If you remove this line from your server.xml the sessionId will not be changed. 
But this is NOT GOOD. If you do so then
load balancer will not know where to forward the request and with one 
JSESSIONID you may end with different http sessions on different tomcat 
instances.

3. Add a listener to handle the change in session ID
--SessionId renaming is related to change of the vm.
Check the HttpSessionActivationListener in the servlet_spec. I think it can 
help you.
Objects that are bound to a session may listen to container events notifying 
them
that sessions will be passivated and that session will be activated. A 
container that
migrates session between VMs or persists sessions is required to notify all
attributes bound to sessions implementing HttpSessionActivationListener.

After session goes to the new vm do you need the old JSESSIONID or the new one 
is enough?

Regards,
Petar

-Original Message-
From: Oscar Segarra Rey [mailto:osega...@gencat.cat] 
Sent: Monday, August 09, 2010 1:50 PM
To: Tomcat Users List
Subject: RE: Session ID changes when a node goes down

Hi, 

I have changed flag sticky_session in my workers.properties file:

worker.lb_worker.sticky_session=0

But system is experiencing the same behaviour:

FINE: Cluster is standalone: reset Session Request Delta at context /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handleJvmRoute
FINE: Detected a failover with different jvmRoute - orginal route: [workerW37] 
new one: [workerW38] at session id [65A210E6ABE6347B6B3AC89F31729836.workerW37]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeRequestSessionID
FINE: Set Orginal Session id at request attriute 
org.apache.catalina.ha.session.JvmRouteOrignalSessionID value: 
65A210E6ABE6347B6B3AC89F31729836.workerW37
09/08/2010 12:20:24 org.apache.catalina.ha.tcp.SimpleTcpCluster send
FINE: No members in cluster, ignoring 
message:SESSIONID-UPDATE#localhost./SUE#65A210E6ABE6347B6B3AC89F31729836.workerW37:65A210E6ABE6347B6B3AC89F31729836.workerW38
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeSessionID
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handlePossibleTurnover

Look at:
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]

1. Don't code your application assuming the session ID is constant 
-- We will try if is there no other option.

2.- Don't use sticky session.
-- I have tried to add the sticky_sessions=0 but I got the same behaviour.

I have the following lines in server.xml file:

Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/ 
 

To disable sticky sessions sould I comment the second line ?

3. Add a listener to handle the change in session ID
-- Yes, but there is no method related to session renaming. When a session is 
renamed a sessionCreation event is rised (no rename (because does not exist) 
and no descruction method)

Thanks in advance.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834


-Mensaje original-
De: Mark Thomas [mailto:ma...@apache.org] 
Enviado el: dissabte, 31 / juliol / 2010 15:07
Para: Tomcat Users List
Asunto: Re: 

Re: 64 bit version for linux

2010-08-09 Thread Tobias Crefeld
Am Mon, 9 Aug 2010 04:52:55 -0700 (PDT)
schrieb Angelo Chen angelochen...@yahoo.com.hk:

 
 the standard tomcat(apache-tomcat-6.0.20.tar.gz) is running in a 64
 bit version of Centos. so can my app use memory bigger than 4G? I

Which JVM-version does your Tomcat use? IIRC there are different
defaults for different versions of CentOS. Maybe 
 yum list installed |grep ^java
or 
 yum list installed |grep ^jdk
helps.
 
I would download last JDK for Linux/x64 at
http://java.sun.com/javase/downloads/index.jsp, install it and set the
correct path, for example: JAVA_HOME=/usr/jdk/latest;export JAVA_HOME
before starting Tomcat.

Maybe defaults of JVM have changed but AFAIK you have to set some
additional JAVA_OPTS-parameters to use 64bit and more RAM. We are using
a scriptlet like the following on our larger machines as part of the
catalina.sh or start-stop-wrapper for catalina.sh:

schnipp
JAVA_OPTS=$JAVA_OPTS -server
JAVA_OPTS=$JAVA_OPTS -d64
# Speicherlimit nur bei Aufruf von run, debug oder start auf 3 GB oder mehr 
hochsetzen
case $1 in
start|run|debug)
 # Fuer 32-Bit-Betrieb die naechsten beiden Zeilen auf 3072k aendern
 JAVA_OPTS=$JAVA_OPTS -Xms6000m
 JAVA_OPTS=$JAVA_OPTS -Xmx11000m
;;
stop)
 JAVA_OPTS=$JAVA_OPTS -Xms600m
 JAVA_OPTS=$JAVA_OPTS -Xmx600m
;;
esac
schnipp



 believe the 2G is the limit for 32 bit version of Linux.

3GB is a possible limit for 32bit.


Regards,
 Tobias.

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



RE: Session ID changes when a node goes down

2010-08-09 Thread Oscar Segarra Rey
Hi, 

In our infraestructure we have a Radware hardware load balancing which keeps 
the sticky session.

We have a apache webserver wich serves requests to a single tomcat

We have implemented a pooled session replication method between all our tomcat 
nodes.

With this infraestructure, is necessary this line ?

Thanks a lot.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834


-Mensaje original-
De: Petrov, Petar [mailto:p.pet...@sap.com] 
Enviado el: dilluns, 9 / agost / 2010 14:27
Para: Tomcat Users List
Asunto: RE: Session ID changes when a node goes down

Hi,

2. I have tried to add the sticky_sessions=0 but I got the same behaviour.
-- If the sticky_session is set to 0 the load balancer can forward your 
request to any tomcat instance.
If stiky session is set to 1 then if the tomcat instance where the session is 
created is alive receives the request.
Sticky_session is usually set to 1, but this is not related to changing of the 
sessionId.

I have the following lines in server.xml file:
Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/ 
 
To disable sticky sessions sould I comment the second line ?
--The valve you mentioned Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/ takes care for 
changing of the sessionId.
If you remove this line from your server.xml the sessionId will not be changed. 
But this is NOT GOOD. If you do so then
load balancer will not know where to forward the request and with one 
JSESSIONID you may end with different http sessions on different tomcat 
instances.

3. Add a listener to handle the change in session ID
--SessionId renaming is related to change of the vm.
Check the HttpSessionActivationListener in the servlet_spec. I think it can 
help you.
Objects that are bound to a session may listen to container events notifying 
them
that sessions will be passivated and that session will be activated. A 
container that
migrates session between VMs or persists sessions is required to notify all
attributes bound to sessions implementing HttpSessionActivationListener.

After session goes to the new vm do you need the old JSESSIONID or the new one 
is enough?

Regards,
Petar

-Original Message-
From: Oscar Segarra Rey [mailto:osega...@gencat.cat] 
Sent: Monday, August 09, 2010 1:50 PM
To: Tomcat Users List
Subject: RE: Session ID changes when a node goes down

Hi, 

I have changed flag sticky_session in my workers.properties file:

worker.lb_worker.sticky_session=0

But system is experiencing the same behaviour:

FINE: Cluster is standalone: reset Session Request Delta at context /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handleJvmRoute
FINE: Detected a failover with different jvmRoute - orginal route: [workerW37] 
new one: [workerW38] at session id [65A210E6ABE6347B6B3AC89F31729836.workerW37]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeRequestSessionID
FINE: Set Orginal Session id at request attriute 
org.apache.catalina.ha.session.JvmRouteOrignalSessionID value: 
65A210E6ABE6347B6B3AC89F31729836.workerW37
09/08/2010 12:20:24 org.apache.catalina.ha.tcp.SimpleTcpCluster send
FINE: No members in cluster, ignoring 
message:SESSIONID-UPDATE#localhost./SUE#65A210E6ABE6347B6B3AC89F31729836.workerW37:65A210E6ABE6347B6B3AC89F31729836.workerW38
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeSessionID
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handlePossibleTurnover

Look at:
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]

1. Don't code your application assuming the session ID is constant 
-- We will try if is there no other option.

2.- Don't use sticky session.
-- I have tried to add the sticky_sessions=0 but I got the same behaviour.

I have the following lines in server.xml file:

Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
ClusterListener 

Re: 64 bit version for linux

2010-08-09 Thread Angelo Chen

this is the version i use:

java version 1.6.0_21
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)



Tobias Crefeld-2 wrote:
 
 Am Mon, 9 Aug 2010 04:52:55 -0700 (PDT)
 schrieb Angelo Chen angelochen...@yahoo.com.hk:
 
 
 the standard tomcat(apache-tomcat-6.0.20.tar.gz) is running in a 64
 bit version of Centos. so can my app use memory bigger than 4G? I
 
 Which JVM-version does your Tomcat use? IIRC there are different
 defaults for different versions of CentOS. Maybe 
  yum list installed |grep ^java
 or 
  yum list installed |grep ^jdk
 helps.
  
 I would download last JDK for Linux/x64 at
 http://java.sun.com/javase/downloads/index.jsp, install it and set the
 correct path, for example: JAVA_HOME=/usr/jdk/latest;export JAVA_HOME
 before starting Tomcat.
 
 Maybe defaults of JVM have changed but AFAIK you have to set some
 additional JAVA_OPTS-parameters to use 64bit and more RAM. We are using
 a scriptlet like the following on our larger machines as part of the
 catalina.sh or start-stop-wrapper for catalina.sh:
 
 schnipp
 JAVA_OPTS=$JAVA_OPTS -server
 JAVA_OPTS=$JAVA_OPTS -d64
 # Speicherlimit nur bei Aufruf von run, debug oder start auf 3 GB oder
 mehr hochsetzen
 case $1 in
 start|run|debug)
  # Fuer 32-Bit-Betrieb die naechsten beiden Zeilen auf 3072k aendern
  JAVA_OPTS=$JAVA_OPTS -Xms6000m
  JAVA_OPTS=$JAVA_OPTS -Xmx11000m
 ;;
 stop)
  JAVA_OPTS=$JAVA_OPTS -Xms600m
  JAVA_OPTS=$JAVA_OPTS -Xmx600m
 ;;
 esac
 schnipp
 
 
 
 believe the 2G is the limit for 32 bit version of Linux.
 
 3GB is a possible limit for 32bit.
 
 
 Regards,
  Tobias.
 
 -
 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/64-bit-version-for-linux-tp29386189p29387478.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: Session ID changes when a node goes down

2010-08-09 Thread Petrov, Petar
Hi,

As written by Mark:  Don't code your application assuming the session ID is 
constant.
If you remove the line your apache webserver will lose the http session after 
vm stops. A new http session will be created when request comes.

Regards,
Petar

-Original Message-
From: Oscar Segarra Rey [mailto:osega...@gencat.cat] 
Sent: Monday, August 09, 2010 3:33 PM
To: Tomcat Users List
Subject: RE: Session ID changes when a node goes down

Hi, 

In our infraestructure we have a Radware hardware load balancing which keeps 
the sticky session.

We have a apache webserver wich serves requests to a single tomcat

We have implemented a pooled session replication method between all our tomcat 
nodes.

With this infraestructure, is necessary this line ?

Thanks a lot.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834


-Mensaje original-
De: Petrov, Petar [mailto:p.pet...@sap.com] 
Enviado el: dilluns, 9 / agost / 2010 14:27
Para: Tomcat Users List
Asunto: RE: Session ID changes when a node goes down

Hi,

2. I have tried to add the sticky_sessions=0 but I got the same behaviour.
-- If the sticky_session is set to 0 the load balancer can forward your 
request to any tomcat instance.
If stiky session is set to 1 then if the tomcat instance where the session is 
created is alive receives the request.
Sticky_session is usually set to 1, but this is not related to changing of the 
sessionId.

I have the following lines in server.xml file:
Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/
ClusterListener 
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
ClusterListener 
className=org.apache.catalina.ha.session.ClusterSessionListener/ 
 
To disable sticky sessions sould I comment the second line ?
--The valve you mentioned Valve 
className=org.apache.catalina.ha.session.JvmRouteBinderValve/ takes care for 
changing of the sessionId.
If you remove this line from your server.xml the sessionId will not be changed. 
But this is NOT GOOD. If you do so then
load balancer will not know where to forward the request and with one 
JSESSIONID you may end with different http sessions on different tomcat 
instances.

3. Add a listener to handle the change in session ID
--SessionId renaming is related to change of the vm.
Check the HttpSessionActivationListener in the servlet_spec. I think it can 
help you.
Objects that are bound to a session may listen to container events notifying 
them
that sessions will be passivated and that session will be activated. A 
container that
migrates session between VMs or persists sessions is required to notify all
attributes bound to sessions implementing HttpSessionActivationListener.

After session goes to the new vm do you need the old JSESSIONID or the new one 
is enough?

Regards,
Petar

-Original Message-
From: Oscar Segarra Rey [mailto:osega...@gencat.cat] 
Sent: Monday, August 09, 2010 1:50 PM
To: Tomcat Users List
Subject: RE: Session ID changes when a node goes down

Hi, 

I have changed flag sticky_session in my workers.properties file:

worker.lb_worker.sticky_session=0

But system is experiencing the same behaviour:

FINE: Cluster is standalone: reset Session Request Delta at context /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handleJvmRoute
FINE: Detected a failover with different jvmRoute - orginal route: [workerW37] 
new one: [workerW38] at session id [65A210E6ABE6347B6B3AC89F31729836.workerW37]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
getManager
FINE: Found Cluster DeltaManager 
org.apache.catalina.ha.session.deltamana...@4c262a90 at /SUE
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeRequestSessionID
FINE: Set Orginal Session id at request attriute 
org.apache.catalina.ha.session.JvmRouteOrignalSessionID value: 
65A210E6ABE6347B6B3AC89F31729836.workerW37
09/08/2010 12:20:24 org.apache.catalina.ha.tcp.SimpleTcpCluster send
FINE: No members in cluster, ignoring 
message:SESSIONID-UPDATE#localhost./SUE#65A210E6ABE6347B6B3AC89F31729836.workerW37:65A210E6ABE6347B6B3AC89F31729836.workerW38
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
changeSessionID
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]
09/08/2010 12:20:24 org.apache.catalina.ha.session.JvmRouteBinderValve 
handlePossibleTurnover

Look at:
FINE: Changed session from [65A210E6ABE6347B6B3AC89F31729836.workerW37] to 
[65A210E6ABE6347B6B3AC89F31729836.workerW38]

1. Don't code your application assuming the session ID is constant 
-- We 

Tomcat unexpectedly shuts down

2010-08-09 Thread Gerardo Corro

Hi all,


I'm using Tomcat version 5.5.30, and I'm having a serious issue: Tomcat 
unexpectedly shuts down, I have my JVM tuned with enough memory and many option 
that warranty proper garbage collector and monitoring:

-Xms5000m
-Xmx5000m
-XX:MaxPermSize=256m
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=20
-XX:+ExplicitGCInvokesConcurrent
-XX:+CMSIncrementalMode
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-verbose:gc
-Xloggc:logs/garbage-collection.log

However Tomcat fails quite often, no trace information can be found in logs, 
neither my app logs nor tomcat logs.

Tomcat is hosted in a centos server, jvm is 1.6.0_17-linux-amd64. 

Any suggestion is welcome, thanks in advanced.

 



  

RE: 64 bit version for linux

2010-08-09 Thread Caldarale, Charles R
 From: Angelo Chen [mailto:angelochen...@yahoo.com.hk]
 Subject: Re: 64 bit version for linux
 
 
 this is the version i use:
 
 java version 1.6.0_21
 Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
 Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)

Then you've answered your own question.

 - 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 unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Subject: Tomcat unexpectedly shuts down
 
 I'm using Tomcat version 5.5.30, and I'm having a serious issue:
 Tomcat unexpectedly shuts down

Often caused by a webapp calling System.exit().

 -Xms5000m
 -Xmx5000m

Do you have enough RAM + swap space to support that large a heap, along with 
the other memory requirements of the Tomcat process and all other processes on 
the system?  If not, you may well be getting hit by the Linux OOM-killer, which 
leaves few traces.

 However Tomcat fails quite often, no trace information can be 
 found in logs, neither my app logs nor tomcat logs.

What about a core file, or a JVM crash file?

 - 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 unexpectedly shuts down

2010-08-09 Thread Gerardo Corro


Hi,

Thanks for your email


 
 Do you have enough RAM + swap space to support that large a heap, along with 
 the other memory requirements of the Tomcat process and all other processes 
 on the system?  If not, you may well be getting hit by the Linux OOM-killer, 
 which leaves few traces.

Yes we do, we have 6GB total memory

 
  However Tomcat fails quite often, no trace information can be 
  found in logs, neither my app logs nor tomcat logs.
 
 What about a core file, or a JVM crash file?
 

No core files neither jvm crash files :(

Best regards
  

RE: Tomcat unexpectedly shuts down

2010-08-09 Thread B. Balakrishna Rao
Hi,

We have enabled the GC logs on our production and our tomcat server crashed 
too!!
Apparently, GC logs takes high CPU and eventually, tomcat server crashes due to 
high CPU utilization of GC logs. Remove them, your problem will be solved.
What I believe is, enabling GC logs are not suggestible for long run. They are 
for observation the system and for short duration only.

Balakrishna Rao | Senior Software Engineer | Persistent Systems
balakrishna_...@persistent.co.in  | Cell: +91 9704373579 | Tel: +91 (40) 
30875030
Innovation in software product design, development and delivery- 
www.persistentsys.com


-Original Message-
From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
Sent: Monday, August 09, 2010 7:00 PM
To: users@tomcat.apache.org
Subject: RE: Tomcat unexpectedly shuts down



Hi,

Thanks for your email



 Do you have enough RAM + swap space to support that large a heap, along with 
 the other memory requirements of the Tomcat process and all other processes 
 on the system?  If not, you may well be getting hit by the Linux OOM-killer, 
 which leaves few traces.

Yes we do, we have 6GB total memory


  However Tomcat fails quite often, no trace information can be
  found in logs, neither my app logs nor tomcat logs.

 What about a core file, or a JVM crash file?


No core files neither jvm crash files :(

Best regards


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

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



RE: Tomcat unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Subject: RE: Tomcat unexpectedly shuts down
 
 Yes we do, we have 6GB total memory

That might not be enough.  Besides the Java heap, there's a ton of other stuff 
that has to fit in the process space and overall RAM.  Try shrinking your heap 
to 4 GB and see if it avoids the shutdown.

 - 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 unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: B. Balakrishna Rao [mailto:balakrishna_...@persistent.co.in]
 Subject: RE: Tomcat unexpectedly shuts down

 Apparently, GC logs takes high CPU and eventually, tomcat server
 crashes due to high CPU utilization of GC logs.

Your analysis is seriously flawed.  High CPU utilization will not cause a 
crash.  (It can cause other problems, but not that.)

 - 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 6.0.18/ IIS 6.0 /SSL

2010-08-09 Thread Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00
Rainer,
I've gone through the install of 6.0.28, I can successfully launch my webapp
from localhost. When I try accessing using the AJP/1.3, I am getting
HTTP:404 errors The page cannot be found. I have not seen error messages
in my isapi_redirect.log, any help would be great. Seems as though the
application is not even being seen as a valid URL when trying to hit on port
8009, eventhough it's listening.

-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de] 
Sent: Friday, August 06, 2010 2:39 PM
To: Tomcat Users List
Subject: Re: Tomcat 6.0.18/ IIS 6.0 /SSL

Just in case you didn't yet realize: the changelog is public:

http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

6.0.29 has only 5 changes that were relevant for the changelog. Three of
them link to an issue that can be viewed publicly, one is a pure
enhancement, and the one fix without a link to bugzilla doesn't even have an
issue link, because it wasn't observed as a problem in the wild. 
It is not to hard to check the three issue links to get a better basis for
your decision of using 6.0.28 instead of 6.0.29 and to recognize faster in
cse you run into one of the few fixed problems.

Regards,

Rainer

On 06.08.2010 17:56, Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00 wrote:
 Chuck,
 Besides the latest version, is there one that you recommend?

 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Friday, August 06, 2010 11:50 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 6.0.18/ IIS 6.0 /SSL

 From: Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00 
 [mailto:jason.t.hansel@navy.mil]
 Subject: RE: Tomcat 6.0.18/ IIS 6.0 /SSL

 Well good news, 6.0.28 was JUST approved...WooHOO!!!

 There was one regression in 6.0.28 that you should be aware of:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=49598

 Its existence prompted the rapid release of 6.0.29, where the problem 
 is fixed.

   - Chuck

-
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: Tomcat unexpectedly shuts down

2010-08-09 Thread Gerardo Corro

What would be the minimum memory needed by OS in order to have jvm/tomcat 
running properly?

Our system will grow five times more and we were thinking to get a total of 
20GB ram memory, we were planning to assign 18GB to jvm/tomcat and leave 2Gb to 
the OS.

Is there a kind of rule for jvm-tomcat/os memory proportions needed?

Thanks



 From: chuck.caldar...@unisys.com
 To: users@tomcat.apache.org
 Date: Mon, 9 Aug 2010 09:13:53 -0500
 Subject: RE: Tomcat unexpectedly shuts down
 
  From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
  Subject: RE: Tomcat unexpectedly shuts down
  
  Yes we do, we have 6GB total memory
 
 That might not be enough.  Besides the Java heap, there's a ton of other 
 stuff that has to fit in the process space and overall RAM.  Try shrinking 
 your heap to 4 GB and see if it avoids the shutdown.
 
  - 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 unexpectedly shuts down

2010-08-09 Thread Caldarale, Charles R
 From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
 Subject: RE: Tomcat unexpectedly shuts down
 
 What would be the minimum memory needed by OS in order to have
 jvm/tomcat running properly?

There's no general answer to that.  It depends entirely on what you're running 
in your environment.

 - 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: java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addServlet

2010-08-09 Thread javagrl

Which version of tomcat are you using ? tomcat 7.x?
-- 
View this message in context: 
http://old.nabble.com/java.lang.NoSuchMethodException%3A-org.apache.catalina.deploy.WebXml--addServlet-tp29221308p29388719.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: Two-way SSL setup as Tomcat as a client

2010-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve,

On 8/7/2010 6:24 PM, Steve Johnson wrote:
  I can confirm that the Apache HTTPClient module is a good way to go. 
 In fact, it works with zero configuration.  You simply give it a normal
 'https' URL, and it does the right thing automagically.

I'm sure YF will need /some/ configuration: it looks like he's trying to
use client SSL certificates, which definitely need to be configured
before the SSL connection is established.

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

iEYEARECAAYFAkxgGpoACgkQ9CaO5/Lv0PCimwCgw6+CP9izZQ0AhkydoesH55mA
YKwAn1s7DEWWmfjToE2CiMYtbdRPzOU8
=XZn8
-END PGP SIGNATURE-

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



Re: 64 bit version for linux

2010-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mladen,

On 8/9/2010 6:13 AM, Mladen Turk wrote:
 On 08/09/2010 11:40 AM, Angelo Chen wrote:

 Hi,

 in this link:
 http://tomcat.apache.org/download-60.cgi#6.0.29
 it has 32 and 64 bits version of tomcat for Windows. but for Linux,
 there is
 only one version, why?

 
 Windows versions are distributed with tomcat native and service wrapper
 pre-compiled binaries, thus we have separate 32 and 64-bit flavors.
 
 Fox *nix platforms you will need to build those by yourself
 (many distributions already offer those) for what ever arch you have.

Really? I didn't know there were any service wrappers at all for *nix. I
thought it was all shell scripts...

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

iEYEARECAAYFAkxgG2UACgkQ9CaO5/Lv0PDdrACfRF/yOe5oaunYmhKMcCw1H8Rq
6fAAoKwKrlj48+Jz7b1tcendM8pPBQRv
=YP8v
-END PGP SIGNATURE-

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



Re: Tomcat unexpectedly shuts down

2010-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gerardo,

On 8/9/2010 10:26 AM, Gerardo Corro wrote:
 What would be the minimum memory needed by OS in order to have
 jvm/tomcat running properly?

I have had Tomcat 5.5.x running with my own webapp in as little as 32MiB
of allocated (-Xmx) heap on a 32-bit JVM.

YMMV, especially when running under 64-bit, which will inflate your
memory footprint a bit.

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

iEYEARECAAYFAkxgHL4ACgkQ9CaO5/Lv0PBNqACeNWbGDrxcYLsVwVT10fcXxhHQ
Ck4An1aUkZVsMq30eqKjCP2aTw+dfJ1D
=40TO
-END PGP SIGNATURE-

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



RE: 64 bit version for linux

2010-08-09 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: 64 bit version for linux
 
  Windows versions are distributed with tomcat native and 
  service wrapper pre-compiled binaries, thus we have separate
  32 and 64-bit flavors.
 
  Fox *nix platforms you will need to build those by yourself
  (many distributions already offer those) for what ever arch
  you have.
 
 Really? I didn't know there were any service wrappers at all for *nix.

jsvc, although I think it does an exec*() call to get the JVM going, so it 
probably doesn't matter if it's 32- or 64-bit.

But the native library (APR) had better match the mode of the JVM.

 - 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: 64 bit version for linux

2010-08-09 Thread Mladen Turk

On 08/09/2010 05:45 PM, Caldarale, Charles R wrote:


jsvc, although I think it does an exec*() call to get the JVM going, so it 
probably doesn't matter if it's 32- or 64-bit.


Nope it loads the jvm in process, so it has to match the arch.
This allows to decrease the security credentials
while still allowing to run on port  1024
without the need to run as root.


Regards
--
^TM

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



RE: 64 bit version for linux

2010-08-09 Thread Caldarale, Charles R
 From: Mladen Turk [mailto:mt...@apache.org]
 Subject: Re: 64 bit version for linux
 
  jsvc, although I think it does an exec*() call to get the JVM going,
 
 Nope it loads the jvm in process

Thanks for the correction.

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




Procrun problems with Tomcat 6 on Windows 64-bit

2010-08-09 Thread Stewart, Kevin L. (GSFC-417.0)[CONSTELLATION SOFTWARE ENGINEERING]
Hi, I've been looking on the web and the Tomcat wiki and haven't found any 
solution to this problem.

I have a 64-bit Windows 2008 server with Java 1.6_20 (64-bit) and 64-bit tomcat 
6.0.26 (6.0.29 also) installed as a service.  I also have a Liferay portal that 
I need to install.  But I am having problems with the startup.  (BTW, I use the 
tomcat6w.exe gui mostly.)  If I use startmode=jvm, the Spring framework in 
Liferay loops until I get a StackOverflowException, no matter the stack size.  
However, if I start with startmode=java the Spring framework initializes 
correctly, however some logs appear in the java directory instead of the Tomcat 
one even though the user.dir is set to Tomcat.  Further, when startmode=java 
the stop service on tomcat6w.exe returns successful after a long wait, but the 
Tomcat server is still actually running.  I have to manually kill the Java 
process that Tomcat is running in.  My choices seem to be having a 
non-functional Tomcat or an unstable one.

I wrote a cheap JSP that dumps out all the session, request and system 
properties.  I've ruled all the differences out that I could (server lib path, 
classpath, etc).  The only one I couldn't was:

Property: sun.java.launcher  value = SUN_STANDARD

My first question is why does the startmode make such a difference in the 
behavior of Tomcat?  Secondly, how can I either stabilize startmode=java or 
better yet get startmode=jvm working?

Kevin L. Stewart
Sr. Software Lead, GOES V3
Constellation Software Engineering
NASA GSFC, Code 417



Can Tomcat's port be set as an argument?

2010-08-09 Thread JohnRodey

I have a script that starts multiple processes, one of which being a Tomcat
server.  I would like to allow the user to specify the port for tomcat in my
property file, and on startup that property be read and passed to tomcat,
thus ignoring the 8080 set in the server.xml file.  This way if 8080 is
unavailable the user will just have to change the port in one place, my
porperty file.

Is there any '-D' JVM argument I can set?  Any other ways to set it?

Thanks
-- 
View this message in context: 
http://old.nabble.com/Can-Tomcat%27s-port-be-set-as-an-argument--tp29390220p29390220.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



java.lang.RuntimePermission accessClassInPackage.org.apache.catalina

2010-08-09 Thread Rashid Jilani
Hi: Gurus I am having the following exception when I try to fire Tomcat with
-security option with JAAS Realm.

java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.org.apache.catalina)

 

I am using Tomcat 6.0.29 on windows XP machine, with JDK 1.6.

 

The way I am starting the catalina engine is something like this

 

@echo off

setlocal

set CATALINA_HOME=C:\apache-tomcat-6.0.29

set JAVA_OPTS=-Djava.security.manager
-Djava.security.auth.login.config=C:\Documents and
Settings\xxx\workspace\WebSecurity\WebContent\WEB-INF\projsp.login

call catalina.bat run -security

endlocal

 

BTW I also try to add the following lines in catalina.policy file but no
luck

 

grant codeBase file:/C:/Documents and
Settings/xxx/workspace/WebSecurity/WebContent/WEB-INF/classes/- {

permission java.security.AllPermission;

permission java.lang.RuntimePermission
accessClassInPackage.org.apache.catalina;

permission java.lang.RuntimePermission
accessClassInPackage.org.apache.catalina.manager;

permission java.lang.RuntimePermission
accessClassInPackage.org.apache.catalina.manager.util;

};

 

Hensley how the JAAS can integrate with Tomcat has almost no real example or
documentation, so I am just trying my luck with trails and errors, please
let me know if some has any idea why I am having these errors.

 

Thanks,

RJ.

 



Re: Cluster Logging

2010-08-09 Thread Mark Eggers
How about something like this:

handlers = 1catalina.org.apache.juli.FileHandler, \
2localhost.org.apache.juli.FileHandler, \
3manager.org.apache.juli.FileHandler, \
4host-manager.org.apache.juli.FileHandler, \
java.util.logging.ConsoleHandler, \ 
5cluster.org.apache.juli.FileHandler


5cluster.org.apache.juli.FileHandler.level = FINE
5cluster.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5cluster.org.apache.juli.FileHandler.prefix = cluster.

org.apache.catalina.tribes.MESSAGES.level = FINE
org.apache.catalina.tribes.MESSAGES.handlers = 
5cluster.org.apache.juli.FileHandler

org.apache.catalina.tribes.level = FINE
org.apache.catalina.tribes.handlers = 5cluster.org.apache.juli.FileHandler

org.apache.catalina.ha.level = FINE
org.apache.catalina.ha.handlers = 5cluster.org.apache.juli.FileHander

Adjust logging levels accordingly.

. . . just my two cents.

/mde/



- Original Message 
From: Oscar Segarra Rey osega...@gencat.cat
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, August 9, 2010 2:44:35 AM
Subject: Cluster Logging

Hi,

I would like to monitor cluster  as it was in tomcat 5.5 with the clause 
doClusterLog in tomcat 6.0.24.

I have added the following lines in logging.properties:

org.apache.catalina.tribes.MESSAGES.level = FINE
org.apache.catalina.tribes.level = FINE
org.apache.catalina.ha.level = FINE

And messages are written into catalina.out file.

I would like to write cluster messages in a cluster.out file but in the 
official 
web I could not find how to.

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

How can I achieve this objective ?

Thanks in advance.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834





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



Re: Can Tomcat's port be set as an argument?

2010-08-09 Thread JohnRodey

I was able to find this article, I'm going to try this.


http://www.altuure.com/2008/11/12/tomcat-port-configuration/
-- 
View this message in context: 
http://old.nabble.com/Can-Tomcat%27s-port-be-set-as-an-argument--tp29390220p29390275.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: Cluster Logging

2010-08-09 Thread Mark Eggers
Let me try that again since my copy/paste failed.

#
# add an extra handler to direct to a different file
#
handlers = 1catalina.org.apache.juli.FileHandler, \
2localhost.org.apache.juli.FileHandler, \
3manager.org.apache.juli.FileHandler, \
4host-manager.org.apache.juli.FileHandler, \
java.util.logging.ConsoleHandler, \
5cluster.org.apache.juli.FileHandler

#
# define the base level and where the file should go
#
handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 
4host-manager.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler,5cluster.org.apache.juli.FileHandler

#
# now the actual levels - adjust accordingly
#
org.apache.catalina.tribes.MESSAGES.level = INFO
org.apache.catalina.tribes.MESSAGES.handlers = 
5cluster.org.apache.juli.FileHandler

org.apache.catalina.tribes.level = INFO
org.apache.catalina.tribes.handlers = 5cluster.org.apache.juli.FileHandler

org.apache.catalina.ha.level = INFO
org.apache.catalina.ha.handlers = 5cluster.org.apache.juli.FileHander

/mde/


- Original Message 
From: Oscar Segarra Rey osega...@gencat.cat
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, August 9, 2010 2:44:35 AM
Subject: Cluster Logging

Hi,

I would like to monitor cluster  as it was in tomcat 5.5 with the clause 
doClusterLog in tomcat 6.0.24.

I have added the following lines in logging.properties:

org.apache.catalina.tribes.MESSAGES.level = FINE
org.apache.catalina.tribes.level = FINE
org.apache.catalina.ha.level = FINE

And messages are written into catalina.out file.

I would like to write cluster messages in a cluster.out file but in the 
official 

web I could not find how to.

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

How can I achieve this objective ?

Thanks in advance.

Oscar Segarra Rey
Àrea de tecnologies de la informació i les comunicacions
Departament de la Presidència
C/ Sant Honorat 1-3 - 08002 Barcelona
934024834





-
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 6.0.18/ IIS 6.0 /SSL

2010-08-09 Thread Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00
Chuck,
I was able to get everything working on my end. There is a *significant*
performance decrease when running my application through IIS and Tomcat
using the isapi_redirect.dll, as opposed to port 8080. 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Friday, August 06, 2010 11:50 AM
To: Tomcat Users List
Subject: RE: Tomcat 6.0.18/ IIS 6.0 /SSL

 From: Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00 
 [mailto:jason.t.hansel@navy.mil]
 Subject: RE: Tomcat 6.0.18/ IIS 6.0 /SSL
 
 Well good news, 6.0.28 was JUST approved...WooHOO!!!

There was one regression in 6.0.28 that you should be aware of:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49598

Its existence prompted the rapid release of 6.0.29, where the problem is
fixed.

 - 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



smime.p7s
Description: S/MIME cryptographic signature


Re: 64 bit version for linux

2010-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mladen,

On 8/9/2010 12:17 PM, Mladen Turk wrote:
 On 08/09/2010 05:45 PM, Caldarale, Charles R wrote:

 jsvc, although I think it does an exec*() call to get the JVM going,
 so it probably doesn't matter if it's 32- or 64-bit.
 
 Nope it loads the jvm in process, so it has to match the arch.
 This allows to decrease the security credentials
 while still allowing to run on port  1024
 without the need to run as root.

Thanks, I hadn't thought of jsvc. I guess that comes as part of the
Tomcat distro these days. I've never used it, so I haven't been
following it's availability for various platforms.

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

iEYEARECAAYFAkxgRD0ACgkQ9CaO5/Lv0PCmSQCdGydKEoxJJiDkkakcvdpA2tw4
714An0v/+ZMkU4l1Qmm7EaRQUA1Zom2P
=7YTz
-END PGP SIGNATURE-

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



Re: java.lang.RuntimePermission accessClassInPackage.org.apache.catalina

2010-08-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rashid,

On 8/9/2010 1:24 PM, Rashid Jilani wrote:
 Hi: Gurus I am having the following exception when I try to fire Tomcat with
 -security option with JAAS Realm.
 
 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission accessClassInPackage.org.apache.catalina)

You should provide more of the stack trace for us to be able to help you.

 BTW I also try to add the following lines in catalina.policy file but no
 luck
 
 grant codeBase file:/C:/Documents and
 Settings/xxx/workspace/WebSecurity/WebContent/WEB-INF/classes/- {
 
 permission java.security.AllPermission;
 
 permission java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina;
 
 permission java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina.manager;
 
 permission java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina.manager.util;
 
 };

You may need to grant permissions to your webapp's library .jar files, too.

 Hensley how the JAAS can integrate with Tomcat has almost no real example or
 documentation, so I am just trying my luck with trails and errors, please
 let me know if some has any idea why I am having these errors.

It seems pretty clear that you simply haven't given permission for some
code to perform some task.

The stack trace tells you which code failed and what permission you
need: it should be trivial to add a grant that allows that code those
permissions.

You might want to read the thread back in March 2010 titled [OT]
SecurityManager and Java Policy Files. Unfortunately, we didn't get
very far.

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

iEYEARECAAYFAkxgRmgACgkQ9CaO5/Lv0PBKtQCfdKoXx8HfVD+dVpwGeg9DiIWP
p9oAoKWK4tLMB4wKh3xAfsoOdxQXOuSM
=300m
-END PGP SIGNATURE-

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



RE: Can Tomcat's port be set as an argument?

2010-08-09 Thread Caldarale, Charles R
 From: JohnRodey [mailto:timothydd...@yahoo.com]
 Subject: Re: Can Tomcat's port be set as an argument?
 
 I was able to find this article, I'm going to try this.
 
 http://www.altuure.com/2008/11/12/tomcat-port-configuration/

Also read the Tomcat doc:
http://tomcat.apache.org/tomcat-6.0-doc/config/index.html

Which says, in part:

The Tomcat configuration files support Apache Ant style variable substitution. 
A system property with the name propname may be used in a configuration file 
using the syntax ${propname}. All system properties are available including 
those set using the -D syntax, those automatically made available by the JVM 
and those configured in the $CATALINA_BASE/conf/catalina.properties file.

 - 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: java.lang.RuntimePermission accessClassInPackage.org.apache.catalina

2010-08-09 Thread Rashid Jilani
Hi; Chris, I am attaching the stack trace log file with this email. If you 
don't prefer attachments please let me know.

BTW there is no jars in webapps/lib directory, so the problem is somewhere else.

Regards,
RJ.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, August 09, 2010 1:18 PM
To: Tomcat Users List
Subject: Re: java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rashid,

On 8/9/2010 1:24 PM, Rashid Jilani wrote:
 Hi: Gurus I am having the following exception when I try to fire Tomcat with
 -security option with JAAS Realm.
 
 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission accessClassInPackage.org.apache.catalina)

You should provide more of the stack trace for us to be able to help you.

 BTW I also try to add the following lines in catalina.policy file but no
 luck
 
 grant codeBase file:/C:/Documents and
 Settings/xxx/workspace/WebSecurity/WebContent/WEB-INF/classes/- {
 
 permission java.security.AllPermission;
 
 permission java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina;
 
 permission java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina.manager;
 
 permission java.lang.RuntimePermission
 accessClassInPackage.org.apache.catalina.manager.util;
 
 };

You may need to grant permissions to your webapp's library .jar files, too.

 Hensley how the JAAS can integrate with Tomcat has almost no real example or
 documentation, so I am just trying my luck with trails and errors, please
 let me know if some has any idea why I am having these errors.

It seems pretty clear that you simply haven't given permission for some
code to perform some task.

The stack trace tells you which code failed and what permission you
need: it should be trivial to add a grant that allows that code those
permissions.

You might want to read the thread back in March 2010 titled [OT]
SecurityManager and Java Policy Files. Unfortunately, we didn't get
very far.

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

iEYEARECAAYFAkxgRmgACgkQ9CaO5/Lv0PBKtQCfdKoXx8HfVD+dVpwGeg9DiIWP
p9oAoKWK4tLMB4wKh3xAfsoOdxQXOuSM
=300m
-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: java.lang.RuntimePermission accessClassInPackage.org.apache.catalina

2010-08-09 Thread Rashid Jilani
Hi: Chris in case you can't see attachments here is the stack trace

Aug 9, 2010 3:12:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
C:\Program 
Files\Java\jre1.5.0_05\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\site\bin;C:\Perl\bin;C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft 
Office\OFFICE11\Business Contact Manager\IM;C:\Program Files\Microsoft 
Office\OFFICE11\Business Contact Manager\;C:\Program Files\ATI 
Technologies\ATI.ACE\;C:\Program Files\IDM Computer 
Solutions\UltraEdit-32;C:\apache-ant-1.7.0\bin;C:\jboss-4.0.2\bin;C:\mule-2.1.2\bin;C:\apache-maven-2.0.9\bin;C:\Program
 Files\Java\jdk1.5.0_12\bin;C:\Program Files\TortoiseSVN\bin;C:\Program 
Files\QuickTime\QTSystem\;C:\groovy-1.6.4\bin
Aug 9, 2010 3:12:31 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Aug 9, 2010 3:12:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 667 ms
Aug 9, 2010 3:12:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 9, 2010 3:12:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Aug 9, 2010 3:12:31 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Aug 9, 2010 3:12:32 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Aug 9, 2010 3:12:32 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor WebSecurity.xml
Aug 9, 2010 3:12:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Aug 9, 2010 3:12:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Aug 9, 2010 3:12:32 PM org.apache.catalina.loader.WebappClassLoader findClass
WARNING: WebappClassLoader.findClassInternal(chat.ChatServlet) security 
exception: access denied (java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina)
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission accessClassInPackage.org.apache.catalina)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
at java.lang.ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2733)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1124)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at 
org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:108)
at 
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:58)
at 
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4540)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at 

Re: Tomcat unexpectedly shuts down

2010-08-09 Thread André Warnier

Gerardo Corro wrote:

What would be the minimum memory needed by OS in order to have jvm/tomcat 
running properly?

Our system will grow five times more and we were thinking to get a total of 
20GB ram memory, we were planning to assign 18GB to jvm/tomcat and leave 2Gb to 
the OS.

Is there a kind of rule for jvm-tomcat/os memory proportions needed?

There is no rule, but there was an earlier thread on this list with the message I quote 
below, which provides an idea of how many distinct instances of Tomcat one /can/ run in 
one machine with 32 GB of RAM. Divide by 164 to figure out how much memory one Tomcat 
/might/ need.  You may want to read the whole thread in the list archives there is 
probably some information for you there.



Apart from that, I run a number of Linux servers with Tomcat (mostly 5.5 right now) and 
the following top display if fairly typical.


top - 00:11:51 up 223 days, 13:58,  2 users,  load average: 0.07, 0.02, 0.00
Tasks: 133 total,   1 running, 132 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  0.0%sy,  0.0%ni, 99.5%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2054392k total,  1986820k used,67572k free,   114660k buffers
Swap:  1951888k total,58548k used,  1893340k free,  1027228k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 3030 tomcat55  20   0  420m 162m 9168 S0  8.1  73:22.22 java

The (32-bit) JVM of this particular Tomcat is configured with options -Xms128M -Xmx128M 
in other words with a fixed size Heap of 128 MB.  This is on a not-so-fast machine with 2 
GB RAM in total, which runs plenty of other things.


I must say that your 3000 MB of Heap kind of makes my head spin.  What kind of application 
are you running that you would think you need as much ?




 Original Message 
Subject: RE: Tomcat Shutting Down by Itself?
Date: Mon, 26 Jul 2010 21:35:03 -0700
From: Robinson, Eric eric.robin...@psmnv.com
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org

 What kind of machine are you running these 163/164
 instances of Tomcat on, and when you are running them,
 what /does/ free say ?

I have two different servers with 164 instances of tomcat. Both servers
have 2x quad-core 2.8Ghz Xeon processors with 32GB RAM. On the first
server (app03), most instances of tomcat are configured with 64MB of
Java heap. About 20% of them have 96-256MB. I almost never reboot this
server (current uptime 61 days). Here's 'free' from app03.


[r...@app03 ~]# free
 total   used   free sharedbuffers
cached
Mem:  33265832   305702602695572  0 296976
4562784
-/+ buffers/cache:   257105007555332
Swap:  2031608  02031608


On the other server (app04), all instances of tomcat are configured with
512MB Java heap (-ms512M -mx512M). After 4 or 5 days of uptime, the
server starts to swap a little. Then I reboot it and it is fine for
several more days. As you can see from the following, it is about time
for a reboot. If I do not reboot it tonight, by tomorrow or the next day
it may be up to 1-2GB of swap. (It actually doesn't slow the server down
much though. sar shows that it runs about 90% idle anyway, including
iowait.

[r...@app03 ~]# ssh app04 free
 total   used   free sharedbuffers
cached
Mem:  33265832   32965812 300020  0 191248
3842092
-/+ buffers/cache:   28932472460
Swap:  2031608   42882027320


--
Eric Robinson


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



Re: Tomcat 6.0.18/ IIS 6.0 /SSL

2010-08-09 Thread André Warnier

Hansel, Jason T CTR SPAWARSYSCEN-ATLANTIC, 55E00 wrote:

Chuck,
I was able to get everything working on my end. There is a *significant*
performance decrease when running my application through IIS and Tomcat
using the isapi_redirect.dll, as opposed to port 8080. 

No way to know what you mean by significant, but from the tone of it I guess you mean 
humanly perceptible.  In that case, it is not normal.  The overhead introduced by 
isapi_redirect itself may be in the order of the millisecond.


Are you sure that the extra delay is not due to something happening in IIS, like the user 
authentication e.g. ?



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



Re: java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addServlet

2010-08-09 Thread ashelton3



javagrl wrote:
 
 Which version of tomcat are you using ? tomcat 7.x?
 

I think I got this problem to go away by telling the Eclipse Tomcat server
to genearate only XMK files. I'm not sure what that means, exactly, but it
worked...
-- 
View this message in context: 
http://old.nabble.com/java.lang.NoSuchMethodException%3A-org.apache.catalina.deploy.WebXml--addServlet-tp29221308p29393916.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