https://issues.apache.org/bugzilla/show_bug.cgi?id=47437
Summary: better exception message for shutdown
Product: Tomcat 6
Version: 6.0.20
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
There are many Tomcat users that disable the shutdown port by setting it to
'-1'.
When I do so, I am not allowed to run shutdown.bat|sh anymore because there is
no port anymore for shutodown.
In that case, I've got an exception message which is difficult to understand.
It would be nice to provide a message such as "you might have disabled the
shutdown port. In that case you should kill the tomcat process or close the
Tomcat shell/dos window."
Here is the exception I had:
E:\tomcat\bin>if not "" == "" goto doSecurity
E:\tomcat\bin>"D:\Java\JDK1.6\bin\java" -server -Xmx2
56m -Xms128m -Xss128k -Djava.endorsed.dirs="E:\tomcat\ho
me\endorsed" -classpath
"D:\Java\JDK1.6\lib\tools.jar;E:\tomcat\home\bin\bootstrap.jar"
-Dcatalina.base="E:\tomcat\b
ase1" -Dcatalina.home="E:\tomcat" -Djava.io.tmpdir="E
:\tomcat\base1\temp" org.apache.catalina.startup.Bootstrap
stop
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Caused by: java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
at java.net.Socket.<init>(Socket.java:180)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:421)
... 6 more
E:\tomcat\bin>goto end
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]