Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problems with Tomcat and JMX at restart and stop
Problems with Tomcat and JMX at restart and stop [message #192413] Fri, 11 May 2007 20:56 Go to next message
Thorsten Kamann is currently offline Thorsten KamannFriend
Messages: 7
Registered: July 2009
Junior Member
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 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
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
>
Previous Topic:How to specify Security tokens for Web Services invoke
Next Topic:Bug/UI Issue in WTP2 (and 1.5)
Goto Forum:
  


Current Time: Mon Nov 24 08:21:41 GMT 2014

Powered by FUDForum. Page generated in 0.06178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software