R: Designing tomcat failover

2008-11-06 Thread Leandro Dardini
 

 -Messaggio originale-
 Da: Sivapatham, Hari [mailto:[EMAIL PROTECTED] 
 Inviato: mercoledì 5 novembre 2008 18.10
 A: users@tomcat.apache.org
 Oggetto: Designing tomcat failover
 
 Hello,
 I have to design a failover setup and I am looking for rough 
 ideas/pointers. Here is our scenario...
  
 TomcatServer1  ---/Cannot communicate to one 
 another/- TomcatServer2(hot backup)
^ ^
 ^
|   \
 | 
 | \  --- TO DO: Switch to
 TomcatServer2 if server 1 is down---|
 |   \   /
 TomcatClient1 TomcatClient2
  
 (Following text simply puts the above picture in words, in 
 case it doesnt show up aligned on some email clients)
 - TomcatServer1 is a 5.5 tomcat that provides services. Its 
 clients are other tomcat instances (say TomcatClient1, 
 TomcatClient2). 
 - We have a redundant TomcatServer2 that is a hot backup for server1. 
 - For simplicity sake, we can assume that there is no need to 
 share session information among TomcatServer1 and 
 TomcatServer2. Also, for practical reasons, we cannot have 
 any communication between them (our clients would resist 
 opening up ports).
  
 Our applications on TomcatClient1 and TomcatClient2 are 
 configured to talk to TomcatServer1. The task at hand is, the 
 client tomcat instances should automatically switch to 
 TomcatServer2 if they detect that
 TomcatServer1 is down. 
  
 So, I am looking for a failover solution for outgoing requests from
 TomcatClient1 and TomcatClient2. The only option I have right 
 now is for our apps to handle the failover. I wanted to check 
 if there is some module that I can use (filter/valve/apache 
 module) that would handle the failover.
  
 I appreciate any ideas you might suggest.
 Thanks!
 Hari
  
  
 

The simplest solution popping in my mind is to use a wrapper on tomcatclient1 
and tomcatclient2 togheter with a mon probe. You can configure tomcatclient1 
to talk to a local wrapper who send the connection to tomcatserver1. The same 
on tomcatclient2. The mon probe will test the connection to tomcatserver1 and 
if it detects a failure it reconfigure the wrapper to let the connection go to 
tomcatserver2. 

Let me know if you'd like more details on this.

Leandro

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Where to get the exact source code of tomcat6.exe and tomcat6w.exe

2008-11-06 Thread Jack Cai
Hi,

I see that tomcat6.exe and tomcat6w.exe is precompiled and is presented as
is in Tomcat source code tree. Where can I find the exact source code for
this two EXE? I'm aware of the Apache Commons procrun project, but I'm not
sure whether tomcat6.exe and tomcat6w.exe are created from the latest
procrun source code. And modification required?

I appreciate if someone can shed some light on this. Thanks!

-Jack Cai


Re: Tomcat Native library for Windows

2008-11-06 Thread zmeeagain

I too had and still have the same problem:

6 Nov 2008 9:48:57 am 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\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]

I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
tcnative-1.dll from
http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
correct version?) and saved them in C:\Program Files\Java\jdk1.6.0_07\bin\
but Tomcat keeps complaining... I have run out of ideas.


Brian Clark-10 wrote:
 
 Thanks for the suggestions. I just re-downloaded the file and now it
 works. I guess it was corrupted during the original download or something.
 Go figure. 
 
 Brian
 
 
 
 - Original Message 
 From: Caldarale, Charles R [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, September 2, 2008 7:19:32 PM
 Subject: RE: Tomcat Native library for Windows
 
 From: Brian Clark [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat Native library for Windows

 Hmmm...on Windows, what is the difference between
 java.library.path and the Windows environmental variable PATH?
 
 By default, none.
 
 I have my Java Classpath set to this, which contains
 my bootstrap.jar.
 
 Hopefully that's what shows in the tomcat6w.exe program, not something
 you're setting in the system environment variables.  (If you do have a
 CLASSPATH environment variable, get rid of it - it will only break
 things.)
 
 Should I just set, via JAVA_OPTS, my java.library.path to the
 same directory, since that's where I put my tcnative-1.dll file?
 -Djava.library.path=C:\Program Files\Apache Software
 Foundation\Tomcat 6.0\bin
 
 Don't bother, the JVM is already looking there, as shown by the INFO
 message.
 
 I don't want to break anything. Setting the java.library.path
 won't make Tomcat stop looking at other libraries in other
 locations (like the built-in /lib directory) will it?
 
 No, it won't break anything, but it's also not going to make it work.  The
 java.library.path is used for native library DLLs only, not for classes.
 
 Check for ownership and access permissions on the file - insure that the
 account the Tomcat service is running under can access the DLL.
 
 By any chance, is this a 64-bit version of Windows Server?  If so, and
 you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
 
 - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Native library for Windows

2008-11-06 Thread Serge Fonville
As far as I know Vista x64 does not run on an ItaniumPerhaps you instead
wanted amd64

Regards,

Serge Fonville

On Thu, Nov 6, 2008 at 9:07 AM, zmeeagain [EMAIL PROTECTED] wrote:


 I too had and still have the same problem:

 6 Nov 2008 9:48:57 am 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\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]

 I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
 Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
 tcnative-1.dll from
 http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
 correct version?) and saved them in C:\Program Files\Java\jdk1.6.0_07\bin\
 but Tomcat keeps complaining... I have run out of ideas.


 Brian Clark-10 wrote:
 
  Thanks for the suggestions. I just re-downloaded the file and now it
  works. I guess it was corrupted during the original download or
 something.
  Go figure.
 
  Brian
 
 
 
  - Original Message 
  From: Caldarale, Charles R [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Tuesday, September 2, 2008 7:19:32 PM
  Subject: RE: Tomcat Native library for Windows
 
  From: Brian Clark [mailto:[EMAIL PROTECTED]
  Subject: Re: Tomcat Native library for Windows
 
  Hmmm...on Windows, what is the difference between
  java.library.path and the Windows environmental variable PATH?
 
  By default, none.
 
  I have my Java Classpath set to this, which contains
  my bootstrap.jar.
 
  Hopefully that's what shows in the tomcat6w.exe program, not something
  you're setting in the system environment variables.  (If you do have a
  CLASSPATH environment variable, get rid of it - it will only break
  things.)
 
  Should I just set, via JAVA_OPTS, my java.library.path to the
  same directory, since that's where I put my tcnative-1.dll file?
  -Djava.library.path=C:\Program Files\Apache Software
  Foundation\Tomcat 6.0\bin
 
  Don't bother, the JVM is already looking there, as shown by the INFO
  message.
 
  I don't want to break anything. Setting the java.library.path
  won't make Tomcat stop looking at other libraries in other
  locations (like the built-in /lib directory) will it?
 
  No, it won't break anything, but it's also not going to make it work.
  The
  java.library.path is used for native library DLLs only, not for classes.
 
  Check for ownership and access permissions on the file - insure that the
  account the Tomcat service is running under can access the DLL.
 
  By any chance, is this a 64-bit version of Windows Server?  If so, and
  you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
 
  - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If you
  received this in error, please contact the sender and delete the e-mail
  and its attachments from all computers.
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: tomcat 6.0.18 static cluster confugation

2008-11-06 Thread killbulle

Hi, thanks for you reply

here is a more precise reporting 
i have few problem
i only see member dispaear
the jmx cluster bean is  not present(i cannot find it)
et the deployer refuse to start


Regards,
 Marc

the cluster seems to be conected as the stop off server 2 is recevied by
server 1
 6 nov. 2008 10:19:32
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
memberDisappeared
jvm 1| INFO: Verification complete. Member
disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0,
0, 1}:4000,{127, 0, 0, 1},4000, alive=138643,id={-124 -84 15 47 75 68 66 21
-121 -4 87 -38 -72 -17 -84 117 }, payload={}, command={66 65 66 89 45 65 76
69 88 ...(9)}, domain={}, ]]
jvm 1| 6 nov. 2008 10:19:32 org.apache.catalina.ha.tcp.SimpleTcpCluster
memberDisappeared
jvm 1| INFO: Received member
disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0,
0, 1}:4000,{127, 0, 0, 1},4000, alive=138643,id={-124 -84 15 47 75 68 66 21
-121 -4 87 -38 -72 -17 -84 117 }, payload={}, command={66 65 66 89 45 65 76
69 88 ...(9)}, domain={}, ]




