[jboss-jira] [JBoss JIRA] Updated: (JBAS-8103) Entity (annotations) not being scanned in jars configured through jar-file in persistence.xml

Jason T. Greene (JIRA) jira-events at lists.jboss.org
Mon Jul 26 16:35:39 EDT 2010


     [ https://jira.jboss.org/browse/JBAS-8103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason T. Greene updated JBAS-8103:
----------------------------------

    Fix Version/s: TBD-6.x
                       (was: 6.0.0.M4)


All uncompleted issues are now moved to the new "To be determined for future 6.x releases" category. Feel free to reassign this to a specific release, but only if you have the time to do it

> Entity (annotations) not being scanned in jars configured through jar-file in persistence.xml  
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBAS-8103
>                 URL: https://jira.jboss.org/browse/JBAS-8103
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Deployers
>            Reporter: jaikiran pai
>            Assignee: Ales Justin
>             Fix For: TBD-6.x
>
>
> This looks related to JBAS-8060 - some of the persistence unit testcases in EJB3 testsuite are failing due to entities not being mapped. The packaging is a .ear file with 2 (or more) jars:
> app.ear
> |
> | --- puone.jar
> |       |
> |       |--- META-INF
> |       |        | ---- persistence.xml
> |
> |--- util.jar
> The util.jar contains some classes mapped as @Entity and the persistence.xml points to this jar, through jar-file element:
> <jar-file>util.jar</jar-file>
> The testcase fails with:
> Caused by: org.hibernate.MappingException: Unknown entity: org.jboss.ejb3.test.factory.Util
> 	at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:704)
> The org.jboss.ejb3.test.factory.Util resides in util.jar and is as follows:
> package org.jboss.ejb3.test.factory;
> import java.io.Serializable;
> import javax.persistence.Entity;
> import javax.persistence.Id;
> /**
>  * Comment
>  *
>  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
>  * @version $Revision$
>  */
> @Entity
> public class Util implements Serializable
> {
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list