Re: Java programm to Shutdwon the tomcat server

2010-03-01 Thread dBenjamin

I using customize icon to launch my application before starting the tomcat my
java program will check and then it will allow to start the tomcat otherwise
it will change the port and server will get start.

I am validating shutdown port using 
Socket socket = new Socket(127.0.0.1,JVMPort); 
if (socket.isConnected()) { 
port =true;
  socket.close(); 

}
If I check the port it will through the exception:
Mar 1, 2010 9:22:58 AM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command '' received
Mar 1, 2010 9:22:58 AM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command '' received
After that it was not receiving shutdown request 

-- 
View this message in context: 
http://old.nabble.com/Java-programm-to-Shutdwon-the-tomcat-server-tp27714568p27744212.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Java programm to Shutdwon the tomcat server

2010-02-28 Thread dBenjamin

Thanks for helping...
Can you please find my scenario?
1.  I am using windows Environment.
2.  I am using tomcat 6 binary distribution versions here we cannot get pid
from the windows.
3.  For my requirement before starting the tomcat server I need to verify 
the
port availability if any other application using then I have change both
shutdown port and http port.  I facing problem to change the port address, I
am validating shutdown port using socket and http port using java.net
package. When I change the port I am getting invalid request received error
WARNING: StandardServer.await: Invalid command '' received.  Because of this
error I am not able to shutdown the server. So I would like to shutdown the
server using java program. 

command prompt when we type CTRL –C server getting shutdown I would like to
know can we possible to send CTRL-C through java program. 
Runtime.getRuntime().exec(command to shut down tomcat); here we can call
shutdown bat file to stop the server but let me know if any other way I can
stop instead calling bat file through Runtime.getRuntime().exe(“”);
Please help me to shutdown the server through java program? If possible let
me know the procedure?

-- 
View this message in context: 
http://old.nabble.com/Java-programm-to-Shutdwon-the-tomcat-server-tp27714568p27740049.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Java programm to Shutdwon the tomcat server

2010-02-25 Thread dBenjamin

Thanks for helping developers…
Can you please help me I am facing problem to shutdown the tomcat server in
windows platform (xp, vista, windows7). 
if you click CTRL+ C in the tomcat console window, server getting shutdown.
Like that is any specific command to send through java program to shutdown
the tomcat server. 

-- 
View this message in context: 
http://old.nabble.com/Java-programm-to-Shutdwon-the-tomcat-server-tp27714568p27714568.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat shutdown issue

2010-02-22 Thread dBenjamin

Can you please suggest how to scan the port and check the port is used by
other application.
I am using socket programming to check the port this is right? 


awarnier wrote:
 
 As I believe someone already told you, there is no need to repeat every 
 message twice.
 
 dBenjamin wrote:
 Tomcat not getting shutdown.. it shows the WARNING: StandardServer.await:
 Invalid command '' received
 can you pls find server.xml  when I click shutdwon.bat server not
 listning
 it shows WARNING: StandardServer.await: Invalid command '' received
 
 can you please help me to solve this issues..
 
 Also, you were already given the answer before :
 Probably (but we cannot tell that for sure just by your server.xml 
 file), it looks like /something/ is sending a normal HTTP request (*) 
 /to the shutdown port of the server/, instead of the normal HTTP port.
 
 Find which client is sending a HTTP request to his port :
   Server port=3006 shutdown=SHUTDOWN
 
 instead of this port :
  Connector connectionTimeout=3 port=6876 protocol=HTTP/1.1
 redirectPort=8757/
 
 and you will find the reason.
 
 (*) as a matter of fact, as per the logfile, it looks like this client 
 is making a connection to port 3006 and then just sending an empty
 request.
 If you have software doing some kind of port scanning, that may be the 
 culprit.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/RE%3A-WARNING%3A-StandardServer.await%3A-Invalid-command-%27%27-received-tp27652985p27691253.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: WARNING: StandardServer.await: Invalid command '' received

2010-02-19 Thread dBenjamin

Dear All,
I facing new issues with my tomcat it  show invalid command recieved when I
hit my web application, Can you please help me to solve this problem some
times when I call shutdown bat it is not getting shutdown it shows only
invalid command.

WARNING: StandardServer.await: Invalid command '' received
Feb 19, 2010 9:23:00 AM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command '' received