#log server from server 1 after start
jvm 1| 6 nov. 2008 10:16:26
org.apache.tomcat.util.digester.SetPropertiesRule begin
jvm 1| ATTENTION:
[SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
property.
jvm 1| 6 nov. 2008 10:16:26
org.apache.catalina.core.AprLifecycleListener init
jvm 1| INFO: The APR based Apache Tomcat Native library which allows
optimal performance in production environments was not found on the
java.library.path: ../lib
jvm 1| 6 nov. 2008 10:16:26 org.apache.coyote.http11.Http11Protocol init
jvm 1| INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
jvm 1| 6 nov. 2008 10:16:26 org.apache.catalina.startup.Catalina load
jvm 1| INFO: Initialization processed in 1206 ms
jvm 1| 6 nov. 2008 10:16:26 org.apache.catalina.core.StandardService
start
jvm 1| INFO: D�marrage du service Catalina
jvm 1| 6 nov. 2008 10:16:26 org.apache.catalina.core.StandardEngine
start
jvm 1| INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
jvm 1| 6 nov. 2008 10:16:26 org.apache.catalina.ha.tcp.SimpleTcpCluster
start
jvm 1| INFO: Cluster is about to start
jvm 1| 6 nov. 2008 10:16:26
org.apache.catalina.tribes.transport.ReceiverBase bind
jvm 1| INFO: Receiver Server Socket bound to:localhost/127.0.0.1:4000
jvm 1| 6 nov. 2008 10:16:26
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
jvm 1| INFO: Setting cluster mcast soTimeout to 500
jvm 1| 6 nov. 2008 10:16:26
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1| INFO: Sleeping for 1000 milliseconds to establish cluster
membership, start level:4
jvm 1| 6 nov. 2008 10:16:27
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1| INFO: Done sleeping, membership established, start level:4
jvm 1| 6 nov. 2008 10:16:27
org.apache.catalina.ha.deploy.FarmWarDeployer start
jvm 1| GRAVE: FarmWarDeployer can only work as host cluster subelement!
jvm 1| 6 nov. 2008 10:16:29
org.apache.catalina.ha.session.JvmRouteBinderValve start
jvm 1| INFO: JvmRouteBinderValve started
jvm 1| 6 nov. 2008 10:16:29 org.apache.coyote.http11.Http11Protocol
start
jvm 1| INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
jvm 1| 6 nov. 2008 10:16:29 org.apache.jk.common.ChannelSocket init
jvm 1| INFO: JK: ajp13 listening on /0.0.0.0:8010
jvm 1| 6 nov. 2008 10:16:29 org.apache.jk.server.JkMain start
jvm 1| INFO: Jk running ID=0 time=0/70  config=null
jvm 1| 6 nov. 2008 10:16:29 org.apache.catalina.startup.Catalina start
jvm 1| INFO: Server startup in 2977 ms



#server 1 configuration
 Cluster channelSendOptions=8
className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
Manager className=org.apache.catalina.ha.session.DeltaManager
expireSessionsOnShutdown=false domainReplication=true
notifyListenersOnReplication=true/  
Channel className=org.apache.catalina.tribes.group.GroupChannel 
  Receiver address=localhost autoBind=100
className=org.apache.catalina.tribes.transport.nio.NioReceiver
maxThreads=6 port=4000 selectorTimeout=5000/  
  Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter 
Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ 
  /Sender  
  Interceptor
className=org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor/  
  Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor
staticOnly=true/  
  Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/  
   Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
 
  Interceptor

Re: Tomcat Native library for Windows

2008-11-06 Thread zmeeagain

It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64 bit.
Anyhow, your comment made think that ia64 is not my architecture. And
indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
architectures (instead of amd and ia64 as in some previous versions). That
last one did the trick or me: 

INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
[false], random [true].

thx for the nudge


Serge Fonville wrote:
 
 As far as I know Vista x64 does not run on an ItaniumPerhaps you instead
 wanted amd64
 
 Regards,
 
 Serge Fonville
 
 On Thu, Nov 6, 2008 at 9:07 AM, zmeeagain [EMAIL PROTECTED] wrote:
 

 I too had and still have the same problem:

 6 Nov 2008 9:48:57 am 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\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]

 I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
 Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
 tcnative-1.dll from
 http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
 correct version?) and saved them in C:\Program
 Files\Java\jdk1.6.0_07\bin\
 but Tomcat keeps complaining... I have run out of ideas.


 Brian Clark-10 wrote:
 
  Thanks for the suggestions. I just re-downloaded the file and now it
  works. I guess it was corrupted during the original download or
 something.
  Go figure.
 
  Brian
 
 
 
  - Original Message 
  From: Caldarale, Charles R [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Tuesday, September 2, 2008 7:19:32 PM
  Subject: RE: Tomcat Native library for Windows
 
  From: Brian Clark [mailto:[EMAIL PROTECTED]
  Subject: Re: Tomcat Native library for Windows
 
  Hmmm...on Windows, what is the difference between
  java.library.path and the Windows environmental variable PATH?
 
  By default, none.
 
  I have my Java Classpath set to this, which contains
  my bootstrap.jar.
 
  Hopefully that's what shows in the tomcat6w.exe program, not something
  you're setting in the system environment variables.  (If you do have a
  CLASSPATH environment variable, get rid of it - it will only break
  things.)
 
  Should I just set, via JAVA_OPTS, my java.library.path to the
  same directory, since that's where I put my tcnative-1.dll file?
  -Djava.library.path=C:\Program Files\Apache Software
  Foundation\Tomcat 6.0\bin
 
  Don't bother, the JVM is already looking there, as shown by the INFO
  message.
 
  I don't want to break anything. Setting the java.library.path
  won't make Tomcat stop looking at other libraries in other
  locations (like the built-in /lib directory) will it?
 
  No, it won't break anything, but it's also not going to make it work.
  The
  java.library.path is used for native library DLLs only, not for
 classes.
 
  Check for ownership and access permissions on the file - insure that
 the
  account the Tomcat service is running under can access the DLL.
 
  By any chance, is this a 64-bit version of Windows Server?  If so, and
  you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
 
  - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If you
  received this in error, please contact the sender and delete the e-mail
  and its attachments from all computers.
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20357700.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat 6.0.18 static cluster confugation

2008-11-06 Thread killbulle

Hi filip,
herre is a more detailled post(sorry for the first one)

i have few problem in fact
i cannot see the jmx cluster Mbean but the valve replication valve is here ,
is this normal ?
the FarmDeployer doesn't work(still experimetal in tomcat 6)

Regards Marc



here my server log
jvm 1| 6 nov. 2008 12:13:34
org.apache.tomcat.util.digester.SetPropertiesRule begin
jvm 1| ATTENTION:
[SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
property.
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.core.AprLifecycleListener init
jvm 1| INFO: The APR based Apache Tomcat Native library which allows
optimal performance in production environments was not found on the
java.library.path: ../lib
jvm 1| 6 nov. 2008 12:13:34 org.apache.coyote.http11.Http11Protocol init
jvm 1| INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.startup.Catalina load
jvm 1| INFO: Initialization processed in 1545 ms
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardService
start
jvm 1| INFO: D�marrage du service Catalina
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardEngine
start
jvm 1| INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.ha.tcp.SimpleTcpCluster
start
jvm 1| INFO: Cluster is about to start
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.tribes.transport.ReceiverBase bind
jvm 1| INFO: Receiver Server Socket bound to:/10.154.0.166:4000
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
jvm 1| INFO: Setting cluster mcast soTimeout to 500
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1| INFO: Sleeping for 1000 milliseconds to establish cluster
membership, start level:4
jvm 1| 6 nov. 2008 12:13:35
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1| INFO: Done sleeping, membership established, start level:4
jvm 1| 6 nov. 2008 12:13:35
org.apache.catalina.ha.deploy.FarmWarDeployer start
jvm 1| GRAVE: FarmWarDeployer can only work as host cluster subelement!
jvm 1| 6 nov. 2008 12:13:37
org.apache.catalina.ha.session.JvmRouteBinderValve start
jvm 1| INFO: JvmRouteBinderValve started
jvm 1| 6 nov. 2008 12:13:37 org.apache.coyote.http11.Http11Protocol
start
jvm 1| INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
jvm 1| 6 nov. 2008 12:13:37 org.apache.jk.common.ChannelSocket init
jvm 1| INFO: JK: ajp13 listening on /0.0.0.0:8010
jvm 1| 6 nov. 2008 12:13:37 org.apache.jk.server.JkMain start
jvm 1| INFO: Jk running ID=0 time=0/154  config=null
jvm 1| 6 nov. 2008 12:13:37 org.apache.catalina.startup.Catalina start
jvm 1| INFO: Server startup in 3432 ms
jvm 1| 6 nov. 2008 12:13:55 org.apache.catalina.tribes.io.BufferPool
getBufferPool
jvm 1| INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.catalina.tribes.io.BufferPool15Impl
jvm 1| 6 nov. 2008 12:13:55
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
performBasicCheck
jvm 1| ATTENTION: Member added, even though we werent
notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
domain={}, ]
jvm 1| 6 nov. 2008 12:13:55 org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
jvm 1| INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
domain={}, ]
jvm 1| 6 nov. 2008 12:14:00
org.apache.catalina.ha.session.ClusterSessionListener messageReceived
jvm 1| ATTENTION: Context manager doesn't
exist:localhost#/jmx.browser-1.2.0



#server1 cinf 
Cluster channelSendOptions=8
className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
Manager className=org.apache.catalina.ha.session.DeltaManager
expireSessionsOnShutdown=false domainReplication=true
notifyListenersOnReplication=true/  
Channel className=org.apache.catalina.tribes.group.GroupChannel 
  Receiver address=10.154.0.166 autoBind=0
className=org.apache.catalina.tribes.transport.nio.NioReceiver
maxThreads=6 port=4000 selectorTimeout=5000/  
  Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter 
Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ 
  /Sender  
  Interceptor
className=org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor/  
  Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor
staticOnly=true/  
  Interceptor

Tomcat 6.0.19 when?

2008-11-06 Thread sje
Hi All!

Do anyone know when Tomcat 6.0.19 will be released?

I''m working on a enterprise project, where i need to change the 
SessionName on my tomcat server (6.0.18).

I'we been looking on the bugbase for Tomcat 6, and according to this bug: 
https://issues.apache.org/bugzilla/show_bug.cgi?id=42419,
it will be fixed in release 6.0.19.

Are there other possibilites to change the SessionName in the earlier 
Tomcat versions, or do i have to wait for 6.0.19?


And last but not least - when will Tomcat 6.0.19 be released?







Venlig hilsen/Kindly regards

Søren Jepsen
Systemudvikler

IT-udvikling
Tlf. dir. +45 65 20 42 52
[EMAIL PROTECTED]
___

Fionia Bank A/S - www.fioniabank.dk
Vestre Stationsvej 7, DK 5100  Odense C
CVR-nr. 1466 9000

Tomcat multiple sub domain names configuration

2008-11-06 Thread Ridwan

Hi,

I Need some help. I have Java applications running in Apache Tomcat
6.0.16 from port 80 from a Windows 2003 server. It can be accessed say
by the URL http://site1.mycompany.net/MyApplication where MyApplication
is actually a Java application folder name under the
$CATALINA_HOME/webapps/ path. It hosts few other Java application
folders under the same.

But now I want the URL http://site2.mycompany.net to go directly to the
$CATALINA_HOME/webapps/MyApplication folder. How do I do it?

Both the sub domains of mycompany.net, that is, site1.mycompany.net and
site2.mycompany.net point to the same IP address of the server. Now
typing both of those will just bring the Tomcat's home page from the
$CATALINA_HOME/webapps/ROOT folder.

Thanks and Regards
Ridwan Ahmed
Web Systems Manager





This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat-native | best memory choice

2008-11-06 Thread Chris







Hi there,

I've two questions about using Tomcat. We currently using Tomcat in version 
5.5.23 on 64 Bit - Linux (several instances configured with 1GB of ram | as 
Webserver | ~30 Clients). A friend of mine told me that's not a benefite to run 
the tomcat jvm with more than 512 MB memory, because the jvm needs more time to 
reorganize itself as to process the jobs. Is this statement correct? 

The second one is about the tomcat-native libs. If we install them, will it be 
a large performance boost? In the docs they told about scability and 
performance. Will the end-user get an advantage of this?



Thx for the reply 

So long!

