[Persistence, JBoss/CMP, Hibernate, Database] - @Entity Multiple Persistence Contexts
by jfrankman
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
17 years, 10 months
[JBoss Portal] - Multi-CMSPortletWindow uri change with one URL
by cavani
Hi,
I have three CMSPortletWindow in the same Portal Page: List, Content, Related.
In CMS, I have something like:
index.html
Item1/index.html
Item1/index_related.html
Item1/file1.html
Item1/file1_related.html
...
ItemN/index.html
ItemN/index_related.html
ItemN/fileK.html
ItemN/fileK_related.html
index.html is a list of all ItemN/index.html and is shown at List.
When user click in some link on List the expected behavior is:
Content shows ItemN/index.html
Related shows ItemN/index_related.html
ItemN/index.html is a list of all ItemN/fileK.html
Again, when user click in some link on Content:
Content shows ItemN/fileK.html
Related shows ItemN/fileK_related.html
I am using the following address in index.html (a href):
| /portal/MyPortal/default/Content?action=2&uri=/ItemN/index.html
|
This allow I have bookmarkable pages.
I am trying to implement and IPC that allow WindowNavigationEvent to be evaluated by both windows: Content and Related.
My idea was using an listener on page to intercept the event to Content and returning an equivalent event to Related (changing uri) and again returning an event to Content, but I realize just the last returned event take effect over window content.
This problem can be solved with IPC?
Is there any way to intercept an node event and fire another and both take effect?
Any idea other idea?
(I can post the related code to clarify my current idea)
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160401#4160401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160401
17 years, 10 months