在WildFly 13服务器中的ClassNotFound异常。

huangapple 未分类评论44阅读模式
英文:

ClassNotFound exception in wildfly 13 server

问题

我想在托管在 Wildfly 13 服务器上的应用程序中使用一些第三方 JAR 包。因此,我已经在 jboss-deployment-structure.xml 文件中添加了对那些位于 Wildfly 模块文件夹中的 JAR 包的模块依赖,其余的 JAR 包则打包到了应用程序的 WEB-INF/lib 文件夹中。

但是,当我运行应用程序时,位于 WEB-INF/lib 文件夹中的 JAR 包未被引用。由此我得到了 ClassNotFound 异常。如果有任何关于实现上述需求的参考或建议,将不胜感激。

英文:

I want to use some third party jars in my application which is hosted on Wildfly 13 server. So i have added the module dependency in jboss-deployment-structure.xml file for those jars which are present in wildfly modules folder and rest jars are packaged with the application WEB-INF/lib folder.

But when i am running the application, jars present in WEB-INF/lib folder are not getting referred.For which i am getting ClassNotFound Exception. Any reference or suggestions to achieve the above requirement is appreciated.

huangapple
  • 本文由 发表于 2020年4月7日 03:21:50
  • 转载请务必保留本文链接:https://java.coder-hub.com/61067391.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定