Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Glassfish v3 autodeploy issue with eclipselink

803134Oct 5 2010
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2010
Added on Oct 5 2010
0 comments
223 views