简体   繁体   English

启动WildFly时发生链接错误

[英]Linkage Error while starting WildFly

I have a dependency JAR that i copy into APP-INF/lib directory which is listed in application.xml file as <library-directory>APP-INF/lib</library-directory> 我有一个依赖关系JAR,我将其复制到APP-INF / lib目录中,该目录在application.xml文件中列为<library-directory>APP-INF/lib</library-directory>

When ever i try to start the server i get following error 每当我尝试启动服务器时,都会出现以下错误 在此处输入图片说明

Can anybody please help me solve this problem. 谁能帮我解决这个问题。

Have a look at: https://docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly 看看: https//docs.jboss.org/author/display/WFLY8/Class+Loading+in+WildFly

Our deployment structure looks essentially like this: 我们的部署结构基本上是这样的:

my.ear
  + lib/ <-- dependencies for multi-submodule deployment
  + META-INF/ <-- application.xml defines submodule(s) e.g. web.war, 
              <-- also jboss-deployment-structure.xml to include/export wildfly core modules for your EAR
  + web.war <-- our core deployment

I think in your case, you could just deploy your JARs to EAR/lib and they should be found across all submodules. 我认为在您的情况下,您可以将JAR部署到EAR / lib,并且应该在所有子模块中找到它们。 From the Wildfly docs "Sub deployments (wars and ejb-jars) always have a dependency on the parent module, which gives them access to classes in EAR/lib" 来自Wildfly文档“子部署(war和ejb-jars)始终依赖于父模块,这使他们可以访问EAR / lib中的类”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM