Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread Jack
nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050668.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread smunro
Jack, The logs clearly show that the database hasn't been created: ""localhost:5432:TEST" does not exist" Try creating the schema in postgres then re-run. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050661.html

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread Jack
lass=javax.persistence.EntityManager))] log.txt <http://karaf.922171.n3.nabble.com/file/n4050660/log.txt> list.PNG <http://karaf.922171.n3.nabble.com/file/n4050660/list.PNG> -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread Christian Schneider
.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050657.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread smunro
Jack, See here: https://ops4j1.jira.com/wiki/display/PAXJDBC/Create+DataSource+from+config It's not username. The parameter is user. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050658.html Sent from the Karaf - User mailing list

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread Jack
Stephen, I have shared all the code here https://github.com/JackMic/Hibernate-Postgressql-Karaf-4.1.0 -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050657.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread smunro
.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050656.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread Jack
with the config file. <http://karaf.922171.n3.nabble.com/file/n4050655/Datasource.png> -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050655.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-10 Thread Jack
r of Karaf, it should make available to the container. <http://karaf.922171.n3.nabble.com/file/n4050654/Datasource.png> -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050654.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Christian Schneider
lang.Thread.run(Thread.java:745) [?:?] -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050643.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Christian Schneider
nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050646.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050651.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
container. wrap:mvn:postgresql/postgresql/9.1-901.jdbc4. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050650.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
is available. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050649.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
ble.com/file/n4050648/org.cfg> In feature file I have all the dependency you have mentioed it. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050648.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
Secondly, can you run the following command in karaf: service:list DataSource The logs showed the source being registered, but I just want to double check. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050647.html Sent from the Karaf - User

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
Hi Stephen, I have attached complete log file log.txt <http://karaf.922171.n3.nabble.com/file/n4050646/log.txt> -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050646.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
Still unsure, I've seen the second error before, but I'm curious about the IllegalArgumentException, can you attach the full log file? I'm not sure if the two are related. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050645.html Sent

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
.Thread.run(Thread.java:745) [?:?] -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050643.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
, remove both the jpa:context and tx:transaction and put and outside the bean definitions. Re-run this after you have made the changes and show me the log file. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050641.html Sent from

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jean-Baptiste Onofré
in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050638.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
) ~[?:?] at javax.xml.validation.Validator.validate(Unknown Source) ~[?:?] at org.apache.aries.blueprint.parser.Parser.validate(Parser.java:346) ~[?:?] -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050638.html Sent from

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
Sorry attached wrong log. log.txt <http://karaf.922171.n3.nabble.com/file/n4050637/log.txt> I enable the jndi, hibernate-orm etc. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050637.html Sent from the Karaf - User mailin

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
, I meant, uncomment the commented out entries in the feature.xml file. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050636.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Jack
Hi, how to enable the jndi, hibernate-orm ? karaf.log <http://karaf.922171.n3.nabble.com/file/n4050635/karaf.log> I have removed below two lines, even though my application shows in grace period only. -- View this message in context: http://karaf.922171.n3.nabble.com/Hiberna

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread smunro
is stopped in the GracePeriod state. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050634.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-09 Thread Allan C.
p://aries.apache.org/xmlns/jpa/v2.0.0>> >> http://aries.apache.org/xmlns/transactions/v2.0.0 >> <http://aries.apache.org/xmlns/transactions/v2.0.0> >> <http://aries.apache.org/xmlns/transactions/v2.0.0 >> <http://aries.apache.org/

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Jack
.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050629.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Jean-Baptiste Onofré
http://com.rma.data.dao.St>oreDao" /> -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp40505

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Allan C.
lns/blueprint/v1.0.0/blueprint.xsd> >> http://aries.apache.org/xmlns/jpa/v2.0.0 >> <http://aries.apache.org/xmlns/jpa/v2.0.0> >> http://aries.apache.org/xmlns/transactions/v2.0.0 >> <http://aries.apache.org/xmlns/transactions/v2.0.0>"> >> >> >>

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Allan C.
http://aries.apache.org/xmlns/jpa/v2.0.0 http://aries.apache.org/xmlns/transactions/v2.0.0;> -- View this message in context: http://karaf.922171.n3.nabble. com/Hibernate-JPA-and-Karaf-4-tp4050569p4050614.htm

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Jack
.org/xmlns/transactions/v2.0.0;> -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050614.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread smunro
Regards, Stephen Munro -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050613.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Jack
Hi Stephen, I have took your code and modified my code inline with yours, but my bundles status showing "Grace Period". If I remove below two line then, bundles will start properly -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-a

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread smunro
Hello Jack, I've commented on one your previous posts as this thread is growing arms and legs now... The repo was posted previously in the above comments. Stephen -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050607.html Sent from

Re: Hibernate, JPA and Karaf 4

2017-06-08 Thread Jack
://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050604.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-07 Thread smunro
help on this. Stephen -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050601.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-07 Thread smunro
org.xml.sax, org.xml.sax.helpers -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050600.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-07 Thread smunro
vax.persistence.EntityManager))]" -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050599.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
have got it working. I've followed those guides, but still not had much success. The only thing I've not tried yet is going back from JPA 2.0 to JPA 1.0. Stephen -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050589.html Sent from

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050589.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Timothy Ward
undle > org.desolateplanet.authentication-db-impl event 128 > > At this point, I'm just about ready to give up and go back to using raw jdbc > calls :P > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050587.html > Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
ndle org.desolateplanet.authentication-db-impl event 128 At this point, I'm just about ready to give up and go back to using raw jdbc calls :P -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050587.html Sent from the Karaf - User mailing

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
I'm having: https://github.com/cschneider/Karaf-Tutorial/issues/22 Seems that upgrading hibernate to 5.2.9 might work. I'll need to give it a try. I'll let you know how I get on... -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050584

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050584.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
.6,1)",org.apache.karaf.shell.consol e;version="[2.2,4.1)",org.hibernate.proxy;version="[4.3,5)",javassist.u til.proxy;version="[3.18,4)" Meta-Persistence: META-INF/persistence.xml Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050576.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
-- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050577.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
lass=javax.persistence.EntityManager))] The only thing I changed was the above and injecting the persistence context via annotation. -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050576.html Sent from the Karaf - User mailing list arc

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
| | Started | enterprise-4.0.8 | Hibernate 4.3.x JPA persistence engine support -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050575.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
-config jpa hibernate -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050572.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
hibernate -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050572.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
the following entries: jndi jdbc pax-jdbc-h2 pax-jdbc-pool-dbcp2 pax-jdbc-config jpa hibernate -- View this message in context: http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050572.html

Re: Hibernate, JPA and Karaf 4

2017-06-06 Thread Jean-Baptiste Onofré
001/XMLSchema-instance; xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0; xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0;> -- View this message in context: http://karaf.922171.n3

Hibernate, JPA and Karaf 4

2017-06-06 Thread smunro
001/XMLSchema-instance; xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0; xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0;> -- View this message in context: http://karaf.922171.n3.n