Given the following environment to run an enterprise application in Java EE 7.
- GlassFish Server 4.0
- NetBeans IDE 8.0
- JDK 1.7
- EclipseLink 2.5.1 having JPA 2.1
- EclipseLink Metamodel Generator provided by EclipseLink itself - 2.5.1.v20130918-f2b9fc5
- JSF 2.2.6 running PrimeFaces 5.0, PrimeFaces Extension 2.0, OmniFaces 1.7
In some persistent entity classes, I committed some changes manually as they were required (it was done so many times in the past but it did not create any problem). After that, there is a wrench icon on some classes in the the generated metamodel that says, "Needs to be compiled", when mouse button is hovered over them as can be seen in snap shot below.
I undeployed the application from the server, stopped and then started the server, did clean and build and finally deployed all over from scratch but all in vain.
There are no compile time errors. The project is successfully deployed. An exception occurs at run time, when a page that uses one or more of such classes is attempted by the client indicating, "There is no such class - java.lang.NoClassDefFoundError
".
I also deleted the entire metamodel along with the entire build folder and made the IDE generate the model all over again from scratch but no attempts were successful.
In addition to this, also deleted the generated folder and cleaned osgi-cache in ${GlassFishHome}/domains/domain1
.
What might be the cause? When could it happen?