Hi,

In your error trace, we can see :

Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c:
xDCbereinstimmungsplatzhalter ist streng, aber es kann keine Deklaration
fxFCr Element 'jpa:context' gefunden werden.

In your bundle list you have the 2.2.0 version of the Java Persistance
API and the 2.6.1 version of the Apache Aries JPA  :

 67 │ Active      │  80 │ 2.2.0.v201708071007     │ Java Persistence API 2.2
 68 │ Active      │  80 │ 2.6.1                   │ Apache Aries JPA

but in your blueprint.xml you define 2.0.0 xmlns version.

Maybe you should align the version in your blueprint.xml


François Papon
[email protected]
Open3m - https://www.open3m.io

Le 07/06/2018 à 18:41, ceugster a écrit :
> ... and the blueprint is: 
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>         xmlns:jpa="http://aries.apache.org/xmlns/jpa/v2.0.0";
>         xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0";>
>
>         <bean id="query" 
>                 class="ch.eugster.herakles.persistence.jpa.query.JpaQuery">
>                 <tx:transaction method="*" value="Required" />
>                 <jpa:context unitname="herakles" property="entityManager" />
>                 <property name="logService" ref="logService" />
>         </bean>
>
>         <service ref="query" 
>                 interface="ch.eugster.herakles.persistence.api.query.Query"
> />
>
>         <bean id="populator" 
>                 class="ch.eugster.herakles.persistence.jpa.query.Populator" 
>                 init-method="populate" activation="eager">
>                 <property name="query" ref="query" />
>                 <property name="logService" ref="logService" />
>         </bean>
> </blueprint>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to