_
Messenger Online Treff: Spontan chatten, über Hobbies reden, sofort Spass 
haben? Jetzt klicken!
http://redirect.gimas.net/?n=M0811xMOTDE

RE: Tomcat-native | best memory choice

2008-11-06 Thread Caldarale, Charles R
 From: Chris [mailto:[EMAIL PROTECTED]
 Subject: Tomcat-native | best memory choice

 A friend of mine told me that's not a benefite to run the
 tomcat jvm with more than 512 MB memory, because the jvm
 needs more time to reorganize itself as to process the jobs.
 Is this statement correct?

No, and hasn't been for over ten years.  The time spent in garbage collection 
is proportional to the number of live objects in the heap, not the size of the 
heap.  The number of live objects usually correlates to the number of active 
connections in a Tomcat environment.  Make sure you have enough RAM on the 
system to support the Java heap size plus the code and other data areas and the 
OS; otherwise you will get into paging and performance will suffer dramatically.

 The second one is about the tomcat-native libs. If we install
 them, will it be a large performance boost?

If you're using SSL, you will probably see some increase in performance.  
However, with just 30 users (or is that 30 concurrent requests? - big 
difference), it's unlikely that you have any real performance concerns.  
There's a tradeoff between configuration and installation complexity and 
performance; if you're not pushing the limits, keep it simple.

 Will the end-user get an advantage of this?

In nearly all cases, it's application architecture that is the overriding 
performance factor.  If you really want to speed things up, take a long hard 
look at how your webapp does what needs to be done.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat multiple sub domain names configuration

2008-11-06 Thread Serge Fonville
Either create a new host in server.xml with a different appBase or check for
the request url and perform a redirect
Regards,

Serge Fonville

On Thu, Nov 6, 2008 at 1:28 PM, Ridwan [EMAIL PROTECTED] wrote:

 Hi,

 I Need some help. I have Java applications running in Apache Tomcat
 6.0.16 from port 80 from a Windows 2003 server. It can be accessed say
 by the URL http://site1.mycompany.net/MyApplication where MyApplication
 is actually a Java application folder name under the
 $CATALINA_HOME/webapps/ path. It hosts few other Java application
 folders under the same.

 But now I want the URL http://site2.mycompany.net to go directly to the
 $CATALINA_HOME/webapps/MyApplication folder. How do I do it?

 Both the sub domains of mycompany.net, that is, site1.mycompany.net and
 site2.mycompany.net point to the same IP address of the server. Now
 typing both of those will just bring the Tomcat's home page from the
 $CATALINA_HOME/webapps/ROOT folder.

 Thanks and Regards
 Ridwan Ahmed
 Web Systems Manager



 

 This email has been scanned for all viruses by the MessageLabs SkyScan
 service. For more information on a proactive anti-virus service working
 around the clock, around the globe, visit http://www.messagelabs.com
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat multiple sub domain names configuration

2008-11-06 Thread Caldarale, Charles R
 From: Ridwan [mailto:[EMAIL PROTECTED]
 Subject: Tomcat multiple sub domain names configuration

 typing both of those will just bring the Tomcat's home page from the
 $CATALINA_HOME/webapps/ROOT folder.

The easiest way is to simply delete Tomcat's ROOT directory, and rename 
MyApplication to ROOT.

If you want to do it the hard way and keep the Tomcat default page for site1, 
you'll need to configure virtual hosting:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

You'll need to have separate appBase directories for the two Hosts.  You can 
deploy your webapp as ROOT in the site2 host, or you could have a dummy ROOT 
webapp that just redirects to site1/MyApplication.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache - Tomcat Connector for NIO AJP

2008-11-06 Thread Burak Oguz
Hi everybody,

I am using Tomcat 6.0.18 and Apache2. Anyone knows how to connect tomcat
with apache over AJP/NIO. I developed a Comet application but I should serve
it over Apache. When I simple reverse proxy it over Apache it gives such an
error:

[Thu Nov 06 14:11:15 2008] [error] [client 127.0.0.1] Invalid URI in request
xx


But I want to do it in a logical way with NIO/AJP Connector. My server.xml
contains

Connector address=127.0.0.1 port=0
channelNioSocket.port=8009
channelNioSocket.soTimeout=60
channelNioSocket.bufferSize=16384
channelNioSocket.maxThreads=125
channelNioSocket.minSpareThreads=10
channelNioSocket.maxSpareThreads=50
edirectPort=8443 protocol=AJP/1.3 useBodyEncodingForURI=true /

And in apache2.conf :

ProxyRequests off

Proxy *
Order deny,allow
Allow from all
/Proxy

ProxyPreserveHost On

ProxyPass/tc ajp://127.0.0.1:8009/
ProxyPassReverse /tc ajp://127.0.0.1:8009/

By this way it gives me an HTTP 405 Method Not Allowed error. I can not
connect to Comet application.

Thanks in advance


RE: Tomcat-native | best memory choice

2008-11-06 Thread Chris

 No, and hasn't been for over ten years. The time spent in garbage
collection is proportional to the number of live objects in the heap,
not the size of the heap. The number of live objects usually correlates
to the number of active connections in a Tomcat environment. Make sure
you have enough RAM on the system to support the Java heap size plus
the code and other data areas and the OS; otherwise you will get into
paging and performance will suffer dramatically.

i thought as much. thx for the reply!


 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Date: Thu, 6 Nov 2008 07:49:07 -0600
 Subject: RE: Tomcat-native | best memory choice
 
  From: Chris [mailto:[EMAIL PROTECTED]
  Subject: Tomcat-native | best memory choice
 
  A friend of mine told me that's not a benefite to run the
  tomcat jvm with more than 512 MB memory, because the jvm
  needs more time to reorganize itself as to process the jobs.
  Is this statement correct?
 
 No, and hasn't been for over ten years.  The time spent in garbage collection 
 is proportional to the number of live objects in the heap, not the size of 
 the heap.  The number of live objects usually correlates to the number of 
 active connections in a Tomcat environment.  Make sure you have enough RAM on 
 the system to support the Java heap size plus the code and other data areas 
 and the OS; otherwise you will get into paging and performance will suffer 
 dramatically.
 
  The second one is about the tomcat-native libs. If we install
  them, will it be a large performance boost?
 
 If you're using SSL, you will probably see some increase in performance.  
 However, with just 30 users (or is that 30 concurrent requests? - big 
 difference), it's unlikely that you have any real performance concerns.  
 There's a tradeoff between configuration and installation complexity and 
 performance; if you're not pushing the limits, keep it simple.
 
  Will the end-user get an advantage of this?
 
 In nearly all cases, it's application architecture that is the overriding 
 performance factor.  If you really want to speed things up, take a long hard 
 look at how your webapp does what needs to be done.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Messenger Online Treff: Spontan chatten, über Hobbies reden, sofort Spass 
haben? Jetzt klicken!
http://redirect.gimas.net/?n=M0811xMOTDE

Forward filter mapping including path info

2008-11-06 Thread Florian Hopf
Hi,

I am in a situation where I want to map a forward filter based on a
servlet and an additional path. The path that is forwarded to looks
something like this:

/servlet/long/path.to/my.jsp

The path info is mapped by the servlet to a JSP in the file system.

My filter declaration looks like this:

filter-mapping
 filter-nameResourceTypesListFilter/filter-name
url-pattern/servlet/long/path.to/my.jsp/url-pattern
 dispatcherFORWARD/dispatcher
/filter-mapping

This filter works ok if I omit the dispatcher-node and send a redirect
but does not work for forwards. This is what is logged when I enable
debug-logging for ApplicationDispatcher:

DEBUG [ationDispatcher: 185] servletPath=/servlet,
pathInfo=/long/path.to/my.jsp, queryString=null, name=null
DEBUG [ationDispatcher: 371]  Path Based Forward

The following mapping does work but is too general:

filter-mapping
 filter-nameResourceTypesListFilter/filter-name
url-pattern/servlet/*/url-pattern
 dispatcherFORWARD/dispatcher
/filter-mapping

Is a mapping containing a path info not supported for forwards?

I tested this on Tomcat apache-tomcat-5.5.26 as well as
apache-tomcat-6.0.13, my webapp is 2.4.

Regards
Flo


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache - Tomcat Connector for NIO AJP

2008-11-06 Thread Filip Hanik - Dev Lists
that wont work, you have to use a HTTP connector for Comet 
functionality, and in that case use mod_proxy_http


Filip

Burak Oguz wrote:

Hi everybody,

I am using Tomcat 6.0.18 and Apache2. Anyone knows how to connect tomcat
with apache over AJP/NIO. I developed a Comet application but I should serve
it over Apache. When I simple reverse proxy it over Apache it gives such an
error:

[Thu Nov 06 14:11:15 2008] [error] [client 127.0.0.1] Invalid URI in request
xx


But I want to do it in a logical way with NIO/AJP Connector. My server.xml
contains

Connector address=127.0.0.1 port=0
channelNioSocket.port=8009
channelNioSocket.soTimeout=60
channelNioSocket.bufferSize=16384
channelNioSocket.maxThreads=125
channelNioSocket.minSpareThreads=10
channelNioSocket.maxSpareThreads=50
edirectPort=8443 protocol=AJP/1.3 useBodyEncodingForURI=true /

And in apache2.conf :

ProxyRequests off

Proxy *
Order deny,allow
Allow from all
/Proxy

ProxyPreserveHost On

ProxyPass/tc ajp://127.0.0.1:8009/
ProxyPassReverse /tc ajp://127.0.0.1:8009/

By this way it gives me an HTTP 405 Method Not Allowed error. I can not
connect to Comet application.

Thanks in advance

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat 6.0.18 static cluster confugation

2008-11-06 Thread Filip Hanik - Dev Lists

inline

killbulle wrote:

Hi filip,
herre is a more detailled post(sorry for the first one)

i have few problem in fact
i cannot see the jmx cluster Mbean but the valve replication valve is here ,
  

there is no formal jmx mbean for the cluster yet

is this normal ?
the FarmDeployer doesn't work(still experimetal in tomcat 6)
  

farm deployer was working in 5.0, broke in 5.5 and never fixed in 6.
the idea behind a farm deployer can easily be accomplished in many other 
ways

Regards Marc



here my server log
jvm 1| 6 nov. 2008 12:13:34
org.apache.tomcat.util.digester.SetPropertiesRule begin
jvm 1| ATTENTION:
[SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
property.
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.core.AprLifecycleListener init
jvm 1| INFO: The APR based Apache Tomcat Native library which allows
optimal performance in production environments was not found on the
java.library.path: ../lib
jvm 1| 6 nov. 2008 12:13:34 org.apache.coyote.http11.Http11Protocol init
jvm 1| INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.startup.Catalina load
jvm 1| INFO: Initialization processed in 1545 ms
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardService
start
jvm 1| INFO: D�marrage du service Catalina
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardEngine
start
jvm 1| INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.ha.tcp.SimpleTcpCluster
start
jvm 1| INFO: Cluster is about to start
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.tribes.transport.ReceiverBase bind
jvm 1| INFO: Receiver Server Socket bound to:/10.154.0.166:4000
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
jvm 1| INFO: Setting cluster mcast soTimeout to 500
jvm 1| 6 nov. 2008 12:13:34
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1| INFO: Sleeping for 1000 milliseconds to establish cluster
membership, start level:4
jvm 1| 6 nov. 2008 12:13:35
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1| INFO: Done sleeping, membership established, start level:4
jvm 1| 6 nov. 2008 12:13:35
org.apache.catalina.ha.deploy.FarmWarDeployer start
jvm 1| GRAVE: FarmWarDeployer can only work as host cluster subelement!
jvm 1| 6 nov. 2008 12:13:37
org.apache.catalina.ha.session.JvmRouteBinderValve start
jvm 1| INFO: JvmRouteBinderValve started
jvm 1| 6 nov. 2008 12:13:37 org.apache.coyote.http11.Http11Protocol
start
jvm 1| INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
jvm 1| 6 nov. 2008 12:13:37 org.apache.jk.common.ChannelSocket init
jvm 1| INFO: JK: ajp13 listening on /0.0.0.0:8010
jvm 1| 6 nov. 2008 12:13:37 org.apache.jk.server.JkMain start
jvm 1| INFO: Jk running ID=0 time=0/154  config=null
jvm 1| 6 nov. 2008 12:13:37 org.apache.catalina.startup.Catalina start
jvm 1| INFO: Server startup in 3432 ms
jvm 1| 6 nov. 2008 12:13:55 org.apache.catalina.tribes.io.BufferPool
getBufferPool
jvm 1| INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.catalina.tribes.io.BufferPool15Impl
jvm 1| 6 nov. 2008 12:13:55
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
performBasicCheck
jvm 1| ATTENTION: Member added, even though we werent
notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
domain={}, ]
jvm 1| 6 nov. 2008 12:13:55 org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
jvm 1| INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
domain={}, ]
jvm 1| 6 nov. 2008 12:14:00
org.apache.catalina.ha.session.ClusterSessionListener messageReceived
jvm 1| ATTENTION: Context manager doesn't
exist:localhost#/jmx.browser-1.2.0



#server1 cinf 
Cluster channelSendOptions=8
className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
Manager className=org.apache.catalina.ha.session.DeltaManager

expireSessionsOnShutdown=false domainReplication=true
notifyListenersOnReplication=true/  
Channel className=org.apache.catalina.tribes.group.GroupChannel 
  Receiver address=10.154.0.166 autoBind=0

className=org.apache.catalina.tribes.transport.nio.NioReceiver
maxThreads=6 port=4000 selectorTimeout=5000/  
  Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter 
Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ 
  /Sender  
  Interceptor

Re: tomcat 6.0.18 static cluster confugation

2008-11-06 Thread killbulle

thanks

Filip Hanik - Dev Lists wrote:
 
 inline
 
 killbulle wrote:
 Hi filip,
 herre is a more detailled post(sorry for the first one)

 i have few problem in fact
 i cannot see the jmx cluster Mbean but the valve replication valve is
 here ,
   
 there is no formal jmx mbean for the cluster yet
 is this normal ?
 the FarmDeployer doesn't work(still experimetal in tomcat 6)
   
 farm deployer was working in 5.0, broke in 5.5 and never fixed in 6.
 the idea behind a farm deployer can easily be accomplished in many other 
 ways
 Regards Marc



 here my server log
 jvm 1| 6 nov. 2008 12:13:34
 org.apache.tomcat.util.digester.SetPropertiesRule begin
 jvm 1| ATTENTION:
 [SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
 Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
 property.
 jvm 1| 6 nov. 2008 12:13:34
 org.apache.catalina.core.AprLifecycleListener init
 jvm 1| INFO: The APR based Apache Tomcat Native library which allows
 optimal performance in production environments was not found on the
 java.library.path: ../lib
 jvm 1| 6 nov. 2008 12:13:34 org.apache.coyote.http11.Http11Protocol
 init
 jvm 1| INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
 jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.startup.Catalina load
 jvm 1| INFO: Initialization processed in 1545 ms
 jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardService
 start
 jvm 1| INFO: D�marrage du service Catalina
 jvm 1| 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardEngine
 start
 jvm 1| INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 jvm 1| 6 nov. 2008 12:13:34
 org.apache.catalina.ha.tcp.SimpleTcpCluster
 start
 jvm 1| INFO: Cluster is about to start
 jvm 1| 6 nov. 2008 12:13:34
 org.apache.catalina.tribes.transport.ReceiverBase bind
 jvm 1| INFO: Receiver Server Socket bound to:/10.154.0.166:4000
 jvm 1| 6 nov. 2008 12:13:34
 org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
 jvm 1| INFO: Setting cluster mcast soTimeout to 500
 jvm 1| 6 nov. 2008 12:13:34
 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
 jvm 1| INFO: Sleeping for 1000 milliseconds to establish cluster
 membership, start level:4
 jvm 1| 6 nov. 2008 12:13:35
 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
 jvm 1| INFO: Done sleeping, membership established, start level:4
 jvm 1| 6 nov. 2008 12:13:35
 org.apache.catalina.ha.deploy.FarmWarDeployer start
 jvm 1| GRAVE: FarmWarDeployer can only work as host cluster
 subelement!
 jvm 1| 6 nov. 2008 12:13:37
 org.apache.catalina.ha.session.JvmRouteBinderValve start
 jvm 1| INFO: JvmRouteBinderValve started
 jvm 1| 6 nov. 2008 12:13:37 org.apache.coyote.http11.Http11Protocol
 start
 jvm 1| INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
 jvm 1| 6 nov. 2008 12:13:37 org.apache.jk.common.ChannelSocket init
 jvm 1| INFO: JK: ajp13 listening on /0.0.0.0:8010
 jvm 1| 6 nov. 2008 12:13:37 org.apache.jk.server.JkMain start
 jvm 1| INFO: Jk running ID=0 time=0/154  config=null
 jvm 1| 6 nov. 2008 12:13:37 org.apache.catalina.startup.Catalina
 start
 jvm 1| INFO: Server startup in 3432 ms
 jvm 1| 6 nov. 2008 12:13:55 org.apache.catalina.tribes.io.BufferPool
 getBufferPool
 jvm 1| INFO: Created a buffer pool with max size:104857600 bytes of
 type:org.apache.catalina.tribes.io.BufferPool15Impl
 jvm 1| 6 nov. 2008 12:13:55
 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
 performBasicCheck
 jvm 1| ATTENTION: Member added, even though we werent
 notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
 alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
 domain={}, ]
 jvm 1| 6 nov. 2008 12:13:55
 org.apache.catalina.ha.tcp.SimpleTcpCluster
 memberAdded
 jvm 1| INFO: Replication member
 added:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
 alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
 domain={}, ]
 jvm 1| 6 nov. 2008 12:14:00
 org.apache.catalina.ha.session.ClusterSessionListener messageReceived
 jvm 1| ATTENTION: Context manager doesn't
 exist:localhost#/jmx.browser-1.2.0



 #server1 cinf 
 Cluster channelSendOptions=8
 className=org.apache.catalina.ha.tcp.SimpleTcpCluster 
 Manager className=org.apache.catalina.ha.session.DeltaManager
 expireSessionsOnShutdown=false domainReplication=true
 notifyListenersOnReplication=true/  
 Channel
 className=org.apache.catalina.tribes.group.GroupChannel 
   Receiver address=10.154.0.166 autoBind=0
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
 maxThreads=6 port=4000 selectorTimeout=5000/  
   Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter 
 Transport
 

Re: Sticky Session AND session duplication?

2008-11-06 Thread Greg Dick

Hi,

Ok, this was successful. There was an issue in the ICEfaces framework 
that invalidated the session immediately during failover, giving the 
impression that the session had no previous values, when in fact a new 
session was being created. Thanks all.


Greg

Sanjeev Verma wrote:


comment Can an ICEFaces application have two SESSIONS from the same
browser? I do not know ICEFaces but I do not think it can, and having
two connections is different from two sessions. If it is just two (or
multiple) connections, and your cluster is setup for sticky session,
then the request should only go the server that the browser is sticky
with./comment
  
Not two sessions per client, two connections per session. They both need 
to arrive at the same Node.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ExpireSession settings

2008-11-06 Thread Greg Dick

Hi,

We have an application with an HttpSessionListener on Tomcat 6.0.14 with 
an Apache 2.2 load balancer. We have gone through a variety of config 
settings regarding expireSessionsOnShutdown and we're a bit confused 
as to what we should be seeing.


When a user hits the site and a new session is created, we see this 
message on both nodes of the cluster. Perfect.


When we shut down the node that has been serving the client, we always 
see a sessionDestroyed message on that node for the client whether we 
have the simple configuration:


Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster /

or try to add a manager to the configuration:
Manager className=org.apache.catalina.ha.session.DeltaManager
 expireSessionsOnShutdown=false /

We never see a sessionDestroyed message on the node that isn't shutting 
down. This may be all right, as the session might be duplicated once the 
downed server is restarted, but changing the config to this:


Manager className=org.apache.catalina.ha.session.DeltaManager
 expireSessionsOnShutdown=true /

doesn't seem to make any difference. Does this setting change the way 
sessions are expired throughout the cluster?

Thanks in advance.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Designing tomcat failover

2008-11-06 Thread Sivapatham, Hari
Hi Leandro,
Your solution seems to be exactly what I was looking for. Could you please 
explain more about what you had in mind about the wrapper? Is there a standard 
I can use (like a valve or filter) or is it custom one? I assume that the 
wrapper will be used at the tomcat level and is outside the scope of my app.

Thanks again for taking the time to answer the question!
Cheers
Hari 

-Original Message-
From: Leandro Dardini [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2008 3:04 AM
To: Tomcat Users List
Subject: R: Designing tomcat failover

 

 -Messaggio originale-
 Da: Sivapatham, Hari [mailto:[EMAIL PROTECTED]
 Inviato: mercoledì 5 novembre 2008 18.10
 A: users@tomcat.apache.org
 Oggetto: Designing tomcat failover
 
 Hello,
 I have to design a failover setup and I am looking for rough 
 ideas/pointers. Here is our scenario...
  
 TomcatServer1  ---/Cannot communicate to one another/- 
 TomcatServer2(hot backup)
^ ^
 ^
|   \
 | 
 | \  --- TO DO: Switch to
 TomcatServer2 if server 1 is down---|
 |   \   /
 TomcatClient1 TomcatClient2
  
 (Following text simply puts the above picture in words, in case it 
 doesnt show up aligned on some email clients)
 - TomcatServer1 is a 5.5 tomcat that provides services. Its clients 
 are other tomcat instances (say TomcatClient1, TomcatClient2).
 - We have a redundant TomcatServer2 that is a hot backup for server1. 
 - For simplicity sake, we can assume that there is no need to share 
 session information among TomcatServer1 and TomcatServer2. Also, for 
 practical reasons, we cannot have any communication between them (our 
 clients would resist opening up ports).
  
 Our applications on TomcatClient1 and TomcatClient2 are configured to 
 talk to TomcatServer1. The task at hand is, the client tomcat 
 instances should automatically switch to
 TomcatServer2 if they detect that
 TomcatServer1 is down. 
  
 So, I am looking for a failover solution for outgoing requests from
 TomcatClient1 and TomcatClient2. The only option I have right now is 
 for our apps to handle the failover. I wanted to check if there is 
 some module that I can use (filter/valve/apache
 module) that would handle the failover.
  
 I appreciate any ideas you might suggest.
 Thanks!
 Hari
  
  
 

The simplest solution popping in my mind is to use a wrapper on tomcatclient1 
and tomcatclient2 togheter with a mon probe. You can configure tomcatclient1 
to talk to a local wrapper who send the connection to tomcatserver1. The same 
on tomcatclient2. The mon probe will test the connection to tomcatserver1 and 
if it detects a failure it reconfigure the wrapper to let the connection go to 
tomcatserver2. 

Let me know if you'd like more details on this.

Leandro

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Thread Names..Which in Important?

2008-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

To whom it may concern,

keeplearning wrote:
 I am relatively new to Tomcat. I was looking at thread dumps which we took
 from Tomcat and I see lots of thread names. Now, I am not sure which
one is
 important to look at.
 Some of threads I see are as follows:

 http-8080-Processor15

These are the HTTP request processing threads running on port 8080. If
you also have a connector configured for HTTP to listen on, say, port
8090, then you'll have a set of threads called http-8090-ProcessorABC
where ABC is the thread number. You will see a whole bunch of these
threads, since Tomcat will start at most maxThreads (defined on the
Connector element in server.xml) threads. The default (for Tomcat 6.0)
is 40 threads max.

 TP-Processor1

Oddly enough, these are also request processing threads, but these are
for the AJP connector. I'm not sure why the AJP connector doesn't name
its threads similar to the HTTP ones (like ajp-8009-Processor1 or
something like that), but that's the case.

 WorkerThread(receive_transaction_complete_stage,0)

I have no idea what this might be. Check the stack trace to see what
it's doing, and that may give you your answer.

 Timer-4

This looks like it's a timer, probably from your application using the
JDK's TimerTask classes. See Sun's javadoc for java.util.Timer. I don't
believe Tomcat uses this internally.

 message-bus-1

I don't believe this is Tomcat-related.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkTSkUACgkQ9CaO5/Lv0PD3ugCgob9RzV9u+8gZDFGaj1Gt3ocd
MK4AoKdGvFSqaoOEQGj0tGXB+fh+WpbB
=5oHo
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: a cookie question of one Server with two tomcat server

2008-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bon,

Bon wrote:
 In my environment there are two tomcat server runing with different 
 port in one server , and both two must set its own cookies into 
 client

Are you talking about JSESSIONID cookies, or some other ones?

 now, when I open a browser and browe both site and I can find two
 site write their own cookie into my computer, but when I logout from
 both two sites

How do you logout from these sites?

 (they will expire their own cookies)

How do they expire their cookies?

 with same browser, but the cookies of on site did not be removed,
 does anyone know what is it going on? and how can I solve this
 problem?

Are you observing the cookies being re-sent to the server after they
should have been expired, or are you seeing them listed in your
browser's active cookie list?

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

iEYEARECAAYFAkkTS5oACgkQ9CaO5/Lv0PCbMQCdHj/qRoGswA1/gOf1FE4ULb/m
A5sAn1jPlSAVxOR9PPYRIGMoqWZ/+zOe
=/EoB
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to hide tomcat resource from outside?

2008-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

einojah,

einojah wrote:
 I have an admin area in my application I want to secure. 
 I know I can define a security constraint to set a basic or digest
 authentication for a url pattern. 
 
 But, I don't want the /admin area to be shown outside at all.

What do you want the behavior to be when someone tries to access an
/admin URL from the outside?

 The basic
 authentication is extremely weak and digest auth. also doesn't provide
 enough security. 

Why won't digest auth provide enough security for you? Have you
considered form-based auth over SSL?

 Is it possible to hide an url pattern on the outside, but have it
 available when accessing from the server machine? 

There are ways to do this, but the best way depends on what you want to
actually happen when someone requests a URL from /admin. So, let me know
and I'll make a recommendation.

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

iEYEARECAAYFAkkTSvIACgkQ9CaO5/Lv0PAc+gCfUEzxdRxYPsQ245n5HrmbBDuG
l8wAmwbmVsWda69cTUk3rTDitN0a6rrT
=ZFg4
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.19 when?

2008-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Søren,

[EMAIL PROTECTED] wrote:
 Do anyone know when Tomcat 6.0.19 will be released?
 
 I''m working on a enterprise project, where i need to change the 
 SessionName on my tomcat server (6.0.18).

Do you mean the name of the JSESSIONID cookie? That's what it sounds
like given the bug referenced below.

 I'we been looking on the bugbase for Tomcat 6, and according to this bug: 
 https://issues.apache.org/bugzilla/show_bug.cgi?id=42419,
 it will be fixed in release 6.0.19.

I don't see any indication on that bug report that it

a) has been fixed
b) fix will be included for 6.0.19

This bug is over a year old, but it's good to see that there is renewed
interest in it. According to Mark Thomas, another patch is in the works
(no word on where one can take a look at it), but it is targeted at TC
5.5, not 6.0.

 Are there other possibilites to change the SessionName in the earlier 
 Tomcat versions, or do i have to wait for 6.0.19?

You may have to wait longer than that.

Unfortunately, this particular issue is unlikely to be fixed quickly,
because any solution results in a proprietary solution that violates the
servlet specification (the servlet spec mandates the name of the cookie,
which is why it's hard-coded).

 And last but not least - when will Tomcat 6.0.19 be released?

They generally come when the come. If you're interested in getting the
next release out more quickly, perhaps you could volunteer to fix some bugs?

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

iEYEARECAAYFAkkTTeMACgkQ9CaO5/Lv0PA/CwCgwoiCc19zFYsEbl8UbAhhh+Nl
BMQAmwTF+SBrtOfbJa2PWHg5Gwg7GO5d
=hpkJ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Convenient web application configuration.

2008-11-06 Thread Jason Cipriani
My end solution ended up being to modify
$CATALINA_ROOT/conf/context.xml and put the JNDI data source
definition there. While I agree that modifying global server files is
less than ideal it is by far the simplest solution: It's only one
resource element that has to be added, it requires no modification to
deployment scripts, and solves the problem of site-specific data
source.

I left non site-specific servlet context configuration in each
servlet's web.xml.

Then, I moved site-specific servlet context parameters into the
database. This ended up working out really nicely for a number of
reasons.

Everything is much more convenient now. Thanks for all your advice.

Jason


On Tue, Nov 4, 2008 at 5:15 PM, Christopher Schultz
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jason,

 Jason Cipriani wrote:
 I'm developing with Eclipse but could configure custom build steps
 with ant. This solution would remove most of the inconvenience, but I
 would still have to make 4 separate WARs available for distribution.
 Not *too* big of a deal but I'd rather just distribute a single
 archive.

 If you need a different web.xml file for each machine, they you will, by
 definition, require a different WAR for each machine. There's really
 nothing you can do about that.

 Another option would be to configure your application using something
 other than web.xml but then you've just moved the problem to another
 file.

 We use a file in the user's home directory (called .ant.properties) that
 includes machine-specific environmental information. To deploy, we grab
 the source from CVS and run ant install which does everything,
 including merging the machine-specific configuration into the WAR and
 deploying it. We have a small number of production machines, so this
 isn't a big deal for us. If we had a large number, we'd just further
 script the process by allowing the WAR creation to be parameterized by,
 say, command-line switches (which they really are, since you can define
 any ant property right on the command-line).

 Hope that helps,
 - -chris

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

 iEYEARECAAYFAkkQyYEACgkQ9CaO5/Lv0PBzXQCdH4lqz0vHbGOChbEJIihowz50
 2lsAoK6obiLTx09nSb7+8taZxxITlpjM
 =GAv3
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.19 when?

2008-11-06 Thread Rainer Jung
Christopher Schultz schrieb:
 Søren,
 
 [EMAIL PROTECTED] wrote:
 Do anyone know when Tomcat 6.0.19 will be released?
 
 I''m working on a enterprise project, where i need to change the 
 SessionName on my tomcat server (6.0.18).
 
 Do you mean the name of the JSESSIONID cookie? That's what it sounds
 like given the bug referenced below.
 
 I'we been looking on the bugbase for Tomcat 6, and according to this bug: 
 https://issues.apache.org/bugzilla/show_bug.cgi?id=42419,
 it will be fixed in release 6.0.19.
 
 I don't see any indication on that bug report that it
 
 a) has been fixed
 b) fix will be included for 6.0.19

I think he is actually talking about

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

which will be part of 6.0.19.

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Convenient web application configuration.

2008-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jason,

Jason Cipriani wrote:
 My end solution ended up being to modify
 $CATALINA_ROOT/conf/context.xml and put the JNDI data source
 definition there.

Yikes! You should /definitely/ not do that. Doing so will make that JNDI
data source available (separately, I might add) to all deployed
applications. You'd be better off putting it in server.xml, since nobody
really ever looks for anything in the server-wide context.xml. I believe
you will be adding confusion at the least and a management nightmare at
the worst.

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

iEYEARECAAYFAkkTbmgACgkQ9CaO5/Lv0PBg4gCgpjHTTBCbQDvesDsgYh7ork8i
11YAn2d/Hx2erPtBGBdxrkVjLwAY97Wr
=4mqt
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Convenient web application configuration.

2008-11-06 Thread Jason Cipriani
Hmm, well, there are no other web applications, the server is
dedicated to this one. If there *were* other web applications, they
would likely be using the same data source anyways -- and in that case
it's certainly handy to be able to set the data source for multiple
web apps by maintaining just a single entry in one of Tomcat's
configuration files. Also, for now, I did name the resource something
unique to the web application, I'm not worried about conflicts. As for
management, simple instructions insert this into context.xml on new
server setup seems to be working out well.

I can't think of any way that's more convenient. IMHO, if the choice
is writing custom deployment scripts and having to maintain and run
those to deploy the web app (and centrally maintaining separate copies
of configuration files so they can be distributed with the deployment
scripts rather than letting other developers maintain their own), and
describe to other developers how those work vs. adding an entry to
context.xml once and using Tomcat manager to deploy things, it seems
that the former ends up being more confusing and hard to manage.

To be honest I can't think of a single compelling reason not to do it
this way, or any reason at all other than the fact that I have to
explain to developers that when setting up a new system, they must
modify Tomcat configuration files, and I don't see that as a big deal.
I could be missing something, but everything is working great and is
incredibly easy to manage now that I've made this change. That seems
positive.

Jason


On Thu, Nov 6, 2008 at 5:23 PM, Christopher Schultz
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jason,

 Jason Cipriani wrote:
 My end solution ended up being to modify
 $CATALINA_ROOT/conf/context.xml and put the JNDI data source
 definition there.

 Yikes! You should /definitely/ not do that. Doing so will make that JNDI
 data source available (separately, I might add) to all deployed
 applications. You'd be better off putting it in server.xml, since nobody
 really ever looks for anything in the server-wide context.xml. I believe
 you will be adding confusion at the least and a management nightmare at
 the worst.

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

 iEYEARECAAYFAkkTbmgACgkQ9CaO5/Lv0PBg4gCgpjHTTBCbQDvesDsgYh7ork8i
 11YAn2d/Hx2erPtBGBdxrkVjLwAY97Wr
 =4mqt
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ISAPI_REDIRECT issue

2008-11-06 Thread Paul Pree
Hi All

Apologies in advance if I'm not getting this right - I'm a newbie to the
list.

I have an issue using ISAPI_REDIRECT through IIS to Tomcat.

For most Windows users the redirection works fine, but for users with
large group memberships (approx 70+) they are not redirected and nothing
is logged in the ISAPI log.

I've been working with Microsoft and from the IIS side all appears well.

They believe it is an HTTP Header size issue.

 

Environment:

Windows 2003 32 bit

Tomcat 5.5.25

Java JDK 1.5.0_16

ISAPI Redirect v 1.2.26 (Precompiled DLL for win32)

I believe that the HTTP header is fixed at 8k. Can anyone give me a tip
on how this can be increased? I've seen reference to it being possible,
but just not how. Is it a parameter I set in Tomcat on the 8009
connector? Is it something I can set in the uri properties file (I think
not)? Do I need to download the source and adjust it in there and build
my own DLL?

 

Any tips gratefully received!!!

Thanks

Paul

 

 



Re: ISAPI_REDIRECT issue

2008-11-06 Thread Rainer Jung
Paul Pree schrieb:
 Hi All
 
 Apologies in advance if I'm not getting this right - I'm a newbie to the
 list.
 
 I have an issue using ISAPI_REDIRECT through IIS to Tomcat.
 
 For most Windows users the redirection works fine, but for users with
 large group memberships (approx 70+) they are not redirected and nothing
 is logged in the ISAPI log.
 
 I've been working with Microsoft and from the IIS side all appears well.
 
 They believe it is an HTTP Header size issue.
 
  
 
 Environment:
 
 Windows 2003 32 bit
 
 Tomcat 5.5.25
 
 Java JDK 1.5.0_16
 
 ISAPI Redirect v 1.2.26 (Precompiled DLL for win32)
 
 I believe that the HTTP header is fixed at 8k. Can anyone give me a tip
 on how this can be increased? I've seen reference to it being possible,
 but just not how. Is it a parameter I set in Tomcat on the 8009
 connector? Is it something I can set in the uri properties file (I think
 not)? Do I need to download the source and adjust it in there and build
 my own DLL?

First we should check, whether it is really a header size issue. We
should be able to verify that by logging a failing request done by one
of those users with log_level trace. Please do not log a lot of
requests, because trace log level produces very much output. Especially
it logs the packets which get send to the backend, so we can see,
whether the headers are to big.

I hope you have a system, where you can do such a test?

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ISAPI_REDIRECT issue

2008-11-06 Thread Paul Pree
Thanks Rainer
I've attached a log recorded during one of these failing connects for
TestUser. We stopped IIS, set logging to trace, cleared the log, started
IIS, attempted one connect, then stopped.

Unfortunately I don't have direct access to the failing site, but have
been trying to resolve this for some time now so hopefully have already
collected anything that might assist in pinpointing the problem.
Note that we copied the Windows account of a failing user, then started
stripping Windows groups. The starting point was over 150 groups. When
that user was dropped to 69 it started working. Adding back another
group brought back the failure. Other users with up to 90 groups could
connect, but some with 50 could not. Group complexity (maybe even name
length) definitely has an impact so it's not necessarily 'death at 70'
but each test users has a working number that fails with the addition of
one.
Regards
Paul 
-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Friday, 7 November 2008 9:46 AM
To: Tomcat Users List
Subject: Re: ISAPI_REDIRECT issue

Paul Pree schrieb:
 Hi All
 
 Apologies in advance if I'm not getting this right - I'm a newbie to
the
 list.
 
 I have an issue using ISAPI_REDIRECT through IIS to Tomcat.
 
 For most Windows users the redirection works fine, but for users with
 large group memberships (approx 70+) they are not redirected and
nothing
 is logged in the ISAPI log.
 
 I've been working with Microsoft and from the IIS side all appears
well.
 
 They believe it is an HTTP Header size issue.
 
  
 
 Environment:
 
 Windows 2003 32 bit
 
 Tomcat 5.5.25
 
 Java JDK 1.5.0_16
 
 ISAPI Redirect v 1.2.26 (Precompiled DLL for win32)
 
 I believe that the HTTP header is fixed at 8k. Can anyone give me a
tip
 on how this can be increased? I've seen reference to it being
possible,
 but just not how. Is it a parameter I set in Tomcat on the 8009
 connector? Is it something I can set in the uri properties file (I
think
 not)? Do I need to download the source and adjust it in there and
build
 my own DLL?

First we should check, whether it is really a header size issue. We
should be able to verify that by logging a failing request done by one
of those users with log_level trace. Please do not log a lot of
requests, because trace log level produces very much output. Especially
it logs the packets which get send to the backend, so we can see,
whether the headers are to big.

I hope you have a system, where you can do such a test?

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: a cookie question of one Server with two tomcat server

2008-11-06 Thread Bon

Hi Christopher,

I'm not sure what's difference of JSESSIONID cookies and
javax.servlet.http.Cookie,
I think they are the same thing right? or some other difference details
what I don't know.

when a client user click logout link from the main site web page, 
the logout link is main site's logout Servlet URL, and the logout
Servlet will do something as following:
1. set the cookies maxAge to 0 and add them into response again.
cookie.setMaxAge(0);
response.addCookie(cookie);
2. set the session to invalidate
request.getSession().invalidate();
3. response.sendRedirect(redirectTo); redirectTo is the URL of second
site's logout link.
then the client browser will redirect to second site's logout URL, and
it is a Struts Action,
and this logout Action will do something as following:
1.  set the session to invalidate
2.  set the cookie maxAge to 0 and add them into response again.
cookies[i].setMaxAge(0);
response.addCookie(cookies[i]);
3.  forward to a logout default display page.
4.  direct to main site some page by form submit in default logout
display page.

then done this logout process,
and I found the cookie of main site was be removed but the second site
did not!
when I use the same browser instance to visit second site's logout, and
the cookies 
of second site still did not be removed! but, if I open a new browser
and to visit 
the second site's logout then the cookies of second could be removed!

I need give user a single link to finish the main and second site's
logout, 
so I try to do what I did, but it did not work like what I want!
do I do something wrong and can you give me some idea to do that or some
other 
useful information.

Thank you for your help~
Bon


Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Bon,
 
 Bon wrote:
 In my environment there are two tomcat server runing with different 
 port in one server , and both two must set its own cookies into 
 client
 
 Are you talking about JSESSIONID cookies, or some other ones?
 
 now, when I open a browser and browe both site and I can find two
 site write their own cookie into my computer, but when I logout from
 both two sites
 
 How do you logout from these sites?
 
 (they will expire their own cookies)
 
 How do they expire their cookies?
 
 with same browser, but the cookies of on site did not be removed,
 does anyone know what is it going on? and how can I solve this
 problem?
 
 Are you observing the cookies being re-sent to the server after they
 should have been expired, or are you seeing them listed in your
 browser's active cookie list?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkkTS5oACgkQ9CaO5/Lv0PCbMQCdHj/qRoGswA1/gOf1FE4ULb/m
 A5sAn1jPlSAVxOR9PPYRIGMoqWZ/+zOe
 =/EoB
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/a-cookie-question-of-one-Server-with-two-tomcat-server-tp20355052p20373498.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ISAPI_REDIRECT issue

2008-11-06 Thread Rainer Jung
The attachment did not make it through. If it is to big for this list,
you can send to me directly, but we should keep the discussion on the list.

Regards,

Rainer

Paul Pree schrieb:
 Thanks Rainer
 I've attached a log recorded during one of these failing connects for
 TestUser. We stopped IIS, set logging to trace, cleared the log, started
 IIS, attempted one connect, then stopped.
 
 Unfortunately I don't have direct access to the failing site, but have
 been trying to resolve this for some time now so hopefully have already
 collected anything that might assist in pinpointing the problem.
 Note that we copied the Windows account of a failing user, then started
 stripping Windows groups. The starting point was over 150 groups. When
 that user was dropped to 69 it started working. Adding back another
 group brought back the failure. Other users with up to 90 groups could
 connect, but some with 50 could not. Group complexity (maybe even name
 length) definitely has an impact so it's not necessarily 'death at 70'
 but each test users has a working number that fails with the addition of
 one.
 Regards
 Paul 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 7 November 2008 9:46 AM
 To: Tomcat Users List
 Subject: Re: ISAPI_REDIRECT issue
 
 Paul Pree schrieb:
 Hi All

 Apologies in advance if I'm not getting this right - I'm a newbie to
 the
 list.

 I have an issue using ISAPI_REDIRECT through IIS to Tomcat.

 For most Windows users the redirection works fine, but for users with
 large group memberships (approx 70+) they are not redirected and
 nothing
 is logged in the ISAPI log.

 I've been working with Microsoft and from the IIS side all appears
 well.
 They believe it is an HTTP Header size issue.

  

 Environment:

 Windows 2003 32 bit

 Tomcat 5.5.25

 Java JDK 1.5.0_16

 ISAPI Redirect v 1.2.26 (Precompiled DLL for win32)

 I believe that the HTTP header is fixed at 8k. Can anyone give me a
 tip
 on how this can be increased? I've seen reference to it being
 possible,
 but just not how. Is it a parameter I set in Tomcat on the 8009
 connector? Is it something I can set in the uri properties file (I
 think
 not)? Do I need to download the source and adjust it in there and
 build
 my own DLL?
 
 First we should check, whether it is really a header size issue. We
 should be able to verify that by logging a failing request done by one
 of those users with log_level trace. Please do not log a lot of
 requests, because trace log level produces very much output. Especially
 it logs the packets which get send to the backend, so we can see,
 whether the headers are to big.
 
 I hope you have a system, where you can do such a test?
 
 Regards,
 
 Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ISAPI_REDIRECT issue

2008-11-06 Thread Rainer Jung
Paul Pree schrieb:
 Thanks Rainer
 I've attached a log recorded during one of these failing connects for
 TestUser. We stopped IIS, set logging to trace, cleared the log, started
 IIS, attempted one connect, then stopped.
 
 Unfortunately I don't have direct access to the failing site, but have
 been trying to resolve this for some time now so hopefully have already
 collected anything that might assist in pinpointing the problem.
 Note that we copied the Windows account of a failing user, then started
 stripping Windows groups. The starting point was over 150 groups. When
 that user was dropped to 69 it started working. Adding back another
 group brought back the failure. Other users with up to 90 groups could
 connect, but some with 50 could not. Group complexity (maybe even name
 length) definitely has an impact so it's not necessarily 'death at 70'
 but each test users has a working number that fails with the addition of
 one.

Yes, it looks like a header size problem.

Look at the description of max_packet_size on

http://tomcat.apache.org/connectors-doc/reference/workers.html

You can set it to some bigger value than the default. We don't know
though, how much you actually need (try and error). Be careful to also
adjust the Connector in server.xml as described in the docs page.

Remark: your isapi redirector is version 1.2.25 (that's what the log
file says). I would recommend updating to 1.2.26, or even 1.2.27 (though
that version was just released on Monday).

Let us know, if max_packet_size plus packetSize fixes your problem.

Regards,

Rainer


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



migrating from Tomcat 5.5.x to Tomcat 6.0.x

2008-11-06 Thread rajesh202023

Hi,

I want to replace Tomcat 5.5.x running in my system with Tomcat 6.0.x. I
want to do this in a manner such that the applications that are running on
Tomcat 5 do not need to be modified in any manner to run on Tomcat 6.
I have gone through the Tomcat homepage and noticed that there are some
difference in the directory structure and some other stuff, between the
6.0.x and 5.5.x release.

I want to know what all and where should I change after I install Tomcat 6,
so that I am able to run the existant applications without any issues.

Please help, as I am new to Tomcat in general.

Thanks in advance...

Raj
-- 
View this message in context: 
http://www.nabble.com/migrating-from-Tomcat-5.5.x-to-Tomcat-6.0.x-tp20374253p20374253.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where to get the exact source code of tomcat6.exe and tomcat6w.exe

2008-11-06 Thread Bill Barker

Jack Cai [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,

 I see that tomcat6.exe and tomcat6w.exe is precompiled and is presented as
 is in Tomcat source code tree. Where can I find the exact source code for
 this two EXE? I'm aware of the Apache Commons procrun project, but I'm not
 sure whether tomcat6.exe and tomcat6w.exe are created from the latest
 procrun source code. And modification required?

 I appreciate if someone can shed some light on this. Thanks!


Pretty much all of the procrun developers are also Tomcat developers.  As a 
result, the latest version of tomcat6?.exe should be from the source of the 
latest version of Commons-Daemon procrun.

 -Jack Cai
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: a cookie question of one Server with two tomcat server

2008-11-06 Thread Caldarale, Charles R
 From: Bon [mailto:[EMAIL PROTECTED]
 Subject: Re: a cookie question of one Server with two tomcat server

 I'm not sure what's difference of JSESSIONID cookies and
 javax.servlet.http.Cookie,

JSESSIONID is the specific cookie called out by the servlet spec to be used for 
tracking sessions between client and server.  Instances of 
javx.servlet.http.Cookie can be any cookie you care to use, not just 
JSESSIONID.  The servlet container (Tomcat, for our purposes) is responsible 
for managing JSESSIONID, but a webapp can return any number of cookies to the 
client for whatever purpose it chooses.

 1. set the cookies maxAge to 0

What cookie are your referring to?  JSESSIONID or one of 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL setup help

2008-11-06 Thread Bill Barker
The entry 
keystoreFile=${/usr/local/jre1.6.0_06/bin/keystore.key}/.keystore is 
almost certainly wrong.  For this to work, you would have to start Tomcat 
with the weird 
entry -D/usr/local/jre1.6.0_06/bin/keystore.key=/path/to/my/keystore/keys.
Tomcat does variable substitution when parsing the various config xml files 
based on System properties when it sees something like ${variable}. (This is 
a Tomcat-specific feature, so you can't count on porting it to another 
container).

Michael A. Tucker [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I'm trying to setup SSL on a web app that I have running on a server.  I
 created my keystore.key file and then uncommented this section in my
 server.xml file:

 Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
maxThreads=150 scheme=https secure=true
 
 keystoreFile=${/usr/local/jre1.6.0_06/bin/keystore.key}/.keystore 
 keystorePass=changeit
clientAuth=false sslProtocol=TLS

 Now when I go to https://localhost:8443/ I get failed to connect page
 load error.  I think I'm not doing something wrong in the server.xml
 file, but I'm not sure what.  I already have another program running on
 443 so could that interfere?  I also don't know what APR means in the
 SSL doc.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFJEbv2iSj9VAB3NO8RAkyLAJ0ZhVqiOz0cKuZILoYMYQTjojD8awCfXjHY
 pI7vAxr3JZan3Mq87uzrhMU=
 =8iED
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: a cookie question of one Server with two tomcat server

2008-11-06 Thread Bon

Hi Caldarale

   I just set my own cookies's maxAge to 0, if I also set the JSESSIONID to
0 maybe could be solve my problem right? I'll try it.

thank you for your answer.
Bon


Caldarale, Charles R wrote:
 
 From: Bon [mailto:[EMAIL PROTECTED]
 Subject: Re: a cookie question of one Server with two tomcat server

 I'm not sure what's difference of JSESSIONID cookies and
 javax.servlet.http.Cookie,
 
 JSESSIONID is the specific cookie called out by the servlet spec to be
 used for tracking sessions between client and server.  Instances of
 javx.servlet.http.Cookie can be any cookie you care to use, not just
 JSESSIONID.  The servlet container (Tomcat, for our purposes) is
 responsible for managing JSESSIONID, but a webapp can return any number of
 cookies to the client for whatever purpose it chooses.
 
 1. set the cookies maxAge to 0
 
 What cookie are your referring to?  JSESSIONID or one of 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/a-cookie-question-of-one-Server-with-two-tomcat-server-tp20355052p20374522.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Deployment Web App on Debian

2008-11-06 Thread Zaki Akhmad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hello all,

I am having difficulty while deploying my web application on Debian.
FYI, I am using Debian Testing.

Before I deploy on Debian, I had successfully deployed on Windows. I
just copy one folder of my web application folder to
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\mywebapp

Do some little configuration, restart the tomcat, voila! It works on
http://localhost:8080/mywebapp

But how do I do it on Debian GNU/Linux?

- --
Zaki Akhmad


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAkkTwjIACgkQT4k8JfIMt5fw5ACeMZQXkW0RUQXSOV4hqwhzQc+P
fpgAnje/rgMHC/f1vPfDjnkWrsrV1HFF
=hbKI
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: a cookie question of one Server with two tomcat server

2008-11-06 Thread Bon

Hi Caldarale,

I'm so naive.
I've try to set the JSESSIONID's max-age to 0, and my second site still
did not expire its own cookie
from client.
I guess that is a issue about client or because I can check the second
site's cookie from Server side
and logging each cookie's value to make sure what cookie I've set
max-age to 0, but the cookies in 
client also stay here...

does anybody can give me some idea, some information, and what should I
do right now :-((

best regards,
Bon


Bon wrote:
 
 Hi Caldarale
 
I just set my own cookies's maxAge to 0, if I also set the JSESSIONID
 to 0 maybe could be solve my problem right? I'll try it.
 
 thank you for your answer.
 Bon
 
 
 Caldarale, Charles R wrote:
 
 From: Bon [mailto:[EMAIL PROTECTED]
 Subject: Re: a cookie question of one Server with two tomcat server

 I'm not sure what's difference of JSESSIONID cookies and
 javax.servlet.http.Cookie,
 
 JSESSIONID is the specific cookie called out by the servlet spec to be
 used for tracking sessions between client and server.  Instances of
 javx.servlet.http.Cookie can be any cookie you care to use, not just
 JSESSIONID.  The servlet container (Tomcat, for our purposes) is
 responsible for managing JSESSIONID, but a webapp can return any number
 of cookies to the client for whatever purpose it chooses.
 
 1. set the cookies maxAge to 0
 
 What cookie are your referring to?  JSESSIONID or one of 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/a-cookie-question-of-one-Server-with-two-tomcat-server-tp20355052p20375287.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Problem]Tomcat 6.x with Active Directory on Windows Server 2003

2008-11-06 Thread Vickey

I am trying to authenticate web users with Active Directory on Windows Server
2003 R2 with sp2 and tomcat 6.18, but get an HTTP Status 403 - Access to
the requested resource has been denied error, don't know why, my steps and
configuration as below and post as attachment:

1. create test group and user in Active Directory:
domain name: test
domain controller host: 172.20.2.13
TestGroup: a global security group
testuser1, tomcat: member of TestGroup
screen capture is available in attachment

2. ${catalina.home}/conf/server.xml: 

Server ..
..
Engine name=Catalina defaultHost=localhost
  !-- have to comment this out to use ldap authentication realm
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/
  --
  
  !--I have also tried to put the ldap realm here, but not work
yet--  

  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

   !--ad integration--
   !--the servers are all in my local network, can't access them
from internet--   
   Realm 
className=org.apache.catalina.realm.JNDIRealm 
debug=99
connectionURL=ldap://172.20.2.13:389;
connectionName=[EMAIL PROTECTED]
connectionPassword=tomcat1
authentication=simple
referrals=follow
userRoleName=member
userBase=DC=test
userSearch=(sAMAccountName={0})
userSubtree=true
roleBase=DC=test
roleName=TestGroup
roleSubtree=true
roleSearch=(member={0})
/

  /Host   
/Engine
..
/Server http://www.nabble.com/file/p20375746/ad.jpg 

3. create test web application, and modify the web.xml:
web-app xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
   version=2.5

  display-namead test/display-name
  descriptionad test/description

  !--ad integration-- 
  security-constraint
   web-resource-collection
   web-resource-nameAuthenticated area/web-resource-name
   url-pattern/session.jsp/url-pattern
   url-pattern*.xml/url-pattern
   !--more url patterns and http methods here--
   http-methodDELETE/http-method
   http-methodGET/http-method
   http-methodHEAD/http-method
   http-methodPOST/http-method
   http-methodPUT/http-method
   /web-resource-collection

   !--more web resource collection nodes here--
   auth-constraint
   role-nameTestGroup/role-name
   !--more role name nodes here--
   /auth-constraint
   
   /security-constraint

   login-config
  auth-methodFORM/auth-method
  role-nameTestGroup/role-name
  form-login-config
   form-login-page/login.jsp/form-login-page
  form-error-page/error.jsp/form-error-page
  /form-login-config
/login-config

security-role
descriptionad test group/description
role-nameTestGroup/role-name
/security-role

!--I have also try another login method
login-config  
  auth-methodBASIC/auth-method
/login-config
--
/web-app

4. problem description: 
when resources in Authenticated area defined above are accessed, login.jsp
will appear, if wrong username/password is entered, error.jsp will appear,
but after correct user/password is entered, I can still get error message as
below:

HTTP Status 403 - Access to the requested resource has been denied



type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.




Apache Tomcat/6.0.18 

no exception or error is thrown in the console

5. after log4j is configured to debug on tomcat, errors are found in the
debug log:
 DEBUG http-8080-1 org.apache.catalina.authenticator.AuthenticatorBase - 
Failed authenticate() test
 DEBUG http-8080-1 org.apache.catalina.authenticator.AuthenticatorBase - 
Failed authenticate() test
..

 DEBUG http-8080-1 org.apache.catalina.authenticator.FormAuthenticator -
Authenticating username 'testuser1'
 DEBUG http-8080-1 org.apache.catalina.authenticator.FormAuthenticator -
Authenticating username 'testuser1'
 DEBUG http-8080-1 org.apache.catalina.authenticator.FormAuthenticator -
Authentication of 'testuser1' was successful
 DEBUG http-8080-1 org.apache.catalina.authenticator.FormAuthenticator -
Authentication of 'testuser1' was successful
 DEBUG http-8080-1 

Vedr.: Re: Tomcat 6.0.19 when?

2008-11-06 Thread sje
Hi Rainer!


Yes! That's correct - i referenced the wrong bugnumber :)





Rainer Jung [EMAIL PROTECTED] 
06-11-2008 21:16
Besvar venligst til
Tomcat Users List users@tomcat.apache.org


Til
Tomcat Users List users@tomcat.apache.org
cc

Emne
Re: Tomcat 6.0.19 when?






Christopher Schultz schrieb:
 Søren,
 
 [EMAIL PROTECTED] wrote:
 Do anyone know when Tomcat 6.0.19 will be released?
 
 I''m working on a enterprise project, where i need to change the 
 SessionName on my tomcat server (6.0.18).
 
 Do you mean the name of the JSESSIONID cookie? That's what it sounds
 like given the bug referenced below.
 
 I'we been looking on the bugbase for Tomcat 6, and according to this 
bug: 
 https://issues.apache.org/bugzilla/show_bug.cgi?id=42419,
 it will be fixed in release 6.0.19.
 
 I don't see any indication on that bug report that it
 
 a) has been fixed
 b) fix will be included for 6.0.19

I think he is actually talking about

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

which will be part of 6.0.19.

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ETa4aF48ddYFvyOJ7LMCtvWOmSVFIEOPvWwEmq9lJWf0LZmw==




Re: Deployment Web App on Debian

2008-11-06 Thread Youssef Mohammed
There shouldn't be any difference if you have same same version of tomcat
(recall java in platform independent).
You should look at your logs and see why it fails. If could be for example
that you don't have your database setup or jdbc drivers is done added the
classpath.
You should also deploy a WAR not the webbapp folder (though it sometimes
works both ways).

Regards, Youssef


On Fri, Nov 7, 2008 at 6:21 AM, Zaki Akhmad [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 Hello all,

 I am having difficulty while deploying my web application on Debian.
 FYI, I am using Debian Testing.

 Before I deploy on Debian, I had successfully deployed on Windows. I
 just copy one folder of my web application folder to
 C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\mywebapp

 Do some little configuration, restart the tomcat, voila! It works on
 http://localhost:8080/mywebapp

 But how do I do it on Debian GNU/Linux?

 - --
 Zaki Akhmad


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: http://getfiregpg.org

 iEYEARECAAYFAkkTwjIACgkQT4k8JfIMt5fw5ACeMZQXkW0RUQXSOV4hqwhzQc+P
 fpgAnje/rgMHC/f1vPfDjnkWrsrV1HFF
 =hbKI
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Problem Deploying Web App on Debian's Tomcat

2008-11-06 Thread Zaki Akhmad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello all,

I am having difficulty while deploying my web application on Debian.
FYI, I am using Debian Testing.

Before I deploy on Debian, I had successfully deployed on Windows. I
just copy one folder of my web application folder to
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\mywebapp

Do some little configuration, restart the tomcat, voila! It works on
http://localhost:8080/mywebapp

But how do I do it on Debian GNU/Linux?

- --
Zaki Akhmad


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAkkT7TsACgkQT4k8JfIMt5dejwCdGAemc69mts2XSbYdpjObDi9P
3dgAnA9gZemQ2mcuKlJ6fDXgQeHYV7y/
=12Ap
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Problem]Tomcat 6.x with Active Directory on Windows Server 2003

2008-11-06 Thread Vickey

another thing, authentication on IIS and Active Directory with the same users
and groups is successfully passed.
-- 
View this message in context: 
http://www.nabble.com/-Problem-Tomcat-6.x-with-Active-Directory-on-Windows-Server-2003-tp20375746p20375888.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deployment Web App on Debian

2008-11-06 Thread Leon Rosenberg
you should also check which java version is installed.
If its not suns - remove it.

Leon

On Fri, Nov 7, 2008 at 8:22 AM, Youssef Mohammed
[EMAIL PROTECTED] wrote:
 There shouldn't be any difference if you have same same version of tomcat
 (recall java in platform independent).
 You should look at your logs and see why it fails. If could be for example
 that you don't have your database setup or jdbc drivers is done added the
 classpath.
 You should also deploy a WAR not the webbapp folder (though it sometimes
 works both ways).

 Regards, Youssef


 On Fri, Nov 7, 2008 at 6:21 AM, Zaki Akhmad [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 Hello all,

 I am having difficulty while deploying my web application on Debian.
 FYI, I am using Debian Testing.

 Before I deploy on Debian, I had successfully deployed on Windows. I
 just copy one folder of my web application folder to
 C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\mywebapp

 Do some little configuration, restart the tomcat, voila! It works on
 http://localhost:8080/mywebapp

 But how do I do it on Debian GNU/Linux?

 - --
 Zaki Akhmad


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: http://getfiregpg.org

 iEYEARECAAYFAkkTwjIACgkQT4k8JfIMt5fw5ACeMZQXkW0RUQXSOV4hqwhzQc+P
 fpgAnje/rgMHC/f1vPfDjnkWrsrV1HFF
 =hbKI
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: a cookie question of one Server with two tomcat server

2008-11-06 Thread Bon

Hi all,

I've solved my problem, but I'm not sure why it could be worked.
I found the second site's logout URL with a difference path of login
URL(cookie writer),
then I change the config setting to change the logout URL path to same
as login,
then the cookies of second site was expired by logout.

I don't understand why the orginal link(with another path) could be
worked without main site.
and I didn't set path into my cookies, 
so I'm not sure why I did change the second site logout link path could
be worked!
why? anybody can tell me why!


best regards,
Bon

---

Bon wrote:
 
 Hi Caldarale,
 
 I'm so naive.
 I've try to set the JSESSIONID's max-age to 0, and my second site
 still did not expire its own cookie
 from client.
 I guess that is a issue about client or because I can check the second
 site's cookie from Server side
 and logging each cookie's value to make sure what cookie I've set
 max-age to 0, but the cookies in 
 client also stay here...
 
 does anybody can give me some idea, some information, and what should
 I do right now :-((
 
 best regards,
 Bon
 
 
 Bon wrote:
 
Hi Caldarale

   I just set my own cookies's maxAge to 0, if I also set the JSESSIONID
 to 0 maybe could be solve my problem right? I'll try it.

thank you for your answer.
Bon
 
 
 Caldarale, Charles R wrote:
 
 From: Bon [mailto:[EMAIL PROTECTED]
 Subject: Re: a cookie question of one Server with two tomcat server

 I'm not sure what's difference of JSESSIONID cookies and
 javax.servlet.http.Cookie,
 
 JSESSIONID is the specific cookie called out by the servlet spec to be
 used for tracking sessions between client and server.  Instances of
 javx.servlet.http.Cookie can be any cookie you care to use, not just
 JSESSIONID.  The servlet container (Tomcat, for our purposes) is
 responsible for managing JSESSIONID, but a webapp can return any number
 of cookies to the client for whatever purpose it chooses.
 
 1. set the cookies maxAge to 0
 
 What cookie are your referring to?  JSESSIONID or one of 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/a-cookie-question-of-one-Server-with-two-tomcat-server-tp20355052p20375931.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]