Discussion:
WARNING: StandardServer.await: Invalid command '' received
dBenjamin
2010-02-19 14:26:16 UTC
Permalink
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.
Caldarale, Charles R
2010-02-19 14:29:48 UTC
Permalink
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.
dBenjamin
2010-02-19 18:00:38 UTC
Permalink
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.
dBenjamin
2010-02-19 18:08:45 UTC
Permalink
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.
dBenjamin
2010-02-19 19:48:37 UTC
Permalink
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.
André Warnier
2010-02-20 11:44:16 UTC
Permalink
As I believe someone already told you, there is no need to repeat every
message twice.
Post by dBenjamin
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.
dBenjamin
2010-02-22 17:44:43 UTC
Permalink
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?
Post by André Warnier
As I believe someone already told you, there is no need to repeat every
message twice.
Post by dBenjamin
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..
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.
<Server port="3006" shutdown="SHUTDOWN">
<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.
---------------------------------------------------------------------
--
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.
Loading...