jboss-seam-registration.ear没有成功,求助
我使用的是jboss-5.0.0.Beta4.
jboss-seam-2.0.2.SP1
使用ant 布署了registration示例,在jboss的deploy目录下生成了jboss-seam-registration.ear.
当启动jboss时出现了异常.
java.lang.IllegalStateException: Container jboss.j2ee:ear=jboss-seam-registratio
n.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3,VMID=de531bb82
4d6d431:53bf2464:11a7077da19:-7ffa + is not registered
at org.jboss.ejb3.Ejb3Registry.unregister(Ejb3Registry.java:147)
at org.jboss.ejb3.Ejb3Deployment.undeploy(Ejb3Deployment.java:664)
at org.jboss.ejb3.Ejb3Deployment.destroy(Ejb3Deployment.java:653)
at org.jboss.ejb3.deployers.Ejb3Deployer.undeploy(Ejb3Deployer.java:265)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internal
Undeploy(AbstractVFSRealDeployer.java:54)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeplo
y(AbstractRealDeployer.java:112)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(Deploy
erWrapper.java:187)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParent
Last(DeployersImpl.java:1072)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParent
Last(DeployersImpl.java:1052)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
Impl.java:810)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:327)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:1309)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:734)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:862)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:784)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:622)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:411)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
Impl.java:498)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
rImpl.java:506)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr
ofile(ProfileServiceBootstrap.java:246)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
ProfileServiceBootstrap.java:131)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
408)
at org.jboss.Main.boot(Main.java:208)
at org.jboss.Main$1.run(Main.java:534)
at java.lang.Thread.run(Thread.java:595)
11:15:34,171 ERROR [AbstractKernelController] Error installing to Real: name=vfs
file:/D:/jboss-5.0.0.Beta4/jboss-5.0.0.Beta4/server/default/deploy/jboss-seam-re
gistration.ear state=PostClassLoader mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/D:/jb
oss-5.0.0.Beta4/jboss-5.0.0.Beta4/server/default/deploy/jboss-seam-registration.
ear/jboss-seam.jar
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
ion(DeploymentException.java:49)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
Wrapper.java:175)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:853)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
rst(DeployersImpl.java:906)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
Impl.java:794)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:327)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:1309)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:734)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:862)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:784)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:622)
at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
ller.java:411)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
Impl.java:498)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
rImpl.java:506)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr
ofile(ProfileServiceBootstrap.java:246)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
ProfileServiceBootstrap.java:131)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
408)
at org.jboss.Main.boot(Main.java:208)
at org.jboss.Main$1.run(Main.java:534)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: mapped-name i
s required for timerService of deployment TimerServiceDispatcher
at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.j
ava:57)
at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.j
ava:37)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i
nternalDeploy(AbstractSimpleRealDeployer.java:65)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
Wrapper.java:169)
... 18 more
Caused by: java.lang.RuntimeException: mapped-name is required for timerService
of deployment TimerServiceDispatcher
at org.jboss.injection.ResourceHandler.loadXmlResourceEnvRefs(ResourceHa
ndler.java:228)
at org.jboss.injection.ResourceHandler.loadXml(ResourceHandler.java:268)
at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:457)
at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deploym
ent.java:343)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:407)
at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.j
ava:53)
... 22 more
11:15:34,390 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
我第一次用jboss,求助,先谢了!
[解决办法]
你好,boss-5.0.0.Beta4和seam集成有问题,beta版测试不充分。你可以用低版本的试一下。或等5.0 GA版出来。
http://www.seamframework.org/Community/SeamExamplesOnJBoss5beta4