jboss 6 中 EJB 2.1 的部署错误
我们正在尝试从 jboss 4.2 迁移到 jboos 6.0。 我已经在jboss 6中部署了一个ear文件,它是在netbeans 5.0中构建的,我在neatebeans中使用EJB 2.1版本。当我部署文件时,它显示以下异常, 请帮我解决这个问题。
部署错误: 部署“vfs:///C:/Documents%20and%20Settings/muruganantham/My%20Documents/ Downloads/jboss-6.0.0.Final/server/default/deploy/agencyconfiguration.ear”位于 由于以下原因导致错误:org.xml.sax.SAXException:cvc-complex-typ e.2.4.b:元素“web”的内容不完整。 '{"http://java.sun 之一 .com/xml/ns/j2ee":context-root}' 是预期的。@ vfs:///C:/Documents%20and%20Sett ings/muruganantham/My%20Documents/Downloads/jboss-6.0.0.Final/server/default/dep loy/agencyconfiguration.ear/META-INF/application.xml[10,11]
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
loyersImpl.java:1370) [:2.2.0.GA] 在 org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep loyersImpl.java:1316) [:2.2.0.GA] 在 org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD eployerImpl.java:968) [:2.2.0.GA] 在 org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c heckComplete(MainDeployerPlugin.java:82) [:6.0.0.Final] 在 org.jboss.profileservice.dependency.ProfileControllerContext$Delegate Deployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2] 在 org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction。 部署(HDScanner.java:246)[:0.2.2] 在 org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction。 完成(HDScanner.java:192)[:0.2.2] 在 org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(两个 PCActionWrapper.java:57) [:0.2.2] 在 org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2] 在 org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2] 在 org.jboss.profileservice.management.ModificationSession.prepare(修改 icationSession.java:87) [:0.2.2] 在 org.jboss.profileservice.management.AbstractActionController.internal 执行(AbstractActionController.java:234)[:0.2.2] 在 org.jboss.profileservice.management.AbstractActionController.performW 仪式(AbstractActionController.java:213)[:0.2.2] 在 org.jboss.profileservice.management.AbstractActionController.perform( AbstractActionController.java:150) [:0.2.2] 在 org.jboss.profileservice.management.AbstractActionController.perform( AbstractActionController.java:135) [:0.2.2] 在 org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne r.java:146) [:0.2.2] 在 org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner .java:90) [:0.2.2] 在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44 1)[:1.6.0_21] 在 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java :317) [:1.6.0_21] 在 java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1。 6.0_21] 在 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask 处。 访问 $101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_21] 在 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask 处。 runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_21] 在 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask 处。 运行(ScheduledThreadPoolExecutor.java:205)[:1.6.0_21] 在 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) [:1.6.0_21] 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) [:1.6.0_21] 在 java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
We are trying migrate from jboss 4.2 to jboos 6.0.
I have deployed an ear file in jboss 6, which is build in netbeans 5.0, i'm using EJB 2.1 version in neatbeans. when i deploy the file, its showing the following exception,
kindly help me to sort out this problem.
DEPLOYMENTS IN ERROR:
Deployment "vfs:///C:/Documents%20and%20Settings/muruganantham/My%20Documents/
Downloads/jboss-6.0.0.Final/server/default/deploy/agencyconfiguration.ear" is in
error due to the following reason(s): org.xml.sax.SAXException: cvc-complex-typ
e.2.4.b: The content of element 'web' is not complete. One of '{"http://java.sun
.com/xml/ns/j2ee":context-root}' is expected. @ vfs:///C:/Documents%20and%20Sett
ings/muruganantham/My%20Documents/Downloads/jboss-6.0.0.Final/server/default/dep
loy/agencyconfiguration.ear/META-INF/application.xml[10,11]
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
loyersImpl.java:1370) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
loyersImpl.java:1316) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
eployerImpl.java:968) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
heckComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
Deployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
deploy(HDScanner.java:246) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.
complete(HDScanner.java:192) [:0.2.2]
at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(Two
PCActionWrapper.java:57) [:0.2.2]
at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat
ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
at org.jboss.profileservice.management.ModificationSession.prepare(Modif
icationSession.java:87) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.internal
Perfom(AbstractActionController.java:234) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.performW
rite(AbstractActionController.java:213) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.perform(
AbstractActionController.java:150) [:0.2.2]
at org.jboss.profileservice.management.AbstractActionController.perform(
AbstractActionController.java:135) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne
r.java:146) [:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner
.java:90) [:0.2.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
1) [:1.6.0_21]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java
:317) [:1.6.0_21]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.
6.0_21]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_21]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_21]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886) [:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908) [:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚克服了类似的问题。 JBoss 5 和 6 对 DTD 验证比早期版本(尤其是 4.x 系列)更加严格。您的
jboss.xml
文件未通过 DTD 验证,可能是因为元素顺序不正确,或者有些元素未根据 DTD 进行验证。查看
standardjboss.xml
中 XML 元素的顺序,您将看到jboss.xml
文件有何不同。Just overcame a similar issue. JBoss 5 and 6 are much more strict with DTD validation than earlier versions, especially the 4.x series. Your
jboss.xml
file is failing DTD validation, either because element order is incorrect, or there are elements which don't validate against the DTD.Take a look at the order of the XML elements in
standardjboss.xml
, and you'll see how yourjboss.xml
file differs.