how can i extract row http data from request

2009-06-08 Thread Meir Yanovich
Hello all
i need to deal with legacy web app code , that needs to add basic
authentication to it with sessions
now i need to be able to extract the session id from the header (
can't add sessions into the code )
the scenario is that only once and only once per page i pass the
session into the server side.
but in the next server side calls i don't have it and i can add code
to pass it into the server side call
since i have the session from the first time i will save it into the
map with the session id as the key.
now i need only to be able to extract the session id on every client request .
my question is .. can it be done ?
Thanks

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



can i define jsp directory order from witch tomcat will look first ?

2009-03-17 Thread Meir Yanovich
 Hello all
i have web project in war file with directory structure in witch i have the
jspMain directory where all my jsps are
and the links all pointing to it , but now i have customized pages that i
like to put in new directory called jspXXX
and i like tomcat to look in this directory first and if it finds the jps
there it will always call it from there .
can it be done in tomcat ?


How to block part of application based on ip filtering

2008-08-24 Thread Meir Yanovich
Hello all
im using tomcat as the web server , and i have reverse proxy that
redirect to the tomcat
i like to be able to restrict the users that redirected from the
reverse proxy server to be able to
enter only one section of the application .
now i was reading the configuration and i found only the possibility
to allow / deny based on ip with :
org.apache.catalina.valves.RemoteAddrValve , but how can i allow from
ip x to enter only section Y of the application .
thanks

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



how to delete \work\Catalina subdirectorys every time tomcat loads

2008-08-13 Thread Meir Yanovich
Hello all
i need to be able to remove the cache directory's in the tomcat 6
every time tomcat starting
is there some kind of build in method or acceptable way to do that ?
thanks allot

-
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: how to delete \work\Catalina subdirectorys every time tomcat loads

2008-08-13 Thread Meir Yanovich
im using windows server 2003
the method is starting tomcat as service
question : do i need to run script ? doest it need to be in the tomcat
config somewhere ?
thanks

On Wed, Aug 13, 2008 at 3:42 PM, Angus Mezick
[EMAIL PROTECTED] wrote:
 You could edit the startup command script to delete the directory before
 the start command is run.  I am not too sure about the windows services
 if that is what you are using.  It would help if you told us the
 operating system and method of starting tomcat.

 --Angus Mezick
 -Original Message-
 From: Meir Yanovich [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 13, 2008 6:23 AM
 To: users@tomcat.apache.org
 Subject: how to delete \work\Catalina subdirectorys every time tomcat
 loads

 Hello all
 i need to be able to remove the cache directory's in the tomcat 6
 every time tomcat starting
 is there some kind of build in method or acceptable way to do that ?
 thanks allot

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



-
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 multithread question on external application

2008-03-25 Thread Meir Yanovich
Hello all
i like to ask some basic question about the multi thread model of tomcat
say i have multiple request coming from internet site that going via
apache server tunneling the throw mod_jk to tomcat
tomcat is processing the requests and builds java corba objects that
invoked external api's that comes from external applications
my question is
so how does tomcat handle the invoking external api FROM tomcat web
application to out side application
is there some kind of thread limit ? is there any concurrency with
threads limit ?

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



getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
Hello all
Im running with my tomcat 5.5 on SunOS 9 , but when I start tomcat im
getting this error The tomcat keeps running fine , but I like to know
how to eliminate this error :
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.init(Socket.java:366)
at java.net.Socket.init(Socket.java:179)
at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

Thanks 



-
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: getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
Yes you are right , there is in the tomcat script , first it is running the 
Shatt down the tomcat , is there any better way to do this ? 
Some kind of checking if the tomcat alive ? 
Thanks 

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 30, 2008 10:29 AM
To: Tomcat Users List
Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
Connection refused error

Looks like you are trying, for whatever reason, to stop tomcat prior to 
starting it. This exception occurs cause there is no tomcat running that 
could answer that stop request.

En l'instant précis du 30/01/08 09:25, Meir Yanovich s'exprimait en ces 
termes:
 Hello all
 Im running with my tomcat 5.5 on SunOS 9 , but when I start tomcat im
 getting this error The tomcat keeps running fine , but I like to know
 how to eliminate this error :
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:179)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

 Thanks 



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

   


-- 
http://www.devlog.be (a belgian developer's logs)



-
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: getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
Well this is problematic abit 
When I do : ps -fu myUserName
Im getting something like this :
/opt/jdk1.5.0_11/jdk/bin/java -Xmn100M -Xms256M -Xmx256M -Djava.util.logging.ma

I have more java process that are running .. can I somhow get the tomcat name 
shown ? to be more unique , so I can grep it? 

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 30, 2008 12:47 PM
To: Tomcat Users List
Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
Connection refused error

under linux, a combinaision of ps, grep and wc could tell you how much 
tomcat processes are active.

En l'instant précis du 30/01/08 09:44, Meir Yanovich s'exprimait en ces 
termes:
 Yes you are right , there is in the tomcat script , first it is running the 
 Shatt down the tomcat , is there any better way to do this ? 
 Some kind of checking if the tomcat alive ? 
 Thanks 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 10:29 AM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 Looks like you are trying, for whatever reason, to stop tomcat prior to 
 starting it. This exception occurs cause there is no tomcat running that 
 could answer that stop request.

 En l'instant précis du 30/01/08 09:25, Meir Yanovich s'exprimait en ces 
 termes:
   
 Hello all
 Im running with my tomcat 5.5 on SunOS 9 , but when I start tomcat im
 getting this error The tomcat keeps running fine , but I like to know
 how to eliminate this error :
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:179)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

 Thanks 



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

   
 


   


