On 2/27/07, chuanjiang lo <[EMAIL PROTECTED]> wrote:

Hi there,

I have edited the catalina.bat to enable jmx connections to tomcat server.

set JAVA_OPTS=%JAVA_OPTS% -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Dcom.sun.management.jmxremote  - Dcom.sun.management.jmxremote.port=9004
-Dcom.sun.management.jmxremote.authenticate=false -
Dcom.sun.management.jmxremote.ssl=false

After making the necessary settings, when i run the shutdown.bat, an
exception is thrown

Error: Exception thrown by the agent : java.rmi.server.ExportException:
Port alr
eady in use: 9004; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind

Any advice on this issue?


i think i solved the problem.
Looking into catalina.bat again
i guess i only set the parameters to enable rmi connections if it is start
server

set JAVA_OPTS=%JAVA_OPTS% -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

if ""%1"" == ""start"" set JAVA_OPTS=%JAVA_OPTS% -
Dcom.sun.management.jmxremote  -Dcom.sun.management.jmxremote.port=9004  -
Dcom.sun.management.jmxremote.authenticate=false -
Dcom.sun.management.jmxremote.ssl=false

Reply via email to