karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Papon <francois.pa...@openobject.fr>
Subject Re: Two Karaf instances using one database
Date Thu, 07 Dec 2017 11:24:14 GMT
Hi,

What datasource is declared in the *persistence.xml* of your bundle who
use JPA ?

Have you deployed your bundle manually on each instance or using Cellar ?


Le 07/12/2017 à 14:25, Dominik Marciniszyn a écrit :
> The error from logs from second instance:
>
> 11:18:36,520 | ERROR | FelixStartLevel  | Felix | Bundle
> org.apache.aries.jpa.container [88] EventDispatcher: Error during dispatch.
> (java.lang.IllegalArgumentException: No DataSource supplied in
> persistence.xml)
> java.lang.IllegalArgumentException: No DataSource supplied in
> persistence.xml
> 	at
> org.apache.aries.jpa.container.impl.DataSourceTracker.createFilter(DataSourceTracker.java:54)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.DataSourceTracker.<init>(DataSourceTracker.java:46)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceProviderTracker.createDataSourceTracker(PersistenceProviderTracker.java:121)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceProviderTracker.addingService(PersistenceProviderTracker.java:88)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceProviderTracker.addingService(PersistenceProviderTracker.java:44)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
> [?:?]
> 	at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
> [?:?]
> 	at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> [?:?]
> 	at
> org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
> [?:?]
> 	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) [?:?]
> 	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) [?:?]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceBundleTracker.trackProvider(PersistenceBundleTracker.java:103)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceBundleTracker.findPersistenceUnits(PersistenceBundleTracker.java:87)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceBundleTracker.addingBundle(PersistenceBundleTracker.java:66)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.apache.aries.jpa.container.impl.PersistenceBundleTracker.addingBundle(PersistenceBundleTracker.java:39)
> [88:org.apache.aries.jpa.container:2.6.0]
> 	at
> org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)
> [?:?]
> 	at
> org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:415)
> [?:?]
> 	at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> [?:?]
> 	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> [?:?]
> 	at
> org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
> [?:?]
> 	at
> org.apache.felix.framework.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:915)
> [?:?]
> 	at
> org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
> [?:?]
> 	at
> org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
> [?:?]
> 	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4562) [?:?]
> 	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2229) [?:?]
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) [?:?]
> 	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
> [?:?]
> 	at
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
> [?:?]
> 	at java.lang.Thread.run(Thread.java:745) [?:?]
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Mime
View raw message