-- 
View this message in context: 
http://old.nabble.com/RE%3A-WARNING%3A-StandardServer.await%3A-Invalid-command-%27%27-received-tp27652985p27652985.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: WARNING: StandardServer.await: Invalid command '' received

2010-02-19 Thread dBenjamin

Thanks for your replay
can you please find server.xml

?xml version=1.0 encoding=UTF-8?
Server port=3006 shutdown=SHUTDOWN

  !--APR library loader. Documentation at /docs/apr.html --
  Listener SSLEngine=on
className=org.apache.catalina.core.AprLifecycleListener/
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener/
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  !-- Global JNDI resources
   Documentation at /docs/jndi-resources-howto.html
  --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users
--
Resource auth=Container description=User database that can be
updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
name=UserDatabase pathname=conf/tomcat-users.xml
type=org.apache.catalina.UserDatabase/
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level.
   Documentation at /docs/config/service.html
   --
  Service name=Catalina
  
  
Connector connectionTimeout=3 port=6876 protocol=HTTP/1.1
redirectPort=8757/





!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host).
 Documentation at /docs/config/engine.html --

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 
-- 
Engine defaultHost=localhost name=Catalina 

  

  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host appBase=webapps autoDeploy=true name=localhost
unpackWARs=true xmlNamespaceAware=false xmlValidation=false  
  


/Host

  
/Engine
  /Service
/Server

-- 
View this message in context: 
http://old.nabble.com/RE%3A-WARNING%3A-StandardServer.await%3A-Invalid-command-%27%27-received-tp27652985p27657977.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: WARNING: StandardServer.await: Invalid command '' received

2010-02-19 Thread dBenjamin

Can you please let me know is any port range for shutdwon port because I am
dynamicaly chaning the port address when the tomcat port used by other
server or application ?
before launching the application from tomcat I am checking tomcat both port
http and shutdown port if any other application using in this case will
change the port address dynamicaly I am using http port the following range
6000 to 6800 and shutdown port range we are giving 3000 to 3300 




-- 
View this message in context: 
http://old.nabble.com/RE%3A-WARNING%3A-StandardServer.await%3A-Invalid-command-%27%27-received-tp27652985p27658084.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Tomcat shutdown issue

2010-02-19 Thread dBenjamin

Tomcat not getting shutdown.. it shows the WARNING: StandardServer.await:
Invalid command '' received
can you pls find server.xml  when I click shutdwon.bat server not listning
it shows WARNING: StandardServer.await: Invalid command '' received

can you please help me to solve this issues..

 
?xml version=1.0 encoding=UTF-8? 
Server port=3006 shutdown=SHUTDOWN 

  !--APR library loader. Documentation at /docs/apr.html -- 
  Listener SSLEngine=on
className=org.apache.catalina.core.AprLifecycleListener/ 
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html -- 
  Listener className=org.apache.catalina.core.JasperListener/ 
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html -- 
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ 
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ 

  !-- Global JNDI resources 
   Documentation at /docs/jndi-resources-howto.html 
  -- 
  GlobalNamingResources 
!-- Editable user database that can also be used by 
 UserDatabaseRealm to authenticate users 
-- 
Resource auth=Container description=User database that can be
updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
name=UserDatabase pathname=conf/tomcat-users.xml
type=org.apache.catalina.UserDatabase/ 
  /GlobalNamingResources 

  !-- A Service is a collection of one or more Connectors that share 
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level. 
   Documentation at /docs/config/service.html 
   -- 
  Service name=Catalina 
  
  
Connector connectionTimeout=3 port=6876 protocol=HTTP/1.1
redirectPort=8757/ 





!-- An Engine represents the entry point (within Catalina) that
processes 
 every request.  The Engine implementation for Tomcat stand alone 
 analyzes the HTTP headers included with the request, and passes
them 
 on to the appropriate Host (virtual host). 
 Documentation at /docs/config/engine.html -- 

!-- You should set jvmRoute to support load-balancing via AJP ie : 
Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 
-- 
Engine defaultHost=localhost name=Catalina 

  

  !-- This Realm uses the UserDatabase configured in the global JNDI 
   resources under the key UserDatabase.  Any edits 
   that are performed against this UserDatabase are immediately 
   available for use by the Realm.  -- 
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/ 

  !-- Define the default virtual host 
   Note: XML Schema validation will not work with Xerces 2.2. 
   -- 
  Host appBase=webapps autoDeploy=true name=localhost
unpackWARs=true xmlNamespaceAware=false xmlValidation=false  
   


