【发布时间】:2019-08-07 09:46:11
【问题描述】:
当我尝试使用 WildFly 启动我的项目时,我收到以下错误消息:
11:25:02,066 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."vip.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."vip.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "vip.war"
at org.jboss.as.server@8.0.0.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183)
at org.jboss.msc@1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
at org.jboss.msc@1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
at org.jboss.msc@1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010061: Unexpected element: local-tx-datasource
at org.jboss.as.connector@16.0.0.Final//org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:105)
at org.jboss.as.server@8.0.0.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176)
... 8 more
Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource
at org.jboss.ironjacamar.impl@1.4.12.Final//org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:194)
at org.jboss.ironjacamar.impl@1.4.12.Final//org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:120)
at org.jboss.ironjacamar.impl@1.4.12.Final//org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:79)
at org.jboss.as.connector@16.0.0.Final//org.jboss.as.connector.deployers.ds.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:90)
... 9 more
11:25:02,144 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "vip.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"vip.war\".PARSE" => "WFLYSRV0153: Failed to process phase PARSE of deployment \"vip.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010061: Unexpected element: local-tx-datasource
Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource"}}
11:25:02,207 INFO [org.jboss.as.server] (ServerService Thread Pool -- 43) WFLYSRV0010: Deployed "vip.war" (runtime-name : "vip.war")
11:25:02,207 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."vip.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "vip.war"
11:25:02,285 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
11:25:02,285 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
11:25:02,285 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
11:25:02,285 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 16.0.0.Final (WildFly Core 8.0.0.Final) started (with errors) in 13658ms - Started 316 of 543 services (1 services failed or missing dependencies, 325 services are lazy, passive or on-demand)
也许问题是因为某处缺少元素? 有人可以解释一下我该如何解决吗?
【问题讨论】:
-
Unexpected element: local-tx-datasource。我认为这是你的问题。您在standalone.xml 中设置了一个数据源。它不工作。尝试在不部署的情况下启动 wildfly 以解决数据源的问题。然后尝试vip.war -
您是否尝试迁移项目?因为它不是 wildfly 的有效数据源配置。此配置类似于 JBoss 4/5/6 数据源配置。
-
感谢您的回答。当我在没有部署的情况下启动服务器 wildfly 时,它可以工作,但使用 vip.war 他不工作。我在 JBoss 6 服务器上有相同的项目,我采用了这个项目的一些 jsp et 类,并集成到新项目中
标签: java web-services wildfly