-- 
http://www.devlog.be (a belgian developer's logs)



-
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: getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
Hi and thanks for the fast reply but my version of ps  
Don't have the x flag, any other way ?

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 30, 2008 2:22 PM
To: Tomcat Users List
Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
Connection refused error

ps -aex | grep tomcat | grep java

first part limit to tomcat processes, second part strip non java 
processes that are related to tomcat (like the grep tomcat of previous 
line ;)
If you need more explicit selection, include the home directory of 
tomcat in the grep calls. Here we use, as part of our stop/wait 2 
minutes/kill script, the following expression:

**kill -9  `ps -aex | grep tomcat | grep intranet | awk '{print $1}'`**


(tomcat being run inside a folder named intranet)


En l'instant précis du 30/01/08 12:37, Meir Yanovich s'exprimait en ces 
termes:
 Well this is problematic abit 
 When I do : ps -fu myUserName
 Im getting something like this :
 /opt/jdk1.5.0_11/jdk/bin/java -Xmn100M -Xms256M -Xmx256M 
 -Djava.util.logging.ma

 I have more java process that are running .. can I somhow get the tomcat name 
 shown ? to be more unique , so I can grep it? 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 12:47 PM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 under linux, a combinaision of ps, grep and wc could tell you how much 
 tomcat processes are active.

 En l'instant précis du 30/01/08 09:44, Meir Yanovich s'exprimait en ces 
 termes:
   
 Yes you are right , there is in the tomcat script , first it is running the 
 Shatt down the tomcat , is there any better way to do this ? 
 Some kind of checking if the tomcat alive ? 
 Thanks 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 10:29 AM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 Looks like you are trying, for whatever reason, to stop tomcat prior to 
 starting it. This exception occurs cause there is no tomcat running that 
 could answer that stop request.

 En l'instant précis du 30/01/08 09:25, Meir Yanovich s'exprimait en ces 
 termes:
   
 
 Hello all
 Im running with my tomcat 5.5 on SunOS 9 , but when I start tomcat im
 getting this error The tomcat keeps running fine , but I like to know
 how to eliminate this error :
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:179)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

 Thanks 



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

   
 
   
   
 


   


-- 
http://www.devlog.be (a belgian developer's logs)



-
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: getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
Yes I can see it has x in hp 
-x Shows the command line in extended format.
Someone knows what is the equivalent in sunOs?
Thanks 

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 30, 2008 2:41 PM
To: Tomcat Users List
Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
Connection refused error

This is ps from HP-UX/linux, other version might use a different flag :) 
There are tons of flags, as long as you can get detailed command line, 
or working directory or perhaps environment variables, you should have 
enough to limit selection to one process.



En l'instant précis du 30/01/08 13:36, Meir Yanovich s'exprimait en ces 
termes:
 Hi and thanks for the fast reply but my version of ps  
 Don't have the x flag, any other way ?

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 2:22 PM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 ps -aex | grep tomcat | grep java

 first part limit to tomcat processes, second part strip non java 
 processes that are related to tomcat (like the grep tomcat of previous 
 line ;)
 If you need more explicit selection, include the home directory of 
 tomcat in the grep calls. Here we use, as part of our stop/wait 2 
 minutes/kill script, the following expression:

 **kill -9  `ps -aex | grep tomcat | grep intranet | awk '{print $1}'`**


 (tomcat being run inside a folder named intranet)


 En l'instant précis du 30/01/08 12:37, Meir Yanovich s'exprimait en ces 
 termes:
   
 Well this is problematic abit 
 When I do : ps -fu myUserName
 Im getting something like this :
 /opt/jdk1.5.0_11/jdk/bin/java -Xmn100M -Xms256M -Xmx256M 
 -Djava.util.logging.ma

 I have more java process that are running .. can I somhow get the tomcat 
 name shown ? to be more unique , so I can grep it? 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 12:47 PM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 under linux, a combinaision of ps, grep and wc could tell you how much 
 tomcat processes are active.

 En l'instant précis du 30/01/08 09:44, Meir Yanovich s'exprimait en ces 
 termes:
   
 
 Yes you are right , there is in the tomcat script , first it is running the 
 Shatt down the tomcat , is there any better way to do this ? 
 Some kind of checking if the tomcat alive ? 
 Thanks 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 10:29 AM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 Looks like you are trying, for whatever reason, to stop tomcat prior to 
 starting it. This exception occurs cause there is no tomcat running that 
 could answer that stop request.

 En l'instant précis du 30/01/08 09:25, Meir Yanovich s'exprimait en ces 
 termes:
   
 
   
 Hello all
 Im running with my tomcat 5.5 on SunOS 9 , but when I start tomcat im
 getting this error The tomcat keeps running fine , but I like to know
 how to eliminate this error :
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:179)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

 Thanks 



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

   
 
   
 
   
 
   
   
 


   


