2 Replies Latest reply on May 27, 2009 10:43 PM by Arbi Sookazian

    Please help on a seam deployment issue

    X Zhou Newbie
      Hi,
      I'm new to Seam.
      I created a standard seam project.
      Instead of having EJBs and JSF packaged in one package. I intend to seperate EJBs to be deployed on seperate server. So i have taken all EJB configuration (persistence.xml etc.) leaving all other files/structures untouched.
      When I deploy this war package (the one without EJBs). I get the following exception, the error message tells very little to me.
      Please help. Thanks a lot!

      21:02:42,650 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@32175414{vfszip:/opt/jboss/server/default/deploy/webui-alone.ear/}
      21:02:42,650 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@32175414{vfszip:/opt/jboss/server/default/deploy/webui-alone.ear/}
      21:02:42,748 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@16bd487
      21:02:42,751 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@16bd487
      21:02:42,764 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@16bd487
      21:02:42,766 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@16bd487
      21:02:43,070 INFO  [JBossASKernel] Created KernelDeployment for: webui-alone.ear
      21:02:43,070 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=TimerServiceDispatcher,service=EJB3
      21:02:43,070 INFO  [JBossASKernel]   with dependencies:
      21:02:43,070 INFO  [JBossASKernel]   and demands:
      21:02:43,070 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
      21:02:43,070 INFO  [JBossASKernel]   and supplies:
      21:02:43,070 INFO  [JBossASKernel]      Class:org.jboss.seam.async.LocalTimerServiceDispatcher
      21:02:43,070 INFO  [JBossASKernel]      jndi:TimerServiceDispatcher/local-org.jboss.seam.async.LocalTimerServiceDispatcher
      21:02:43,070 INFO  [JBossASKernel]      jndi:TimerServiceDispatcher/remote
      21:02:43,070 INFO  [JBossASKernel]      jndi:TimerServiceDispatcher/local
      21:02:43,070 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=TimerServiceDispatcher,service=EJB3) to KernelDeployment of: webui-alone.ear
      21:02:43,071 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=EjbSynchronizations,service=EJB3
      21:02:43,071 INFO  [JBossASKernel]   with dependencies:
      21:02:43,071 INFO  [JBossASKernel]   and demands:
      21:02:43,071 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
      21:02:43,071 INFO  [JBossASKernel]   and supplies:
      21:02:43,071 INFO  [JBossASKernel]      jndi:EjbSynchronizations/local
      21:02:43,071 INFO  [JBossASKernel]      jndi:EjbSynchronizations/remote
      21:02:43,071 INFO  [JBossASKernel]      jndi:EjbSynchronizations/local-org.jboss.seam.transaction.LocalEjbSynchronizations
      21:02:43,071 INFO  [JBossASKernel]      Class:org.jboss.seam.transaction.LocalEjbSynchronizations
      21:02:43,071 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=EjbSynchronizations,service=EJB3) to KernelDeployment of: webui-alone.ear
      21:02:43,122 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=TimerServiceDispatcher,service=EJB3
      21:02:43,123 INFO  [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
      21:02:43,133 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

              TimerServiceDispatcher/local - EJB3.x Default Local Business Interface
              TimerServiceDispatcher/local-org.jboss.seam.async.LocalTimerServiceDispatcher - EJB3.x Local Business Interface

      21:02:43,166 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=EjbSynchronizations,service=EJB3
      21:02:43,167 INFO  [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
      21:02:43,176 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

              EjbSynchronizations/local - EJB3.x Default Local Business Interface
              EjbSynchronizations/local-org.jboss.seam.transaction.LocalEjbSynchronizations - EJB3.x Local Business Interface

      21:02:43,195 INFO  [SessionSpecContainer] Stopping jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=EjbSynchronizations,service=EJB3
      21:02:43,202 INFO  [EJBContainer] STOPPED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
      21:02:43,252 INFO  [SessionSpecContainer] Stopping jboss.j2ee:ear=webui-alone.ear,jar=webui-alone.ear,name=TimerServiceDispatcher,service=EJB3
      21:02:43,260 INFO  [EJBContainer] STOPPED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
      21:02:43,286 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/opt/jboss/server/default/deploy/webui-alone.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Failed to create web module
              at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:447)
              at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:84)
              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:1210)
              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:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:338)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
              at java.lang.String.charAt(String.java:687)
              at org.jboss.util.file.JarUtils.unjar(JarUtils.java:274)
              at org.jboss.virtual.plugins.copy.AbstractCopyMechanism.unjar(AbstractCopyMechanism.java:320)
              at org.jboss.virtual.plugins.copy.UnjarCopyMechanism.doCopy(UnjarCopyMechanism.java:52)
              at org.jboss.virtual.plugins.copy.AbstractCopyMechanism.copy(AbstractCopyMechanism.java:176)
              at org.jboss.virtual.plugins.copy.AbstractCopyMechanism.copy(AbstractCopyMechanism.java:135)
              at org.jboss.virtual.VFSUtils.copy(VFSUtils.java:871)
              at org.jboss.virtual.VFSUtils.unjar(VFSUtils.java:852)
              at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:346)
              ... 29 more
      21:02:43,296 WARN  [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** DEPLOYMENTS IN ERROR: Name -> Error

      vfszip:/opt/jboss/server/default/deploy/webui-alone.ear/ -> org.jboss.deployers.spi.DeploymentException: Failed to create web module


      DEPLOYMENTS IN ERROR:
        Deployment "vfszip:/opt/jboss/server/default/deploy/webui-alone.ear/" is in error due to the following reason(s): java.lang.StringIndexOutOfBoundsException: String index out of range: 0

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:345)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:231)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)