Discussions

EJB programming & troubleshooting: JBoss deployment throws, IllegalStateException

  1. Hi, I'm new to JBoss and EJB 3.0. I'm trying to create Enterprise Application which consists of EJB and Web projects. Once my .ear file is generated it's gives the following error when copied to /usr/local/jboss-5.1.0.GA/server/default/deploy/. The Error seems to be an "java.lang.IllegalStateException" and error is "Expected either '.jar' or '.jar/' at the end of 1.0" I'm worried how to solve this, as I've been trying for almost a week. Please do help me resolve this issue. I've attached the server.log messages. Thanks in advance. Regards, Murali V [root@localhost dist]# cd /usr/local/jboss-5.1.0.GA/server/default/log/ [root@localhost log]# tail -f server.log at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2009-07-21 15:49:26,736 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@16036647{vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/murali-ejb.jar/} 2009-07-21 15:49:26,736 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@16036647{vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/murali-ejb.jar/} 2009-07-21 15:49:26,736 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@16036647{vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/murali-ejb.jar/} 2009-07-21 15:49:26,736 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@16036647{vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/murali-ejb.jar/} 2009-07-21 15:49:26,844 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: grizzly-servlet-webserver-1.7.3.2.jar 2009-07-21 15:49:26,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:ear=murali.ear,jar=grizzly-servlet-webserver-1.7.3.2.jar,name=grizzly-servlet-webserver-1.7.3.2,service=EJB3 2009-07-21 15:49:26,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies: 2009-07-21 15:49:26,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands: 2009-07-21 15:49:26,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies: 2009-07-21 15:49:26,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:ear=murali.ear,jar=grizzly-servlet-webserver-1.7.3.2.jar,name=grizzly-servlet-webserver-1.7.3.2,service=EJB3) to KernelDeployment of: grizzly-servlet-webserver-1.7.3.2.jar 2009-07-21 15:49:26,848 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: javassist-3.6.0.GA.jar 2009-07-21 15:49:26,848 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:ear=murali.ear,jar=javassist-3.6.0.GA.jar,name=javassist-3.6.0.GA,service=EJB3 2009-07-21 15:49:26,848 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies: 2009-07-21 15:49:26,848 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands: 2009-07-21 15:49:26,848 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies: 2009-07-21 15:49:26,849 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:ear=murali.ear,jar=javassist-3.6.0.GA.jar,name=javassist-3.6.0.GA,service=EJB3) to KernelDeployment of: javassist-3.6.0.GA.jar 2009-07-21 15:49:26,850 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: jaxb-xjc.jar 2009-07-21 15:49:26,850 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:ear=murali.ear,jar=jaxb-xjc.jar,name=jaxb-xjc,service=EJB3 2009-07-21 15:49:26,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies: 2009-07-21 15:49:26,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands: 2009-07-21 15:49:26,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies: 2009-07-21 15:49:26,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:ear=murali.ear,jar=jaxb-xjc.jar,name=jaxb-xjc,service=EJB3) to KernelDeployment of: jaxb-xjc.jar 2009-07-21 15:49:26,852 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/ state=PreReal mode=Manual requiredState=Real org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/jaxb-xjc.jar/1.0/ at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177) 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.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:362) at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of 1.0 at org.jboss.ejb3.deployers.Ejb3ClientDeployer.getDeploymentJndiName(Ejb3ClientDeployer.java:214) at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:104) at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:61) at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) 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) ... 26 more 2009-07-21 15:49:26,912 WARN [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (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:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/jaxb-xjc.jar/1.0/ DEPLOYMENTS IN ERROR: Deployment "vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/" is in error due to the following reason(s): java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of 1.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:369) at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255) 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:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
  2. looks like ear structure is wrong. ear structure is usually as follows muraliapp.ear |__META-INF |_MANIFEST.MF |_application.xml |_murali-ejb.jar |_murali-web.war |_APP-INF |_lib |_commons-lang.jar (etc) *** DEPLOYMENTS IN ERROR: Name -> Error vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/usr/local/jboss-5.1.0.GA/server/default/deploy/murali.ear/jaxb-xjc.jar/1.0/ It is complaining about why there is 1.0/ inside ear file. check how it is building the ear file. once the ear is built, check the structure using "jar tvf murali-app.ear" command.
  3. don't know[ Go to top ]

    hope i can help you but i'm new too waiting for the answers