Prevent Glassfish from using its own versions of libraries instead of those in a project

五迷三道 提交于 2019-12-03 16:49:52

Add a glassfish-web.xml file to your WEB-INF directory containing something like,

<glassfish-web-app>
  <class-loader delegate="false" />
</glassfish-web-app>

This will ensure classes are loaded from your war before the server classpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!