Red Hat Customer Portal

Skip to main content

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

Solution Verified - Updated -


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: Can not find a free port for use. -> not find a free port for use.
            at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(
            at org.rhq.plugins.jbossas5.deploy.AbstractDeployer.deploy(
            at org.jbosson.plugins.jbossesb.ESB5Component.createResource(
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(
            at java.lang.reflect.Method.invoke(
            at org.rhq.core.pc.inventory.ResourceContainer$
            at java.util.concurrent.FutureTask$Sync.innerRun(
            at java.util.concurrent.ThreadPoolExecutor.runWorker(
            at java.util.concurrent.ThreadPoolExecutor$


JBoss Enterprise Application Platform (EAP) 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In