Problems with Tomcat and JMX at restart and stop [message #192413] |
Fri, 11 May 2007 20:56  |
Eclipse User |
|
|
|
Hello,
I have a problem with the embedded tomcat and jmx. I have extend the
launcher configuration. Adding the following to the VM-Arguments at the
Arguments page:
Code:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=7730
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.manageme
nt.jmxremote.authenticate=false
This work fine at startup. Tomcat now can be managed by a JMX-Console. But
if I am restarting or stopping tomcat this error message occurs:
Code:
Fehler: Agent-Ausnahmefehler : java.rmi.server.ExportException: Port
already in use: 7730; nested ex
ception is:
java.net.BindException: Address already in use: JVM_Bind
It seems that the same configuration is used for starting and stopping. Is
there a workaround?
Thorsten
|
|
|
Re: Problems with Tomcat and JMX at restart and stop [message #192419 is a reply to message #192413] |
Sat, 12 May 2007 01:01  |
Eclipse User |
|
|
|
Feel free to add yourself to the CC list for Bug 153680 [1], which
addresses this. The current status is that these system properties are
filtered from the launch configuration when stopping the Tomcat server
in WTP 2.0. Unfortunately, there is no workaround in WTP 1.5.x, other
than to create your own "Stop Tomcat" launch configuration and use that
instead of the normal stop or restart support.
Cheers,
Larry
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=153680
Thorsten Kamann wrote:
> Hello,
>
> I have a problem with the embedded tomcat and jmx. I have extend the
> launcher configuration. Adding the following to the VM-Arguments at the
> Arguments page:
>
> Code:
>
> -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7730
> -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.manageme
> nt.jmxremote.authenticate=false
>
>
>
> This work fine at startup. Tomcat now can be managed by a JMX-Console.
> But if I am restarting or stopping tomcat this error message occurs:
> Code:
>
> Fehler: Agent-Ausnahmefehler : java.rmi.server.ExportException: Port
> already in use: 7730; nested ex
> ception is: java.net.BindException: Address already in use: JVM_Bind
>
>
>
> It seems that the same configuration is used for starting and stopping.
> Is there a workaround?
>
> Thorsten
>
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds