I recently have set my Tomcat config to use these additional properties (MyEclipse/Application Servers/Tomcat 5/JDK):
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
I’m using Eclipse 3.1 with MyEclipse 4.0.0 GA, Tomcat 5.5.9 and JDK 1.5.0_04 on Windows XP SP2.
It start Tomcat correctly in Eclipse and I can connect it via JConsole or MC4J.
But, when I stop it this appear:
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8999; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
And Tomcat don’t stop.
To stop it I have to modify config an drop the parameters reported above, before to invoke stop again.
I think it happens because when I stop Tomcat, MyEclipse invoke JVM using those parameters, so port 8999 result already in use.
Is there a way to avoid this?
It’s so tedious…
Thanks a lot
Giovanni Grimoldi