Hi, I am deploying struts 2 application on JBOSS 5.0.1, war has been successfully deploying, but throwing below exception when I am starting JBOSS.

10:21:11,991 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/E:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=WebService

Console log is below for your reference:

10:21:01,757 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
10:21:01,757 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
10:21:01,757 INFO  [ServerImpl] Bootstrap URL: null
10:21:01,757 INFO  [ServerImpl] Home Dir: E:\jboss-5.0.1.GA
10:21:01,757 INFO  [ServerImpl] Home URL: file:/E:/jboss-5.0.1.GA/
10:21:01,757 INFO  [ServerImpl] Library URL: file:/E:/jboss-5.0.1.GA/lib/
10:21:01,757 INFO  [ServerImpl] Patch URL: null
10:21:01,757 INFO  [ServerImpl] Common Base URL: file:/E:/jboss-5.0.1.GA/common/
10:21:01,757 INFO  [ServerImpl] Common Library URL: file:/E:/jboss-5.0.1.GA/common/lib/
10:21:01,757 INFO  [ServerImpl] Server Name: default
10:21:01,757 INFO  [ServerImpl] Server Base Dir: E:\jboss-5.0.1.GA\server
10:21:01,757 INFO  [ServerImpl] Server Base URL: file:/E:/jboss-5.0.1.GA/server/
10:21:01,757 INFO  [ServerImpl] Server Config URL: file:/E:/jboss-5.0.1.GA/server/default/conf/
10:21:01,757 INFO  [ServerImpl] Server Home Dir: E:\jboss-5.0.1.GA\server\default
10:21:01,757 INFO  [ServerImpl] Server Home URL: file:/E:/jboss-5.0.1.GA/server/default/
10:21:01,757 INFO  [ServerImpl] Server Data Dir: E:\jboss-5.0.1.GA\server\default\data
10:21:01,757 INFO  [ServerImpl] Server Library URL: file:/E:/jboss-5.0.1.GA/server/default/lib/
10:21:01,757 INFO  [ServerImpl] Server Log Dir: E:\jboss-5.0.1.GA\server\default\log
10:21:01,757 INFO  [ServerImpl] Server Native Dir: E:\jboss-5.0.1.GA\server\default\tmp\native
10:21:01,757 INFO  [ServerImpl] Server Temp Dir: E:\jboss-5.0.1.GA\server\default\tmp
10:21:01,757 INFO  [ServerImpl] Server Temp Deploy Dir: E:\jboss-5.0.1.GA\server\default\tmp\deploy
10:21:03,476 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/E:/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
10:21:04,585 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
10:21:04,585 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
10:21:05,257 INFO  [CopyMechanism] VFS temp dir: E:\jboss-5.0.1.GA\server\default\tmp
10:21:05,257 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:21:06,960 INFO  [ServerInfo] Java version: 1.6.0_10-rc2,Sun Microsystems Inc.
10:21:06,960 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_10-rc2-b32)
10:21:06,960 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.0-b15,Sun Microsystems Inc.
10:21:06,960 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
10:21:07,085 INFO  [JMXKernel] Legacy JMX core initialized
10:21:09,148 INFO  [ProfileServiceImpl] Loading profile: default from: [email]org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@1c4b997(root=E:\jboss-5.0.1.GA[/email]\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
10:21:09,148 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@1c4b997(root=E:\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
10:21:09,148 INFO  [ProfileServiceImpl] Loaded profile: [email]ProfileImpl@22098b{key=org.jboss.profileservice.spi.Profil[/email]eKey@143b82c3[domain=default,server=default,name=default]}
10:21:11,944 INFO  [WebService] Using RMI server codebase: [url]
10:21:11,991 ERROR [AbstractKernelController] Error installing to Start: name=jboss:service=WebService state=Create mode=Manual requiredState=Installed
java.lang.Exception: Port 8083 already in use.
    at org.jboss.web.WebServer.start(WebServer.java:233)
    at org.jboss.web.WebService.startService(WebService.java:322)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
    at $Proxy36.start(Unknown Source)
    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
    at org.jboss.system.ServiceController.start(ServiceController.java:460)
    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
    at org.jboss.Main.boot(Main.java:209)
    at org.jboss.Main$1.run(Main.java:547)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.jboss.web.WebServer.start(WebServer.java:226)
    ... 54 more
10:21:11,991 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/E:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=WebService
    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
    at org.jboss.Main.boot(Main.java:209)
    at org.jboss.Main$1.run(Main.java:547)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Exception: Port 8083 already in use.
    at org.jboss.web.WebServer.start(WebServer.java:233)
    at org.jboss.web.WebService.startService(WebService.java:322)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
    at $Proxy36.start(Unknown Source)
    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
    at org.jboss.system.ServiceController.start(ServiceController.java:460)
    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
    ... 23 more
Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.jboss.web.WebServer.start(WebServer.java:226)
    ... 54 more
10:21:12,023 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment "vfsfile:/E:/jboss-5.0.1.GA/server/default/conf/jboss-service.xml" is in error due to the following reason(s): java.net.BindException: Cannot assign requested address: JVM_Bind

10:21:12,023 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 10s:235ms

Dani AI

Generated

From your log, JBoss AS 5.0.1 is failing while starting the legacy WebService MBean (jboss:service=WebService). That service listens on TCP 8083 for remote class loading, separate from the normal HTTP port, so a bind failure here will halt startup even if other apps on 8080 run fine. Two common culprits match your symptoms: a) another process is already bound to 8083, or b) the service is trying to bind to an IP that is not present on the host (note the external address in your codebase URL). First, verify the bind address; if it is not the machine’s NIC, start JBoss with an explicit address, e.g. -b 0.0.0.0 or your LAN IP. This sets jboss.bind.address for all services. Red Hat docs explain -b and binding behavior.

On Windows, positively confirm whether anything is using 8083 before changing configs:

netstat -aon | findstr :8083
tasklist /fi "pid eq <PID_FROM_NETSTAT>"

These commands identify the owning process by PID. See Microsoft references for netstat and tasklist. netstat, tasklist.

If you must move the port, prefer ServiceBindingManager over hardcoding in jboss-service.xml. Either choose an alternate binding set at startup (shifts ports by an offset): -Djboss.service.binding.set=ports-01, or adjust the WebService entry in conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml (it is defined there at 8083 as the remote classloading socket). This keeps bindings consistent across services. JBoss AS 5 binding guide.

Recommended Answers

All 4 Replies

java.lang.Exception: Port 8083 already in use.

Seems to be that maybe there is another instance running on the server.

I have double checked this thing, no other instance of jboss is running. I have also deployed another application, and it is running fine.

Go to the folder $JBOSS_HOME/server/default/conf/ and open jboss-service.xml into an editor. Where it says "org.jboss.web.WebService" go to the attribute Port. Delete the line "<value-factory bean="ServiceBindingManager" method="getIntBinding" parameter="jboss:service=WebService"/>" and put instead 8085, leaving in this way the line as:

<mbean code="org.jboss.web.WebService"

. . .

<attribute name="Port">
         <!-- Get the port to use from ServiceBindingManager. -->
         8085
</attribute>

. . .

</mbean>

Try to restart the application server. If the error appears again, you can leave the line as was before.

Hi, If u r getting this issue then may be a possibility to problem from your .xml file. Just make sure no - or other spacial character av placed before ur *-ds.xml

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.