[jboss-user] [Persistence] - ClassNotFoundException Moving Persistence.xml From EJB/META-
wluque
do-not-reply at jboss.com
Mon Sep 14 12:01:14 EDT 2009
Hi, i have a application with the next structure (work fine un jboss 4.2.2.ga) :
..FMK-EAR
......fmk-war
......fmk-seam ( Seam Actions Ejb )
......fmk-sessionEjb ( Ejb beans )
......fmk-zentities ( Ejb with the entities definition )
......META-INF
............application.xml
............jboss-app.xml
............persistence.xml ( move recently )
In fmksessionEjb i have @PersistenceContext(unitName = "ejb3FMK") , so I move the persistence.xml from fmk-zentities/META-INF to FMK-EAR/META-INF.
I read in some post, that this is necessary for persistence unit is visible to fmk-sessionEjb.
Now i have the next error :
javax.persistence.PersistenceException: [PersistenceUnit: ejb3FMK] class or package not found
....
Caused by: java.lang.ClassNotFoundException: fmk-zentities.jar.com.multiSistemas.fmk.entity.security.UserSecuritySpaceAccess from ...
The class com.multiSistemas.fmk.entity.security.UserSecuritySpace exists in fmk-zentities.jar .
What is wrong? any idea?
Thank in advance
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255137#4255137
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255137
More information about the jboss-user
mailing list