-- 
http://www.devlog.be (a belgian developer's logs)



-
To start a new topic, e-mail: users@tomcat.apache.org

RE: getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
It prints only 'java' as process name no tomcat or something like that . 

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 30, 2008 2:54 PM
To: Tomcat Users List
Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
Connection refused error


http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWaman/hman1b/ps.1b.html

-e
Displays the environment as well as the arguments to the command.

??


En l'instant précis du 30/01/08 13:50, Meir Yanovich s'exprimait en ces 
termes:
 Yes I can see it has x in hp 
 -x Shows the command line in extended format.
 Someone knows what is the equivalent in sunOs?
 Thanks 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 2:41 PM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 This is ps from HP-UX/linux, other version might use a different flag :) 
 There are tons of flags, as long as you can get detailed command line, 
 or working directory or perhaps environment variables, you should have 
 enough to limit selection to one process.



 En l'instant précis du 30/01/08 13:36, Meir Yanovich s'exprimait en ces 
 termes:
   
 Hi and thanks for the fast reply but my version of ps  
 Don't have the x flag, any other way ?

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 2:22 PM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 ps -aex | grep tomcat | grep java

 first part limit to tomcat processes, second part strip non java 
 processes that are related to tomcat (like the grep tomcat of previous 
 line ;)
 If you need more explicit selection, include the home directory of 
 tomcat in the grep calls. Here we use, as part of our stop/wait 2 
 minutes/kill script, the following expression:

 **kill -9  `ps -aex | grep tomcat | grep intranet | awk '{print $1}'`**


 (tomcat being run inside a folder named intranet)


 En l'instant précis du 30/01/08 12:37, Meir Yanovich s'exprimait en ces 
 termes:
   
 
 Well this is problematic abit 
 When I do : ps -fu myUserName
 Im getting something like this :
 /opt/jdk1.5.0_11/jdk/bin/java -Xmn100M -Xms256M -Xmx256M 
 -Djava.util.logging.ma

 I have more java process that are running .. can I somhow get the tomcat 
 name shown ? to be more unique , so I can grep it? 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 12:47 PM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 under linux, a combinaision of ps, grep and wc could tell you how much 
 tomcat processes are active.

 En l'instant précis du 30/01/08 09:44, Meir Yanovich s'exprimait en ces 
 termes:
   
 
   
 Yes you are right , there is in the tomcat script , first it is running 
 the 
 Shatt down the tomcat , is there any better way to do this ? 
 Some kind of checking if the tomcat alive ? 
 Thanks 

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 30, 2008 10:29 AM
 To: Tomcat Users List
 Subject: Re: getting SEVERE: Catalina.stop: java.net.ConnectException: 
 Connection refused error

 Looks like you are trying, for whatever reason, to stop tomcat prior to 
 starting it. This exception occurs cause there is no tomcat running that 
 could answer that stop request.

 En l'instant précis du 30/01/08 09:25, Meir Yanovich s'exprimait en ces 
 termes:
   
 
   
 
 Hello all
 Im running with my tomcat 5.5 on SunOS 9 , but when I start tomcat im
 getting this error The tomcat keeps running fine , but I like to know
 how to eliminate this error :
 SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.init(Socket.java:366)
 at java.net.Socket.init(Socket.java:179)
 at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585

RE: getting SEVERE: Catalina.stop: java.net.ConnectException: Connection refused error

2008-01-30 Thread Meir Yanovich
Thanks .. working

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Wesley Schwengle
Sent: Wednesday, January 30, 2008 3:03 PM
To: Tomcat Users List
Subject: RE: getting SEVERE: Catalina.stop: java.net.ConnectException:
Connection refused error

On 30.01.08 14:50 Meir Yanovich wrote:

 Yes I can see it has x in hp
 -x Shows the command line in extended format.
 Someone knows what is the equivalent in sunOs?

/usr/ucb/ps -auxww :)

Cheers,
Wesley


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