Glassfish v3 autodeploy issue with eclipselink
Hello everybody,
I am developing an application running on a glassfish v3 server using eclipelink as JPA provider.
When I use the autodeploy function to deploy a new version of my application, all Entity classes are not found anymore:
java.lang.IllegalArgumentException: Unknown entity bean class: class de.xxx.module.dwh.table.FedRawClick, please verify that this class has been marked with the @Entity annotation.
+ at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:576)+
+ at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:460)+
Yes, the class FedRawClick has an @Entity annotation.
After a restart of the domain everything is working fine again.
Also changes in the persistence.xml are ignored until I restart the domain.
Is this an eclipselink issue or an glassfish autodeploy issue?
Is there a Cache which can be flushed programmatically to solve this problem?
I have already tried this without any success:
em.getEntityManagerFactory().getCache().evictAll();
+((JpaEntityManager) em.getDelegate()).getServerSession().getIdentityMapAccessor().initializeAllIdentityMaps();+
I am very thankful for every support.
Reagrds,
Christian