RE:Local VisualVM connection to Tomcat

2013-07-23 Thread Eugène Adell
I had a similar problem when using jps/jstat and finally I found someone advising to use -J-Djava.io.tmpdir option. It worked for me, try adding -J-Djava.io.tmpdir when calling visualvm De : Howard W. Smith, Jr. [smithh032...@gmail.com] Envoyé : mardi

Tomcat Threads busy

2013-07-23 Thread Anil Goyal -X (anigoyal - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco)
Hi when a request comes to tomcat and tomcat does not have any free thread available or all the threads are busy and request queue is also full then where I need to write the logic for redirect the request to some other server. I have ConnectionRedirectionValve.java already written but in that

Websocket blogs

2013-07-23 Thread Niki Dokovski
Hi, I'm going to post the experience I gained while working on websocket and jsr 356 implementation in Tomcat 8. First page is here http://nickytd.wordpress.com/developers-perspective-on-java-api-for-websocket-jsr-356-part-i/ Comments and feedback are welcome. cheers niki

OSGi in Tomcat

2013-07-23 Thread Leonardo Torres
Hi guys, I would like to know how can I integrate tomcat with osgi (Equinox)? thank´s. -- Obrigado Leonardo Torres.

Re: OSGi in Tomcat

2013-07-23 Thread Violeta Georgieva
2013/7/23 Leonardo Torres wrote: Hi guys, I would like to know how can I integrate tomcat with osgi (Equinox)? What exactly do you need? - OSGi running inside Tomcat - Or Tomcat running inside OSGi environment. If this is what you need then you can look at http://eclipse.org/gemini/web

Re: OSGi in Tomcat

2013-07-23 Thread Leonardo Torres
Let me explain my scenario, so you can help me. I have an application that uses the implementation of tomcat to websocket, and this application need to find services dynamically. So I need to use OSGi as service repository. I believe embed OSGi in tomcat, work in my scenario. On Tue, Jul 23,

Re: JSVC - two processes running as root

2013-07-23 Thread Shridev Makim
The version of tomcat installed is 7.0.32 if that helps. Anyone has seen this issue? How do we resolve this? Thanks, Shridev On Thu, Jul 18, 2013 at 3:27 PM, Shridev Makim sma...@gmail.com wrote: Hello, We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. The compiled

Re: OSGi in Tomcat

2013-07-23 Thread Violeta Georgieva
2013/7/23 Leonardo Torres wrote: Let me explain my scenario, so you can help me. I have an application that uses the implementation of tomcat to websocket, and this application need to find services dynamically. So I need to use OSGi as service repository. I believe embed OSGi in tomcat,

RE: Local VisualVM connection to Tomcat

2013-07-23 Thread honyk
On 2013-07-23 Eugène Adell wrote: On Mon, Jul 22, 2013 at 3:10 PM, honyk j.tosov...@email.cz wrote: On 2013-06-28 Christopher Schultz wrote: On 6/27/13 5:17 PM, honyk wrote: I realized that my tomcat runs as a service but I am logged as an user and in this case the tomcat is not

JMX monitoring of tomcat service

2013-07-23 Thread honyk
Dear All, I run tomcat as service on Windows Server 2008 R2. I am not able to monitor it locally yet (discussed in another thread) so in the meantime I am trying to establish JMX connection to it acc. to this guide: http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html All params are changed

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Shridev, On 23.7.2013 16:14, Shridev Makim wrote: The version of tomcat installed is 7.0.32 if that helps. Anyone has seen this issue? How do we resolve this? FWIW, I'm running JSVC for years, and I never saw anything similar. When we execute this shell script, it creates two processes and

Re: JSVC - two processes running as root

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ognjen, On 7/23/13 12:15 PM, Ognjen Blagojevic wrote: Shridev, On 23.7.2013 16:14, Shridev Makim wrote: The version of tomcat installed is 7.0.32 if that helps. Anyone has seen this issue? How do we resolve this? FWIW, I'm running JSVC for

