简体   繁体   中英

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>

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

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. 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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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