Hi,

I am trying to get Aries JPA running with EclipseLink (2.0.3) in Karaf
container. DataSource is implemented as blueprint file and referenced via
Aries JNDI in persistence.xml.

The bundles start ok (OSGi) but the bluepint for the DAO does not get
initialized ("Failure"). There are also entries in the log ("not suitable
providers") for which I have not found any info in google:
2012-09-10 11:25:02,070 | INFO  | raf-2.2.9/deploy |
fileinstall                      | 6 - org.apache.felix.fileinstall - 3.2.4
| Started bundle:
blueprint:file:/D:/work/karaf/apache-karaf-2.2.9/deploy/datasource_blueprint.xml
2012-09-10 11:25:07,178 | INFO  | raf-2.2.9/deploy |
fileinstall                      | 6 - org.apache.felix.fileinstall - 3.2.4
| Uninstalled
D:\work\karaf\apache-karaf-2.2.9\deploy\org.eclipse.equinox.console_1.0.0.v20120522-1841.jar
2012-09-10 13:06:19,558 | WARN  | raf-2.2.9/deploy |
container                        | 198 - org.apache.aries.jpa.container -
0.3.0 | There are no suitable providers for the provider class name
org.eclipse.persistence.jpa.osgi.PersistenceProvider and version range null.
2012-09-10 13:06:19,584 | INFO  | raf-2.2.9/deploy |
fileinstall                      | 6 - org.apache.felix.fileinstall - 3.2.4
| Installed D:\work\karaf\apache-karaf-2.2.9\deploy\dao-1.0.0-SNAPSHOT.jar
2012-09-10 13:06:19,825 | WARN  | Refresh Packages |
container                        | 198 - org.apache.aries.jpa.container -
0.3.0 | There are no suitable providers for the provider class name
org.eclipse.persistence.jpa.osgi.PersistenceProvider and version range null.
2012-09-10 13:06:19,863 | WARN  | raf-2.2.9/deploy |
container                        | 198 - org.apache.aries.jpa.container -
0.3.0 | There are no suitable providers for the provider class name
org.eclipse.persistence.jpa.osgi.PersistenceProvider and version range null.
2012-09-10 13:06:19,879 | WARN  | raf-2.2.9/deploy |
container                        | 198 - org.apache.aries.jpa.container -
0.3.0 | There are no suitable providers for the provider class name
org.eclipse.persistence.jpa.osgi.PersistenceProvider and version range null.
2012-09-10 13:06:19,879 | INFO  | raf-2.2.9/deploy |
fileinstall                      | 6 - org.apache.felix.fileinstall - 3.2.4
| Started bundle:
file:/D:/work/karaf/apache-karaf-2.2.9/deploy/dao-1.0.0-SNAPSHOT.jar
2012-09-10 13:06:19,992 | INFO  | rint Extender: 1 |
BlueprintContainerImpl           | 9 - org.apache.aries.blueprint - 0.3.2 |
Bundle org.example.osgi.dao is waiting for dependencies
[(&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name
=Customers))(objectClass=javax.persistence.EntityManagerFactory))]
2012-09-10 13:11:20,028 | ERROR | rint Extender: 1 |
BlueprintContainerImpl           | 9 - org.apache.aries.blueprint - 0.3.2 |
Unable to start blueprint container for bundle org.example.osgi.dao due to
unresolved dependencies [(&(&(!(org.apache.aries.jpa.proxy.factory=*))(
osgi.unit.name
=Customers))(objectClass=javax.persistence.EntityManagerFactory))]
java.util.concurrent.TimeoutException
    at
org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:293)[9:org.apache.aries.blueprint:0.3.2]
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_31]
    at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_31]
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_31]
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_31]
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_31]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
    at java.lang.Thread.run(Thread.java:662)[:1.6.0_31]


bundles:
karaf@root> list
START LEVEL 100 , List Threshold: 50
   ID   State         Blueprint      Spring    Level  Name
[  54] [Active     ] [            ] [       ] [   80] Apache Felix
Declarative Services (1.6.1.SNAPSHOT)
[  55] [Active     ] [            ] [       ] [   80] Sun Microsystems'
JDBC Driver for MySQL (5.1.20)
[ 173] [Active     ] [            ] [       ] [   50] Apache CXF
Compatibility Bundle Jar (2.6.1)
[ 203] [Active     ] [Created     ] [       ] [   80]
datasource_blueprint.xml (0.0.0)
[ 204] [Active     ] [            ] [       ] [   80]
eclipselink_feature.xml (0.0.0)
[ 205] [Active     ] [            ] [       ] [   80] Java Persistence API
2.0 (2.0.3.v201010191057)
[ 206] [Active     ] [            ] [       ] [   80] EclipseLink ANTLR
(2.0.0.v20091127-r5931)
[ 207] [Active     ] [            ] [       ] [   80] EclipseLink ASM
(2.0.0.v20091127-r5931)
[ 208] [Active     ] [            ] [       ] [   80] EclipseLink Core
(2.0.0.v20091127-r5931)
[ 209] [Active     ] [            ] [       ] [   80] EclipseLink JPA
(2.0.0.v20091127-r5931)
[ 212] [Active     ] [Failure     ] [       ] [   80] dao (1.0.0.SNAPSHOT)

Any hint would be welcome.

Thanks and Regards,
Michael

Reply via email to