Re: Tomcat Threads busy

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Anil, On 7/23/13 4:35 AM, Anil Goyal -X (anigoyal - ARICENT TECHNOLOGIES MAURIITIUS LIMITED at Cisco) wrote: That logic needs to happen in another layer, in a load-balancer. Tomcat cannot do this on its own. - -chris -BEGIN PGP

Re: JSVC - two processes running as root

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shridev, On 7/18/13 3:27 PM, Shridev Makim wrote: Hello, We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. The compiled jsvc executable is owned by root. We have modified daemon.sh that bundles with tomcat7 for our

Re: JMX monitoring of tomcat service

2013-07-23 Thread Cédric Couralet
2013/7/23 honyk j.tosov...@email.cz: Dear All, I run tomcat as service on Windows Server 2008 R2. I am not able to monitor it locally yet (discussed in another thread) so in the meantime I am trying to establish JMX connection to it acc. to this guide:

Re: JSVC - two processes running as root

2013-07-23 Thread Shridev Makim
On Tue, Jul 23, 2013 at 1:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shridev, On 7/18/13 3:27 PM, Shridev Makim wrote: Hello, We are trying to run tomcat7 as a daemon using JSVC in SunOS environment. The compiled jsvc

RE: JMX monitoring of tomcat service

2013-07-23 Thread honyk
On 2013-07-23 Cédric Couralet wrote: 2013/7/23 honyk j.tosov...@email.cz: Dear All, I run tomcat as service on Windows Server 2008 R2. I am not able to monitor it locally yet (discussed in another thread) so in the meantime I am trying to establish JMX connection to it acc. to this

Re: OSGi in Tomcat

2013-07-23 Thread Leonardo Torres
Thank´s for reply. Just one more question, If I want to use tomcat inside of OSGi environment, how can I do that ? On Tue, Jul 23, 2013 at 12:50 PM, Violeta Georgieva miles...@gmail.comwrote: 2013/7/23 Leonardo Torres wrote: Let me explain my scenario, so you can help me. I have an

Re: JSVC - two processes running as root

2013-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shridev, On 7/23/13 2:41 PM, Shridev Makim wrote: Thanks guys for responding. Here are the content of the script. We invoke this shell script with passing only one parameter named start. Only thing modified in the daemon.sh script was to change

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Shridev, On 23.7.2013 20:41, Shridev Makim wrote: Here are the content of the script. Your script looks ok to me. 1. Do you actually have user dmadmin6 on your system? Does su - dmadmin6 works for you? 2. Did you compiled jsvc as described in the docs [1]? 3. Do you invoke your script as

RE: JMX monitoring of tomcat service

2013-07-23 Thread Igor Cicimov
On 24/07/2013 5:34 AM, honyk j.tosov...@email.cz wrote: On 2013-07-23 Cédric Couralet wrote: 2013/7/23 honyk j.tosov...@email.cz: Dear All, I run tomcat as service on Windows Server 2008 R2. I am not able to monitor it locally yet (discussed in another thread) so in the meantime

RE: Re:[OT] Enable session persistence between two tomcat nodes behind load balancer

2013-07-23 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, July 22, 2013 5:45 PM To: Tomcat Users List Subject: Re:[OT] Enable session persistence between two tomcat nodes behind load balancer -BEGIN PGP SIGNED MESSAGE- Hash: SHA256

Re: JSVC - two processes running as root

2013-07-23 Thread Ognjen Blagojevic
Chris, On 23.7.2013 23:05, Christopher Schultz wrote: Why bother changing the script when you can either set the TOMCAT_USER environment variable or pass --tomcat-user to the script? Speaking of which, maybe the TOMCAT_USER environment variable is actually set to root, so modification of the

RE: SingleSignOn valve enabled by default?

2013-07-23 Thread Martin Gainty
NO: !-- /conf/server.xml -- !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn / -- YES: !-- /conf/server.xml -- !-- SingleSignOn

Re: [OT] Enable session persistence between two tomcat nodes behind load balancer

2013-07-23 Thread David Kerber
On 7/23/2013 5:51 PM, Jeffrey Janner wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, July 22, 2013 5:45 PM To: Tomcat Users List Subject: Re:[OT] Enable session persistence between two tomcat nodes behind load balancer -BEGIN