  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - Re: Unknown entity exception when Entities are in multi | - Re: Unknown entity exception when Entities are in multi 2007-08-13 - By ALRubinger
Back Well, you've got an association between tables that are managed by two separate Persistence Units...
What documentation directed you to take this approach?
To get classes from different JARs in the same persistence context, use the "jar-file" or "class" nodes under the "persistence-unit" root in persistence.xml .
I'm not sure if this bug has been fixed (haven't myself upgraded yet), but there was a problem as recent as JBoss 4.0.5 where JARs referenced by the "jar -file" element were getting (incorrectly) scanned relative to $JBOSS_HOME/bin. I currently use the "class" element to incorporate classes from other JARs into my EMs and all works fine.
S, ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073705#4073705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073705 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |