Link to home
Start Free TrialLog in
Avatar of rbtt
rbttFlag for Trinidad and Tobago

asked on

Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8050; nested exception is:

Hi,
    Whenever I try to stop TOMCAT using the command : ./catalina.sh stop. I am getting the following error:

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

How do I resolve this problem?
ASKER CERTIFIED SOLUTION
Avatar of ilovemykeyki
ilovemykeyki
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cspatter
cspatter

Jboss 4.0.4.GA/REHL4

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


I have added this section in the run.conf which works for me:

if [ $1 != "-s" ]; then JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$myport -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djboss.platform.mbeanserver" ; fi