首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将JBoss5.1 Seam应用程序迁移到WildFly8.2

将JBoss5.1 Seam应用程序迁移到WildFly8.2
EN

Stack Overflow用户
提问于 2015-07-17 09:52:08
回答 1查看 355关注 0票数 0

目前,我正在将seam应用程序从JBoss5.1迁移到WildFly 8.2。

我正在使用Seam2.2和JBPM3.3,在WildFly 8.2上编译java 8之后,在JBoss5.1应用程序上部署了JBoss5.1应用程序,并且修复了少数问题,我遇到了JBPM问题。

下面是我的服务器日志

代码语言:javascript
复制
4:12:50,540 INFO  [org.jboss.seam.init.Initialization] (MSC service thread         1-2) reading /WEB-INF/components.xml
    14:12:50,549 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./todo: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./todo: Failed to start service
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: error while reading /WEB-INF/components.xml
  at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:222)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
  ... 3 more
Caused by: java.lang.RuntimeException: error while reading /WEB-INF/components.xml
  at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:231)
  at org.jboss.seam.init.Initialization.create(Initialization.java:134)
  at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
  at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
  at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:193)
  ... 7 more
Caused by: java.lang.RuntimeException: Error loading element Jbpm with component name null and component class null
  at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:352)
  at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:227)
  ... 11 more


14:12:50,567 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "todo-ear.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./todo" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./todo: Failed to start service
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: error while reading /WEB-INF/components.xml
    Caused by: java.lang.RuntimeException: error while reading /WEB-INF/components.xml
    Caused by: java.lang.RuntimeException: Error loading element Jbpm with component name null and component class null"}}
14:12:50,682 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "mysql-connector-java-5.1.23-bin.jar" (runtime-name : "mysql-connector-java-5.1.23-bin.jar")
14:12:50,709 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 27) JBAS018559: Deployed "todo-ear.ear" (runtime-name : "todo-ear.ear")
14:12:50,850 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.undertow.deployment.default-server.default-host./todo: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./todo: Failed to start service


14:12:50,972 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:10190/management
14:12:50,973 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:10190
14:12:50,973 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.0.Final "Tweek" started (with errors) in 12043ms - Started 582 of 661 services (3 services failed or missing dependencies, 123 services are lazy, passive or on-demand)
14:12:51,142 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 32) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'todo-ear.ear/todo-ejb.jar#todo'
14:12:51,145 ERROR [stderr] (xnio-file-watcher[Watcher for D:\Migration_Workspace\Jboss\Jboss-8\wildfly-8.2.0.Final\standalone\deployments\todo-ear.ear\todo.war/]-0) Exception in thread "xnio-file-watcher[Watcher for D:\Migration_Workspace\Jboss\Jboss-8\wildfly-8.2.0.Final\standalone\deployments\todo-ear.ear\todo.war/]-0" java.nio.file.ClosedWatchServiceException

The below is my comoponents.xml file

<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.org/schema/seam/components"
  xmlns:core="http://jboss.org/schema/seam/core" xmlns:persistence="http://jboss.org/schema/seam/persistence"
  xmlns:bpm="http://jboss.org/schema/seam/bpm" xmlns:security="http://jboss.org/schema/seam/security"
  xmlns:theme="http://jboss.org/schema/seam/theme" xmlns:cache="http://jboss.org/schema/seam/cache"
  xmlns:web="http://jboss.org/schema/seam/web" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://jboss.org/schema/seam/core http://jboss.org/schema/seam/core-2.3.xsd
                       http://jboss.org/schema/seam/persistence http://jboss.org/schema/seam/persistence-2.3.xsd
                       http://jboss.org/schema/seam/bpm http://jboss.org/schema/seam/bpm-2.3.xsd
                       http://jboss.org/schema/seam/security http://jboss.org/schema/seam/security-2.3.xsd
                       http://jboss.org/schema/seam/theme http://jboss.org/schema/seam/theme-2.3.xsd
                       http://jboss.org/schema/seam/cache http://jboss.org/schema/seam/cache-2.3.xsd
                       http://jboss.org/schema/seam/web http://jboss.org/schema/seam/web-2.3.xsd
                       http://jboss.org/schema/seam/components http://jboss.org/schema/seam/components-2.3.xsd">


    <bpm:jbpm>
        <bpm:process-definitions>
        <value>todo.jpdl.xml</value>
        </bpm:process-definitions>
    </bpm:jbpm>

</components>

如果有人有解决办法,请给我建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-31 09:40:41

WildFly不支持JBPM3.2,为了解决这个问题,我们需要按照下面的链接使用绑定的hibernate jars。

https://developer.jboss.org/thread/253440

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31473064

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档