in Education by
I am wanting to understand this Karaf JPA example. When I follow the instructions to add features and run the bundles for eclipseLink, the example works correctly. However, if I try to use Hibernate, it doesn't work. I don't know Hibernate / H2 well enough to know what I am missing. When I run feature:install karaf-jpa-example-provider-ds-hibernate, I see this in the log: javax.persistence.PersistenceException: [PersistenceUnit: booking-hibernate] Unable to build Hibernate SessionFactory diag returns this information: Status: Waiting Declarative Services org.apache.karaf.examples.jpa.provider.ds.hibernate.BookingServiceImpl (1) missing references: jpaTemplate The karaf and H2 installs are new and empty. My suspicion is that there is something in H2 I need to do but I have no experience with this db. Edit: Using the blueprint example, again eclipseLink works and Hibernate does not. Performing this command: feature:install karaf-jpa-example-provider-blueprint-hibernate causes this error in the log: ERROR [features-2-thread-1] Bundle org.apache.aries.jpa.container [72] EventDispatcher: Error during dispatch. (javax.persistence.PersistenceException: [PersistenceUnit: booking-hibernate] Unable to build Hibernate SessionFactory) javax.persistence.PersistenceException: [PersistenceUnit: booking-hibernate] Unable to build Hibernate SessionFactory And this is the diag: Missing dependencies: (&(osgi.unit.name=booking-hibernate) (objectClass=javax.persistence.EntityManager)) Edit #2: I am using JDK11 (11.0.2). thanks, jon JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
It appears the problem is JDK11. I have moved to JDK8 and it is working. This is the post that clued me in: https://hibernate.atlassian.net/browse/HHH-12924

Related questions

0 votes
    I created update() method which is using JPA. It looks like this: public boolean update(Programy program) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    Every time I try to run a small application that uses a Derby DB I get this error message: ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    Every time I try to run a small application that uses a Derby DB I get this error message: ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    I have inherited a corporate server & application that consists of several python scripts, html files, and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
0 votes
    I have a scenario that I want to implement in Laravel. I have already implemented this kind of approach ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 26, 2022 in Education by JackTerrance
0 votes
    I have a scenario that I want to implement in Laravel. I have already implemented this kind of approach ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I have a scenario that I want to implement in Laravel. I have already implemented this kind of approach ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I have been able to define multiple aspects (one is @Before and another is @Around) using Spring AOP ( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 18, 2022 in Education by JackTerrance
0 votes
    How to configure inclusions & exclusions in Artifacts Archival?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    How to configure static files in Django?...
asked Jul 1, 2021 in Technology by JackTerrance
0 votes
    As far as I've experienced JPA/hibernate will return entities that either exists at the database or have ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
0 votes
    So I'm trying to make box and whisker plots for my weekly/monthly profit and loss for my sports betting picks for ... gotten me so far And following that here is my code exceldata...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly but when ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 30, 2022 in Education by JackTerrance
0 votes
    I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly but when ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 29, 2022 in Education by JackTerrance
...