Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 392 Guest, 1 year ago
the Load Time Weaver to the one designed for GlassFish, then GlassFish's EJBClassLoader gets involved and throws an exception stating that it can't find the entity class specified in my persistence.xml Caused by: java.lang.ClassNotFoundException: com.example.dao.SystemSettingEntity
java.lang.ClassCastException: com.example.dao.settings.SystemSettingEntity cannot be cast to com.example.dao.settings.SystemSettingEntity 2) If I remove Spring's entityManagerFactory bean from the applicationContext.xml configuration file, and change my DAO to load the entity manager itself, then I don't have any problems: entityManagerFactory = Persistence.createEntityManagerFactory("TestPU"); entityManager = entityManagerFactory.createEntityManager(); 3) If I put the code and config file back to the way it was, and change the Load Time Weaver to the one designed for GlassFish, then GlassFish's EJBClassLoader gets involved and throws an exception stating that it can't find the entity class specified in my persistence.xml Caused by: java.lang.ClassNotFoundException: com.example.dao.SystemSettingEntity	at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:718)