/Host 

  
/Engine 
  /Service 
/Server 


-- 
View this message in context: 
http://old.nabble.com/RE%3A-WARNING%3A-StandardServer.await%3A-Invalid-command-%27%27-received-tp27652985p27659380.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Tomcat 6 shutdown issue

2010-02-19 Thread dBenjamin

Tomcat not getting shutdown.. it shows the WARNING: StandardServer.await:
Invalid command '' received 
can you pls find server.xml  when I click shutdwon.bat server not listning
it shows WARNING: StandardServer.await: Invalid command '' received 

can you please help me to solve this issues.. 

  
?xml version=1.0 encoding=UTF-8? 
Server port=3006 shutdown=SHUTDOWN 

  !--APR library loader. Documentation at /docs/apr.html -- 
  Listener SSLEngine=on
className=org.apache.catalina.core.AprLifecycleListener/ 
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html -- 
  Listener className=org.apache.catalina.core.JasperListener/ 
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html -- 
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ 
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ 

  !-- Global JNDI resources 
   Documentation at /docs/jndi-resources-howto.html 
  -- 
  GlobalNamingResources 
!-- Editable user database that can also be used by 
 UserDatabaseRealm to authenticate users 
-- 
Resource auth=Container description=User database that can be
updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
name=UserDatabase pathname=conf/tomcat-users.xml
type=org.apache.catalina.UserDatabase/ 
  /GlobalNamingResources 

  !-- A Service is a collection of one or more Connectors that share 
   a single Container Note:  A Service is not itself a Container, 
   so you may not define subcomponents such as Valves at this level. 
   Documentation at /docs/config/service.html 
   -- 
  Service name=Catalina 
  
  
Connector connectionTimeout=3 port=6876 protocol=HTTP/1.1
redirectPort=8757/ 





!-- An Engine represents the entry point (within Catalina) that
processes 
 every request.  The Engine implementation for Tomcat stand alone 
 analyzes the HTTP headers included with the request, and passes
them 
 on to the appropriate Host (virtual host). 
 Documentation at /docs/config/engine.html -- 

!-- You should set jvmRoute to support load-balancing via AJP ie : 
Engine name=Standalone defaultHost=localhost jvmRoute=jvm1 
-- 
Engine defaultHost=localhost name=Catalina 

  

  !-- This Realm uses the UserDatabase configured in the global JNDI 
   resources under the key UserDatabase.  Any edits 
   that are performed against this UserDatabase are immediately 
   available for use by the Realm.  -- 
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/ 

  !-- Define the default virtual host 
   Note: XML Schema validation will not work with Xerces 2.2. 
   -- 
  Host appBase=webapps autoDeploy=true name=localhost
unpackWARs=true xmlNamespaceAware=false xmlValidation=false  
   


/Host 

  
/Engine 
  /Service 
/Server 



-- 
View this message in context: 
http://old.nabble.com/RE%3A-Tomcat-6-shutdown-issue-tp27659404p27659404.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Tomcat console WARNING: StandardServer.await: Invalid command '' received

2010-02-07 Thread dBenjamin

Dear All,

Thanks for helping tomcat User .
I have problem with my tomcat when I start my tomcat it getting stared
properly with out any error. after some time when give request to my web
application it was show the following error.

Feb 7, 2010 4:16:35 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-5050
Feb 7, 2010 4:16:35 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 409 ms
Feb 7, 2010 4:16:35 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 7, 2010 4:16:35 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
log4j:WARN No appenders could be found for logger
(com.opensymphony.xwork2.confi
g.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
Feb 7, 2010 4:16:38 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-5050
Feb 7, 2010 4:16:38 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2623 ms
Feb 7, 2010 4:16:50 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command 'GET /app2010 HTTP/1.1'
received
Feb 7, 2010 4:16:50 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command 'GET /app2010 HTTP/1.1'
received
Feb 7, 2010 4:16:51 PM org.apache.catalina.core.StandardServer await
WARNING: StandardServer.await: Invalid command '' received


once i recived this error message after that I can not able to shutdown
tomcat Server 
I am using tomcat 6(Binary distrubtion version) and Java 1.5
Can you please help me to sole this problem..




-- 
View this message in context: 
http://old.nabble.com/Tomcat-console-WARNING%3A-StandardServer.await%3A-Invalid-command-%27%27-received-tp27492770p27492770.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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