Bug 1155102
| Summary: | Unable to build EntityManagerFactory on JBoss Fuse | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | Martin Basovník <mbasovni> | ||||
| Component: | Camel, Examples, SwitchYard | Assignee: | tcunning | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Matej Melko <mmelko> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.1.0 | CC: | aileenc, ganandan, kejohnso, soa-p-jira, tsykora | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2025-02-10 03:43:22 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Martin Basovník
2014-10-21 11:27:43 UTC
Created attachment 948900 [details]
switchyard-camel-jpa-binding error
Better reproducer: 1. features:install -v switchyard-quickstart-camel-jpa-binding 2. Check if it works (log:display), if so continue in step 3 3. osgi:refresh <ID-switchyard-camel-jpa-binding> 4. log:display -> you will get reported error See: https://github.com/jboss-switchyard/release/blob/2.0.0.Alpha3/karaf/features/src/main/resources/features.xml#L470 If I have already installed bundle 'hibernate-osgi' and I try to install a switchyard application with JPA support, it fails. Then I have to refresh 'hibernate-osgi' bundle to register 'EntityManagerFactory' service. Moreover, my bundle will not have registered service 'SwitchYardContainer'. So I have to stop my bundle and restart it. 'Switchyard-deploy' bundle will then register this service. I think that there can be also problem with ordering of registration of services 'EntityManagerFactory' and 'SwitchYardContainer'. Resetting the flags back to the state it was before Oct-24- 2PM. There was an incorrect bulk update that I'm trying to fix. (In reply to Martin Basovník from comment #2) > Better reproducer: > 1. features:install -v switchyard-quickstart-camel-jpa-binding > 2. Check if it works (log:display), if so continue in step 3 > 3. osgi:refresh <ID-switchyard-camel-jpa-binding> > 4. log:display -> you will get reported error > > See: > https://github.com/jboss-switchyard/release/blob/2.0.0.Alpha3/karaf/features/ > src/main/resources/features.xml#L470 > > If I have already installed bundle 'hibernate-osgi' and I try to install a > switchyard application with JPA support, it fails. Then I have to refresh > 'hibernate-osgi' bundle to register 'EntityManagerFactory' service. > > Moreover, my bundle will not have registered service 'SwitchYardContainer'. > So I have to stop my bundle and restart it. 'Switchyard-deploy' bundle will > then register this service. > > I think that there can be also problem with ordering of registration of > services 'EntityManagerFactory' and 'SwitchYardContainer'. I don't know if this can be fixed as hibernate-osgi needs to be installed/activated after the bundle using jpa. This issue may be corrected in the newer version of Karaf/Hibernate as Karaf 2.4 provides a hibernate jpa feature. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |