Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试了这两个库,并且在部署我的应用程序时,Wildfly 会抛出java.lang.NoClassDefFoundError正在使用的任何类。
java.lang.NoClassDefFoundError
Wildfly 中是否存在阻止它们使用的这些库/或 API 的东西?
我找到了解决方案。在我pom.xml的 EJB 模块文件中,我添加了以下<configuration>内容maven-ejb-plugin:
pom.xml
<configuration>
maven-ejb-plugin
<archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive>