5 Replies Latest reply on Apr 15, 2013 2:49 PM by evapizana

    Error deploying applications in slave nodes

    evapizana Newbie

      Hi,

      So here I explain teh issue I'm having.

       

      I am running JBoss AS7 in domain mode. Using one computer (lets say 1.1.1.1) as the domain master. Then I install a slave node (lets say 2.2.2.2).

       

      So I will list the steps I follow in order to see the error:

      1. Upload a Maven-GWT basic web application using JBoss admin console.
      2. Select the server group where I can to deploy it. For me to see the application deployed on the selected server group, first I need to reboot the master and the slave nodes. WHY????
      3. After I restart both nodes, I can tell that the application is now listed as a deployment in the selected server group and I'm able to launch it from http://1.1.1.1:8080/basic-gwt, but when I try to see the application from the slave node (http://2.2.2.2:8080/basic-gwt, I got the 404 error.  I went to the log and I found this error: (even thoug I get this error, JBoss starts, with errors but it starts:

       

       

       

      11:48:25,171 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."basic-gwt.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."basic-gwt.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "basic-gwt.war"
       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
       at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
       at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content
       at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
       ... 5 more
      Caused by: java.util.zip.ZipException: error in opening zip file
       at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_11]
       at java.util.zip.ZipFile.<init>(ZipFile.java:214) [rt.jar:1.7.0_11]
       at java.util.zip.ZipFile.<init>(ZipFile.java:144) [rt.jar:1.7.0_11]
       at java.util.zip.ZipFile.<init>(ZipFile.java:158) [rt.jar:1.7.0_11]
       at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:845) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
       at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:536) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
       at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:567) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
       at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:97) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:87) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
       ... 6 more
      
      

       

      That's the current error I'm getting but I've also seen this one on the slave node when trying to start JBoss on it:

      Whenever I get this one, JBoss on my slave node is never starting, not even with errors:

       

       

      [Server:server-one] 12:55:40,782 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([("deployment" => "layoutserver-jsf-jee.war")]): java.lang.RuntimeException: JBAS015835: Failed to get file from remote reposito 
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient$RemoteFileRepositoryExecutorImpl.getFile(HostControllerServerClient.java:316) 
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.RemoteFileRepository.getFile(RemoteFileRepository.java:102) [Server:server-one]     at org.jboss.as.server.mgmt.domain.RemoteFileRepository.getDeploymentFiles(RemoteFileRepository.java:73) 
      [Server:server-one]     at org.jboss.as.server.deployment.DeploymentAddHandler$DomainServerDeploymentAddHandler.addFromHash(DeploymentAddHandler.java:224) 
      [Server:server-one]     at org.jboss.as.server.deployment.DeploymentAddHandler.execute(DeploymentAddHandler.java:145) [Server:server-one]     at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] [Server:server-one]     at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.controller.ParallelBootOperationStepHandler.execute(ParallelBootOperationStepHandler.java:161) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] [Server:server-one]     at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] [Server:server-one]     at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:168) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:190) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.server.ServerService.boot(ServerService.java:291) [Server:server-one]     at org.jboss.as.server.ServerService.boot(ServerService.java:266) 
      [Server:server-one]     at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11] 
      [Server:server-one] Caused by: java.util.concurrent.ExecutionException: Operation failed
      [Server:server-one]     at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74) [jboss-threads-2.0.0.GA.jar:2.0.0.GA] 
      [Server:server-one]     at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268) [jboss-threads-2.0.0.GA.jar:2.0.0.GA] 
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient$RemoteFileRepositoryExecutorImpl.getFile(HostControllerServerClient.java:314) 
      [Server:server-one]     ... 17 more 
      [Server:server-one] Caused by: java.io.IOException: JBAS012151: Invalid byte token.  Expecting '50' received '70' 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.ProtocolUtils.expectHeader(ProtocolUtils.java:89) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.ProtocolUtils.expectHeader(ProtocolUtils.java:84) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.repository.RemoteFileRequestAndHandler.handleResponse(RemoteFileRequestAndHandler.java:114) 
      [Server:server-one]     at org.jboss.as.server.mgmt.domain.HostControllerServerClient$GetFileRequest.handleRequest(HostControllerServerClient.java:301) 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:245) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleRequest(AbstractMessageHandler.java:210) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:113) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.ManagementChannelReceiver$1.handleMessage(ManagementChannelReceiver.java:57) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleMessage(ManagementChannelReceiver.java:79) [jboss-as-protocol-7.1.1.Final.jar:7.1.1.Final] 
      [Server:server-one]     at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:437) [jboss-remoting-3.2.3.GA.jar:3.2.3.GA] 
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11] 
      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11] 
      [Server:server-one]     ... 1 more 
      [Server:server-one] 
      [Server:server-one] 12:55:40,896 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      
      

       

       

      Please... can anyone point me to the right direction??? I've been trying to find out why I get these ones for like 2 weeks now!

       

      I really appreciate your help!

       

      Thanks,

      Eva