I tested with my db-exmplajpa from my tutorial sources.
The versions I use in the current gibthub sources work nicely. These
still have the aries jpa bugs though.
I then also tried by changing the aries.jpa modules to the recently
released versions.
Unfortunately it did not work for me. I got an error related to the jpa
spec version. So I am not sure the current aries jpa release is useable
like this.
I will check with JB to confirm if there is a workaround. For example it
might be possible to use the new release with a jpa 2.1 compliant
provider like hibernate 4.3.x.
Will give some feedback here as soon I have more informations. I do not
have the exact error as I only did a quick test before the training I gave.
Christian
Am 25.08.2014 10:43, schrieb Christian Schneider:
For jpa you should try the newest versions of aries jpa.
http://search.maven.org/#search|ga|1|g%3A%22org.apache.aries.jpa%22
The ones referenced in karaf 3.0.1 still have some severe bugs. With
the newest versions it works nicely for me. Will retest this evening
as I have to give a training about it tomorrow :-)
I will update the tutorial codes once I have tested.
Christian
Am 25.08.2014 01:38, schrieb tvogel:
I'm trying to run the DB/JPA tutorial from Christian Schneider.
After fixing
some deprecated imports and updating the pom.xml for recent plugins,
I have
a clean compile with no warnings or errors.
The JDBC classes work fine, although there are two warnings when
deploying
the blueprint.xml.
karaf@root()> jdbc:create -t derby derbyds
karaf@root()> Warning:
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser:
Property
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is
not recognized.
Compiler warnings:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property
'http://javax.xml.XMLConstants/property/accessExternalDTD' is not
recognized.'
The JPA example does not work. The Karaf console shows the bundle in
GracePeriod status. The log shows
INFO | Local user karaf | BlueprintContainerImpl | 19 -
org.apache.aries.blueprint.core - 1.4.0 | Bundle db-examplejpa is
waiting
for namespace handlers
[http://aries.apache.org/xmlns/transactions/v1.0.0]
I have the features installed that are detailed in the tutorial.
jndi | 3.0.1 | x | enterprise-3.0.1 | OSGi Service Registry JNDI
access
jdbc | 3.0.1 | x | enterprise-3.0.1 | JDBC service and commands
openjpa | 2.2.2 | | enterprise-3.0.1 | Apache OpenJPA 2.2.x
persistence
engine support
openjpa | 2.3.0 | x | enterprise-3.0.1 | Apache OpenJPA 2.3.x
persistence
engine support
Any suggestions how to get the JPA example to run?
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-DB-tutorial-on-3-0-1-stuck-on-GracePeriod-tp4034891.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com