我想将我的项目从Wildfli8.2移到更新版本(即ver11)。当然,在WF8.2上一切正常。在使用jboss-迁移工具并尝试使用更新版本的deploy之后,我每次都得到:
"jboss.naming.context.java.jboss.infinispan.container.myapp",:
12:55:36,838错误org.jboss.as.controller.management-operation WFLYCTL0013:操作(“部署”)失败-地址:(“部署”=>“my-app.war”)-失败描述:{ "WFLYCTL0412:未安装的必需服务:“=>“"jboss.naming.context.java.module.myapp-core.myapp.env.\"com.myapp.core.midware.server.services.ws.services.SingletonEJB\"._embeddedCacheContainer :缺少/不可用依赖项的服务”=> =>缺失}
该怎么办呢。我试图将无限跨度从8.2 (Version6.0.2-决赛)移到,但是整个WF应用程序不会启动。现在,我更新pom.xml以获得更新的版本(8.2.8-Final),生成包,但它仍然显示出来。
就连我都试着从(com.myapp.core.midware.server.services.ws.services.SingletonEJB):文件中评论
// @Resource(lookup="java:jboss/infinispan/container/nmarket")
// private CacheContainer _embeddedCacheContainer;
并根据它指定新的DefaultCacheManager引用:
_cacheManager = new DefaultCacheManager(); //_embeddedCacheContainer.getCache().getCacheManager();
它就会出现。
谢谢你的帮助
编辑:
这是独立的-Ful.xml中无穷跨度的一节:
<subsystem xmlns="urn:jboss:domain:infinispan:4.0">
<cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">
<local-cache name="passivation">
<transaction mode="BATCH"/>
<file-store passivation="true" purge="false"/>
</local-cache>
<local-cache name="persistent">
<transaction mode="BATCH"/>
<file-store passivation="false" purge="false"/>
</local-cache>
<local-cache name="concurrent">
<file-store passivation="true" purge="false"/>
</local-cache>
</cache-container>
<cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">
<local-cache name="passivation">
<transaction mode="BATCH"/>
<file-store passivation="true" purge="false"/>
</local-cache>
<local-cache name="persistent">
<transaction mode="BATCH"/>
<file-store passivation="false" purge="false"/>
</local-cache>
</cache-container>
<cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan">
<local-cache name="entity">
<transaction mode="NON_XA"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="local-query">
<transaction mode="NONE"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="timestamps">
<transaction mode="NONE"/>
<eviction strategy="NONE"/>
</local-cache>
</cache-container>
<cache-container name="server" default-cache="default" module="org.wildfly.clustering.server">
<local-cache name="default">
<transaction mode="BATCH"/>
</local-cache>
</cache-container>
</subsystem>
发布于 2020-05-05 03:49:09
首先,我将从一个更新的版本开始。最新的版本是WildFly 19.1.0。(https://wildfly.org/news/2020/05/04/WildFly-1910-Released/)。每次发布WildFly,我都会升级它。
当我在2017年升级到WildFly 12时,我也转向了Gradle (现在是6.3)。IMO比Maven创建JAR和部署(JAR + WAR)要容易得多。
https://stackoverflow.com/questions/61591767
复制