You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by dBenjamin <db...@mail.com> on 2010/02/19 15:26:16 UTC

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

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


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

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: dBenjamin [mailto:dbj@mail.com]
> Subject: RE: WARNING: StandardServer.await: Invalid command '' received
> 
> I facing new issues with my tomcat it  show invalid command recieved
> when I hit my web application

Looks like you're trying to send messages to the shutdown port, not the HTTP port.  Post your server.xml so we can look at it.

 - Chuck


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


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


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

Posted by dBenjamin <db...@mail.com>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat shutdown issue

Posted by André Warnier <aw...@ice-sa.com>.
dBenjamin wrote:
> Can you please suggest how to scan the port and check the port is used by
> other application.

On what kind of system are you ?

Anyway, shut down Tomcat, then use the "netstat" command.
Depending on the system on which you are, there are options to this 
command. Choose one that will show you either the process-id, or the 
name of the program which owns the sockets.
Look for ports (on the "local" side) which have "LISTEN" around the end 
of the line.
That should tell you the programs, apart from Tomcat, which are 
listening on various ports.
Then turn on Tomcat, and enter the same command again.
The differences between the first and second result should tell you 
which port Tomcat is listening on.

> I am using socket programming to check the port this is right? 
> 
I do not understand this question. Explain what you are trying to do.


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


Re: Tomcat shutdown issue

Posted by dBenjamin <db...@mail.com>.
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="30000" 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat shutdown issue

Posted by André Warnier <aw...@ice-sa.com>.
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="30000" 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat shutdown issue

Posted by dBenjamin <db...@mail.com>.
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="30000" 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


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

Posted by dBenjamin <db...@mail.com>.
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="30000" 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org