glassfish icon indicating copy to clipboard operation
glassfish copied to clipboard

Deployment of EAR containing multiple WAR causes many ClassNotFoundExceptions

Open suomarte opened this issue 3 years ago • 0 comments

Environment Details

  • GlassFish Version (and build number): 5.1.0 Release
  • JDK version: Corretto-8.322
  • OS: Windows 10

Problem Description

When deploying an EAR with more than one WAR inside many ClassNotFoundExceptions are logged. Depending on the application there can be thouthands of warnings. For example if you use bootsfaces, one of them looks like that:

[2022-04-29T12:44:11.265+0000] [glassfish 5.1] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=96 _ThreadName=admin-listener(2)] [timeMillis: 1651236251265] [levelValue: 900] [[
  Unable to load class net.bootsfaces.component.icon.Icon, reason: java.lang.ClassNotFoundException: net.bootsfaces.component.icon.Icon]]

This seems to be a known problem and was fixed for Payara: https://github.com/payara/Payara/issues/374 Is it possible to fix this problem in Glassfish in the same way?

suomarte avatar Apr 29 '22 13:04 suomarte