-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Loading entity classes outside war
PostPosted: Fri Sep 26, 2008 9:58 am 
Newbie

Joined: Fri Sep 26, 2008 8:16 am
Posts: 1
Hi all,

Using hibernate 3.4/EJB3.0 we experienced a problem with loading an entity class, which exists outside the war file.

Several options were explored to make this possible:
    The jar file was added (where the entity class is located) to the classpath;

    Tried to add the jar file to the persistence.xml (between the <jar-file> tags);

    A combination of the options above.

All the options stated above resulted in the following error:

Code:
javax.persistence.PersistenceException: org.hibernate.MappingException: Unknown
entity: com.compname.custom.thirdparty.entities.EntityClassEvent


The entity class (EntityClassEvent) can be found but the entities are not processed.

A solution which worked, was to add the entity class inside the war file, but this is not as we would like to see this, because for every change in the entity class, we would have to update the war file.

Is it possible to load and use an entity class which is not contained in the war itself?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.