java.lang.NoClassDefFoundError: Could not initialize class XXX
My best bet is there is an issue here:
static {
//code for loading properties from file
}
It would appear some uncaught exception occurred and propagated up to the actual ClassLoader attempting to load the class. We would need a stacktrace to confirm this though.
Either that or it occurred when creating PropHolder.prop
static variable.
NoClassDefFoundError: Could not initialize class
Turns out you should abandon glassfish and go to JBoss.
That solved my problem.
Thanks.
Related Topics
How Does the Jvm Ensure That System.Identityhashcode() Will Never Change
How to Simulate a Real Mouse Click Using Java
How to Add Test Coverage to a Private Constructor
Exclude Methods from Code Coverage with Cobertura
Freemarker Iterating Over Hashmap Keys
Detect Internet Connection Using Java
Differencebetween Putting a Property on Application.Yml or Bootstrap.Yml in Spring Boot
Joda-Time: What's the Difference Between Period, Interval and Duration
Collection Interface VS Arrays
Java 8 Stream with Batch Processing
What Is the Largest Possible Heap Size with a 64-Bit Jvm
How to Get the Http Status Code Out of a Servletresponse in a Servletfilter