Failed to shutdown JBoss EAP 5 as a Windows service after modifying JAVA_OPTS

Solution Verified - Updated -

Issue

  • JBoss EAP 5 is running as a Windows service. After setting the following system properties in run.conf.bat:

    JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=3001 -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
    

    we are getting an exception when shutting down JBoss EAP:

    javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.system.server.jmx.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org.jboss.system.server.jmx.MBeanServerBuilderImpl
    
  • We are getting following exception when shutting down.

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

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.2
  • Windows

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content