I have two persistent contexts defined in my project. I can get everything to 
work alright, except that when I deploy the app I get an error for each entity 
since each Entity bean does not exist in both persistence contexts. 


anonymous wrote : 
  | 18:56:28,560 WARN  [ServiceController] Problem starting service 
persistence.units:ear=KeyBankChecksJEE2.ear,jar=KeyBankChecksJEE2.jar,unitName=KeyBankChecksDB
  | javax.persistence.PersistenceException: org.hibernate.HibernateException: 
Missing table: indexDetail
  |     at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
  |     at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
  |     at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at org.jbo
  | 

anonymous wrote : 
  | 18:56:38,732 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: 
persistence.units:ear=KeyBankChecksJEE2.ear,jar=KeyBankChecksJEE2.jar,unitName=KeyBankChecksDB
  |   State: FAILED
  |   Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Missing table: indexDetail
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=KeyBankChecksDBDatasource
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: 
persistence.units:ear=KeyBankChecksJEE2.ear,jar=KeyBankChecksJEE2.jar,unitName=KeyBankChecksDB
  |   State: FAILED
  |   Reason: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Missing table: indexDetail
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=KeyBankChecksDBDatasource

Is there a way to specify that a particular Entity is only found in Persistence 
Unit A on not in Persistence Unit B so that the above error message is not 
displayed?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160406#4160406

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160406
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to