1 Reply Latest reply on Sep 18, 2012 8:15 AM by Wolf-Dieter Fink

    Jar Deployement on JBoss AS 7.1.1 - Issues

    Suril Sarvaiya Newbie

      Hello All,

       

      I have a jar : cbz.jar that I need to deploy on server.

      I have 4 other dependent jars.

      My manifest.mf file looks like this :

       

       

      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.6.5
      Created-By: 1.6.0-b105 (Sun Microsystems Inc.)
      Dependencies: deployement.log4j.jar,deployement.commons-logging.jar,deployement.rmr.jar,deployement.pqr.jar

       

       

       

      All these 5 jars I have placed in JBoss_Home/Standalone/Deployement folder

       

      Once I run Standalone.bat , I get this error :

       

       

      13:07:08,302 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "pqr.jar"
      13:07:08,302 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA015876: Starting deployment of "rmr.jar"
      13:07:08,302 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "cbz.jar"
      13:07:08,302 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "commons-logging.jar"
      13:07:08,302 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "log4j.jar"
      13:07:08,474 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."commons-logging.jar".STRUCTURE
      : org.jboss.msc.service.StartException in service jboss.deployment.unit."commons-logging.jar".STRUCTURE: Failed to process phase STRUCTURE of deployment "common
      s-logging.jar"
              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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: java.lang.IllegalArgumentException: Given parent is not an ancestor of this virtual file
              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:116)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)

              at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:110)

              at org.jboss.as.server.deployment.module.ManifestClassPathProcessor.crea
      teAdditionalModule(ManifestClassPathProcessor.java:193) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.server.deployment.module.ManifestClassPathProcessor.handlingExistingClassPathEntry(ManifestClassPathProcessor.java:185) [jboss-as-server
      -7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.as.server.deployment.module.ManifestClassPathProcessor.deploy(ManifestClassPathProcessor.java:160) [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

      13:07:08,661 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.module.service."deployment.cbz.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.cbz.jar".main: Failed to load module: deployment.cbz.jar:main
              at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
      Caused by: org.jboss.modules.ModuleNotFoundException: Module deployement.log4j.jar:main is not found in local module loader @8b819f (roots: C:\Users\surils\Desk
      top\jboss-as-7.1.1.Final\modules)
              at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
              at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)

              at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)
              at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
              at org.jboss.modules.Module.addPaths(Module.java:841)
              at org.jboss.modules.Module.link(Module.java:1181)
              at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207)
              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208)
              at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
              ... 5 more

      13:07:09,082 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
      13:07:09,082 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS7.1.1.Final "Brontes" started (with errors) in 3665ms - Started 202 of 287 services (2 services failed or missing dependencies, 82 services are passive or on-demand)
      13:07:09,301 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "log4j.jar" was rolled back with no failure message
      13:07:09,301 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "commons-logging.jar" was rolled back with no failuremessage
      13:07:09,316 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment log4j.jar in 23ms
      13:07:09,332 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "rmr.jar" was rolled back with no failure message
      13:07:09,348 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment rmr.jar in 7ms
      13:07:09,363 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "pqr.jar" was rolled back with no failure message
      13:07:09,363 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "cbz.jar" was rolled back with failure message {"JBAS0
      14671: Failed services" => {"jboss.module.service.\"deployment.bac.jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.cbz.jar\".main: Failed to load module: deployment.cbz.jar:main"}}
      13:07:09,301 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment commons-logging.jar in 1ms
      13:07:09,379 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment cbz.jar in 3ms
      13:07:09,363 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment pqr.jar in 5ms
      13:07:09,410 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."commons-logging.jar".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."commons-logging.jar".STRUCTURE: Failed to process phase
      STRUCTURE of deployment "commons-logging.jar"
            service jboss.module.service."deployment.cbz.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.cbz.jar".main: Failed to load module: deployment.cbz.jar:main

      13:07:09,426 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps
      that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.module.service.\"deployment.cbz.jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.cbz.jar\".main: Failed to load module: deployment.cbz.jar:main"}}}}
      13:07:09,457 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
      13:07:09,472 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
      13:07:09,488 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
      13:07:09,488 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

       

       

       

      What can be the issue?

      I am stuck here.

      Kindly help.

      Thanks

       

      Suril