"IOException: Can not find a free port for use" error when deploying from JBoss 5 admin console

Solution Verified - Updated -

Issue

There is a difficulty to deploy application by admin console. Following exception was found in server.log.

    ERROR [LocalDeployer] Error deploying application for request [CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Deployment, plugin=JBossESB5]], ResourceKey=[null]].
    java.lang.Exception: Failed to distribute 'file:/home/jlivings/product-distributions/jboss-as/server/default/tmp/embjopr/uploads/Ng-EsbServices-0.0.1.esb' to 'Ng-EsbServices-0.0.1.esb' - cause: java.lang.RuntimeException:java.io.IOException: Can not find a free port for use. -> java.io.IOException:Can not find a free port for use.
            at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(DeploymentUtils.java:106)
            at org.rhq.plugins.jbossas5.deploy.AbstractDeployer.deploy(AbstractDeployer.java:119)
            at org.jbosson.plugins.jbossesb.ESB5Component.createResource(ESB5Component.java:228)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:616)
            at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
            at java.lang.Thread.run(Thread.java:679)

Environment

JBoss Enterprise Application Platform (EAP) 5

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