You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Erwin Hogeweg <er...@me.com> on 2016/02/01 01:21:10 UTC
Re: Karaf-4.0.4 - CNF Exception in eclipse link feature.
Thanks JB,
> As workaround, wrap could help.
Hmmm, wrapping the bundle didn’t seem to solve it.
When I do:
bundle:install -s 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Export-Package=org.apache.aries.jpa.eclipselink.adapter.platform’
The bundle headers look exactly the same as from the original bundle.
Cheers,
Erwin
>
> On 01/31/2016 07:12 PM, Erwin Hogeweg wrote:
>> Ugh… good call, it is not there.
>>
>> How do I get around this. Do I need to manually hack the MANIFEST?
>>
>> Thanks,
>>
>> Erwin
>>
>>
>> Apache Aries JPA Container adapter for EclipseLink (65)
>> -------------------------------------------------------
>> Bnd-LastModified = 1449936586123
>> Build-Jdk = 1.7.0_60
>> Built-By = cschneider
>> Created-By = Apache Maven Bundle Plugin
>> Manifest-Version = 1.0
>> Tool = Bnd-2.3.0.201405100607
>>
>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>> Bundle-Description = The Apache Software Foundation provides support for
>> the Apache community of open-source software projects. The Apache
>> projects are characterized by a collaborative, consensus based
>> development process, an open and pragmatic software license, and a
>> desire to create high quality software that leads the way in its field.
>> We consider ourselves not simply a group of projects sharing a
>> server, but rather a community of developers and users.
>> Bundle-DocURL = http://www.apache.org/
>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
>> Bundle-ManifestVersion = 2
>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>> Bundle-Vendor = The Apache Software Foundation
>> Bundle-Version = 2.3.0
>>
>> Require-Capability =
>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>
>> Import-Package =
>> javax.persistence;version="[2.1,3)",
>> javax.persistence.spi;version="[2.1,3)",
>> javax.sql,
>> javax.transaction;version="[1.1,2)",
>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>> org.eclipse.persistence.sessions;version="[2.5,3)",
>> org.eclipse.persistence.transaction;version="[2.5,3)",
>> org.osgi.framework;version="[1.6,2)",
>> org.osgi.framework.wiring;version="[1.0,2)",
>> org.slf4j;version="[1.7,2)"
>>
>>
>>> On Jan 31, 2016, at 12:41, Jean-Baptiste Onofré <jb@nanthrax.net
>>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>>
>>> Hi Erwin,
>>>
>>> Did you check the adapter import the eclipselink packages ?
>>>
>>> Regards
>>> JB
>>>
>>> On 01/31/2016 06:33 PM, Erwin Hogeweg wrote:
>>>> All -
>>>>
>>>> I am trying to get the eclipselink feature working in Karaf-4.0.4 but so
>>>> far no luck. When I use service:get to get the EntityManagerFactory
>>>> service I get a CNF Exception. Digging a little deeper it appears that
>>>> the class is available in org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>> but it appears that the package is not exported.
>>>>
>>>> It must be missing something, I believe Christian posted some comments
>>>> about the eclipselink feature but I can’t find them anymore.
>>>>
>>>> Any suggestions are greatly appreciated.
>>>>
>>>> BTW… I am using all the default feature versions.
>>>> <feature>jpa</feature>
>>>> <feature>jndi</feature>
>>>> <feature>jdbc</feature>
>>>> <feature>eclipselink</feature>
>>>>
>>>> Erwin
>>>>
>>>>
>>>>
>>>> *karaf*@root()> service:get javax.persistence.EntityManagerFactory
>>>> [EL Severe]: ejb: Exception [EclipseLink-28006] (Eclipse Persistence
>>>> Services - 2.6.1.v20150916-55dc7c3):
>>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>>> Exception Description: ClassNotFound:
>>>> [org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer]
>>>> specified in [eclipselink.target-server] property.
>>>> Internal Exception: java.lang.ClassNotFoundException:
>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer not found
>>>> by org.eclipse.persistence.jpa [199]
>>>> java.lang.reflect.InvocationTargetException
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>> at
>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.inspect(CommandSessionImpl.java:358)
>>>> at
>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:335)
>>>> at
>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:390)
>>>> at
>>>> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:272)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>>
>>>>
>>>> *karaf*@root()> feature:info eclipselink
>>>> …
>>>> Feature contains followed bundles:
>>>> …
>>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>
>>>> *karaf*@root()> la | grep adapter
>>>> 114 | Active | 80 | 2.3.0 | Apache Aries JPA
>>>> Container adapter for EclipseLink
>>>> *
>>>> *
>>>> *karaf*@root()> bundle:classes 114 | grep
>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer
>>>> org/apache/aries/jpa/eclipselink/adapter/platform/OSGiTSServer.class
>>>> *karaf*@root()>
>>>>
>>>> *karaf*@root()> bundle:headers 114
>>>>
>>>> Apache Aries JPA Container adapter for EclipseLink (114)
>>>> --------------------------------------------------------
>>>> Bnd-LastModified = 1449936586123
>>>> Build-Jdk = 1.7.0_60
>>>> Built-By = cschneider
>>>> Created-By = Apache Maven Bundle Plugin
>>>> Manifest-Version = 1.0
>>>> Tool = Bnd-2.3.0.201405100607
>>>>
>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>> Bundle-Description = The Apache Software Foundation provides support for
>>>> the Apache community of open-source software projects. The Apache
>>>> projects are characterized by a collaborative, consensus based
>>>> development process, an open and pragmatic software license, and a
>>>> desire to create high quality software that leads the way in its field.
>>>> We consider ourselves not simply a group of projects sharing a
>>>> server, but rather a community of developers and users.
>>>> Bundle-DocURL = http://www.apache.org/
>>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
>>>> Bundle-ManifestVersion = 2
>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>> Bundle-Vendor = The Apache Software Foundation
>>>> Bundle-Version = 2.3.0
>>>>
>>>> Require-Capability =
>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>
>>>> Import-Package =
>>>> javax.persistence;version="[2.1,3)",
>>>> javax.persistence.spi;version="[2.1,3)",
>>>> javax.sql,
>>>> javax.transaction;version="[1.1,2)",
>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>> org.osgi.framework;version="[1.6,2)",
>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>> org.slf4j;version="[1.7,2)"
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org <ma...@apache.org> <mailto:jbonofre@apache.org <ma...@apache.org>>
>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>> Talend - http://www.talend.com <http://www.talend.com/>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net <http://blog.nanthrax.net/>
> Talend - http://www.talend.com <http://www.talend.com/>
Re: Karaf-4.0.4 - CNF Exception in eclipse link feature.
Posted by Erwin Hogeweg <er...@me.com>.
JB,
> maybe Dynamic-Import could work as a workaround.
Thanks, that worked. it added this to the headers:
DynamicImport-Package =
*
Export-Package =
org.apache.aries.jpa.eclipselink.adapter;uses:="javax.persistence,javax.persistence.spi,javax.sql,org.osgi.framework",
org.apache.aries.jpa.eclipselink.adapter.platform;
uses:="javax.transaction,
org.eclipse.persistence.platform.server,
org.eclipse.persistence.sessions,
org.eclipse.persistence.transaction"
karaf@root(package)> exports | grep org.apache.aries.jpa.eclipselink.adapter.platform
org.apache.aries.jpa.eclipselink.adapter.platform | 0.0.0 | 209 | org.apache.aries.jpa.eclipselink.adapter
karaf@root(package)>
It doesn’t solve the CNF exception though.
karaf@root()> service:get javax.persistence.EntityManagerFactory
[EL Severe]: ejb: Exception [EclipseLink-28006] (Eclipse Persistence Services - 2.6.1.v20150916-55dc7c3): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: ClassNotFound: [org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer] specified in [eclipselink.target-server] property.
Internal Exception: java.lang.ClassNotFoundException: org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer not found by org.eclipse.persistence.jpa [72]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.felix.gogo.runtime.CommandSessionImpl.inspect(CommandSessionImpl.java:358)
at org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:335)
at org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:390)
at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:272)
at java.lang.Thread.run(Thread.java:745)
Cheers,
Erwin
>
> I gonna check the bundle headers.
>
> Regards
> JB
>
> On 02/01/2016 12:53 PM, Erwin Hogeweg wrote:
>> Nope.
>>
>> bundle:install -s
>> 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Import-Package=org.apache.aries.jpa.eclipselink.adapter.platform'
>>
>> Import-Package =
>> javax.persistence;version="[2.1,3)",
>> javax.persistence.spi;version="[2.1,3)",
>> javax.sql,
>> javax.transaction;version="[1.1,2)",
>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>> org.eclipse.persistence.sessions;version="[2.5,3)",
>> org.eclipse.persistence.transaction;version="[2.5,3)",
>> org.osgi.framework;version="[1.6,2)",
>> org.osgi.framework.wiring;version="[1.0,2)",
>> org.slf4j;version="[1.7,2)"
>>
>> Erwin
>>
>>> On Feb 1, 2016, at 00:50, Jean-Baptiste Onofré <jb@nanthrax.net
>>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>>
>>> And adding Import-Package to the wrap ?
>>>
>>> On 02/01/2016 01:21 AM, Erwin Hogeweg wrote:
>>>> Thanks JB,
>>>>
>>>>> As workaround, wrap could help.
>>>> Hmmm, wrapping the bundle didn’t seem to solve it.
>>>> When I do:
>>>> bundle:install -s
>>>> 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Export-Package=org.apache.aries.jpa.eclipselink.adapter.platform’
>>>>
>>>> The bundle headers look exactly the same as from the original bundle.
>>>>
>>>>
>>>> Cheers,
>>>>
>>>> Erwin
>>>>
>>>>
>>>>>
>>>>> On 01/31/2016 07:12 PM, Erwin Hogeweg wrote:
>>>>>> Ugh… good call, it is not there.
>>>>>>
>>>>>> How do I get around this. Do I need to manually hack the MANIFEST?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Erwin
>>>>>>
>>>>>>
>>>>>> Apache Aries JPA Container adapter for EclipseLink (65)
>>>>>> -------------------------------------------------------
>>>>>> Bnd-LastModified = 1449936586123
>>>>>> Build-Jdk = 1.7.0_60
>>>>>> Built-By = cschneider
>>>>>> Created-By = Apache Maven Bundle Plugin
>>>>>> Manifest-Version = 1.0
>>>>>> Tool = Bnd-2.3.0.201405100607
>>>>>>
>>>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>>>> Bundle-Description = The Apache Software Foundation provides
>>>>>> support for
>>>>>> the Apache community of open-source software projects. The Apache
>>>>>> projects are characterized by a collaborative, consensus based
>>>>>> development process, an open and pragmatic software license, and a
>>>>>> desire to create high quality software that leads the way in its field.
>>>>>> We consider ourselves not simply a group of projects sharing a
>>>>>> server, but rather a community of developers and users.
>>>>>> Bundle-DocURL = http://www.apache.org/ <http://www.apache.org/>
>>>>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt <http://www.apache.org/licenses/LICENSE-2.0.txt>
>>>>>> Bundle-ManifestVersion = 2
>>>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>>>> Bundle-Vendor = The Apache Software Foundation
>>>>>> Bundle-Version = 2.3.0
>>>>>>
>>>>>> Require-Capability =
>>>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>>>
>>>>>> Import-Package =
>>>>>> javax.persistence;version="[2.1,3)",
>>>>>> javax.persistence.spi;version="[2.1,3)",
>>>>>> javax.sql,
>>>>>> javax.transaction;version="[1.1,2)",
>>>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>>>> org.osgi.framework;version="[1.6,2)",
>>>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>>>> org.slf4j;version="[1.7,2)"
>>>>>>
>>>>>>
>>>>>>> On Jan 31, 2016, at 12:41, Jean-Baptiste Onofré <jb@nanthrax.net <ma...@nanthrax.net>
>>>>>>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>>>>>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>>>>>>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>>>>>>
>>>>>>> Hi Erwin,
>>>>>>>
>>>>>>> Did you check the adapter import the eclipselink packages ?
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 01/31/2016 06:33 PM, Erwin Hogeweg wrote:
>>>>>>>> All -
>>>>>>>>
>>>>>>>> I am trying to get the eclipselink feature working in Karaf-4.0.4
>>>>>>>> but so
>>>>>>>> far no luck. When I use service:get to get the EntityManagerFactory
>>>>>>>> service I get a CNF Exception. Digging a little deeper it appears
>>>>>>>> that
>>>>>>>> the class is available in
>>>>>>>> org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>>>> but it appears that the package is not exported.
>>>>>>>>
>>>>>>>> It must be missing something, I believe Christian posted some
>>>>>>>> comments
>>>>>>>> about the eclipselink feature but I can’t find them anymore.
>>>>>>>>
>>>>>>>> Any suggestions are greatly appreciated.
>>>>>>>>
>>>>>>>> BTW… I am using all the default feature versions.
>>>>>>>> <feature>jpa</feature>
>>>>>>>> <feature>jndi</feature>
>>>>>>>> <feature>jdbc</feature>
>>>>>>>> <feature>eclipselink</feature>
>>>>>>>>
>>>>>>>> Erwin
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *karaf*@root()> service:get javax.persistence.EntityManagerFactory
>>>>>>>> [EL Severe]: ejb: Exception [EclipseLink-28006] (Eclipse Persistence
>>>>>>>> Services - 2.6.1.v20150916-55dc7c3):
>>>>>>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>>>>>>> Exception Description: ClassNotFound:
>>>>>>>> [org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer]
>>>>>>>> specified in [eclipselink.target-server] property.
>>>>>>>> Internal Exception: java.lang.ClassNotFoundException:
>>>>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer not
>>>>>>>> found
>>>>>>>> by org.eclipse.persistence.jpa [199]
>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>> at
>>>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.inspect(CommandSessionImpl.java:358)
>>>>>>>> at
>>>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:335)
>>>>>>>> at
>>>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:390)
>>>>>>>> at
>>>>>>>> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:272)
>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>
>>>>>>>>
>>>>>>>> *karaf*@root()> feature:info eclipselink
>>>>>>>> …
>>>>>>>> Feature contains followed bundles:
>>>>>>>> …
>>>>>>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>>>>
>>>>>>>> *karaf*@root()> la | grep adapter
>>>>>>>> 114 | Active | 80 | 2.3.0 | Apache
>>>>>>>> Aries JPA
>>>>>>>> Container adapter for EclipseLink
>>>>>>>> *
>>>>>>>> *
>>>>>>>> *karaf*@root()> bundle:classes 114 | grep
>>>>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer
>>>>>>>> org/apache/aries/jpa/eclipselink/adapter/platform/OSGiTSServer.class
>>>>>>>> *karaf*@root()>
>>>>>>>>
>>>>>>>> *karaf*@root()> bundle:headers 114
>>>>>>>>
>>>>>>>> Apache Aries JPA Container adapter for EclipseLink (114)
>>>>>>>> --------------------------------------------------------
>>>>>>>> Bnd-LastModified = 1449936586123
>>>>>>>> Build-Jdk = 1.7.0_60
>>>>>>>> Built-By = cschneider
>>>>>>>> Created-By = Apache Maven Bundle Plugin
>>>>>>>> Manifest-Version = 1.0
>>>>>>>> Tool = Bnd-2.3.0.201405100607
>>>>>>>>
>>>>>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>>>>>> Bundle-Description = The Apache Software Foundation provides
>>>>>>>> support for
>>>>>>>> the Apache community of open-source software projects. The Apache
>>>>>>>> projects are characterized by a collaborative, consensus based
>>>>>>>> development process, an open and pragmatic software license, and a
>>>>>>>> desire to create high quality software that leads the way in its
>>>>>>>> field.
>>>>>>>> We consider ourselves not simply a group of projects sharing a
>>>>>>>> server, but rather a community of developers and users.
>>>>>>>> Bundle-DocURL =http://www.apache.org/ <http://www.apache.org/>
>>>>>>>> Bundle-License =http://www.apache.org/licenses/LICENSE-2.0.txt <http://www.apache.org/licenses/LICENSE-2.0.txt>
>>>>>>>> Bundle-ManifestVersion = 2
>>>>>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>>>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>>>>>> Bundle-Vendor = The Apache Software Foundation
>>>>>>>> Bundle-Version = 2.3.0
>>>>>>>>
>>>>>>>> Require-Capability =
>>>>>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>>>>>
>>>>>>>> Import-Package =
>>>>>>>> javax.persistence;version="[2.1,3)",
>>>>>>>> javax.persistence.spi;version="[2.1,3)",
>>>>>>>> javax.sql,
>>>>>>>> javax.transaction;version="[1.1,2)",
>>>>>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>>>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>>>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>>>>>> org.osgi.framework;version="[1.6,2)",
>>>>>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>>>>>> org.slf4j;version="[1.7,2)"
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Jean-Baptiste Onofré
>>>>>>> jbonofre@apache.org <ma...@apache.org> <mailto:jbonofre@apache.org <ma...@apache.org>>
>>>>>>> <mailto:jbonofre@apache.org <ma...@apache.org>><mailto:jbonofre@apache.org <ma...@apache.org>>
>>>>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>>>>>> <http://blog.nanthrax.net/ <http://blog.nanthrax.net/>><http://blog.nanthrax.net/ <http://blog.nanthrax.net/>>
>>>>>>> Talend -http://www.talend.com <http://www.talend.com/>
>>>>>>> <http://www.talend.com/ <http://www.talend.com/>><http://www.talend.com/ <http://www.talend.com/>>
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org <ma...@apache.org>
>>>>> <mailto:jbonofre@apache.org <ma...@apache.org>><mailto:jbonofre@apache.org <ma...@apache.org>>
>>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>>>> <http://blog.nanthrax.net/ <http://blog.nanthrax.net/>><http://blog.nanthrax.net/ <http://blog.nanthrax.net/>>
>>>>> Talend -http://www.talend.com <http://www.talend.com/>
>>>>> <http://www.talend.com/ <http://www.talend.com/>><http://www.talend.com/ <http://www.talend.com/>>
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org <ma...@apache.org> <mailto:jbonofre@apache.org <ma...@apache.org>>
>>> http://blog.nanthrax.net <http://blog.nanthrax.net/> <http://blog.nanthrax.net/ <http://blog.nanthrax.net/>>
>>> Talend -http://www.talend.com <http://www.talend.com/> <http://www.talend.com/ <http://www.talend.com/>>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net <http://blog.nanthrax.net/>
> Talend - http://www.talend.com <http://www.talend.com/>
Re: Karaf-4.0.4 - CNF Exception in eclipse link feature.
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Erwin,
maybe Dynamic-Import could work as a workaround.
I gonna check the bundle headers.
Regards
JB
On 02/01/2016 12:53 PM, Erwin Hogeweg wrote:
> Nope.
>
> bundle:install -s
> 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Import-Package=org.apache.aries.jpa.eclipselink.adapter.platform'
>
> Import-Package =
> javax.persistence;version="[2.1,3)",
> javax.persistence.spi;version="[2.1,3)",
> javax.sql,
> javax.transaction;version="[1.1,2)",
> org.eclipse.persistence.platform.server;version="[2.5,3)",
> org.eclipse.persistence.sessions;version="[2.5,3)",
> org.eclipse.persistence.transaction;version="[2.5,3)",
> org.osgi.framework;version="[1.6,2)",
> org.osgi.framework.wiring;version="[1.0,2)",
> org.slf4j;version="[1.7,2)"
>
> Erwin
>
>> On Feb 1, 2016, at 00:50, Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>> wrote:
>>
>> And adding Import-Package to the wrap ?
>>
>> On 02/01/2016 01:21 AM, Erwin Hogeweg wrote:
>>> Thanks JB,
>>>
>>>> As workaround, wrap could help.
>>> Hmmm, wrapping the bundle didn’t seem to solve it.
>>> When I do:
>>> bundle:install -s
>>> 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Export-Package=org.apache.aries.jpa.eclipselink.adapter.platform’
>>>
>>> The bundle headers look exactly the same as from the original bundle.
>>>
>>>
>>> Cheers,
>>>
>>> Erwin
>>>
>>>
>>>>
>>>> On 01/31/2016 07:12 PM, Erwin Hogeweg wrote:
>>>>> Ugh… good call, it is not there.
>>>>>
>>>>> How do I get around this. Do I need to manually hack the MANIFEST?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Erwin
>>>>>
>>>>>
>>>>> Apache Aries JPA Container adapter for EclipseLink (65)
>>>>> -------------------------------------------------------
>>>>> Bnd-LastModified = 1449936586123
>>>>> Build-Jdk = 1.7.0_60
>>>>> Built-By = cschneider
>>>>> Created-By = Apache Maven Bundle Plugin
>>>>> Manifest-Version = 1.0
>>>>> Tool = Bnd-2.3.0.201405100607
>>>>>
>>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>>> Bundle-Description = The Apache Software Foundation provides
>>>>> support for
>>>>> the Apache community of open-source software projects. The Apache
>>>>> projects are characterized by a collaborative, consensus based
>>>>> development process, an open and pragmatic software license, and a
>>>>> desire to create high quality software that leads the way in its field.
>>>>> We consider ourselves not simply a group of projects sharing a
>>>>> server, but rather a community of developers and users.
>>>>> Bundle-DocURL = http://www.apache.org/
>>>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
>>>>> Bundle-ManifestVersion = 2
>>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>>> Bundle-Vendor = The Apache Software Foundation
>>>>> Bundle-Version = 2.3.0
>>>>>
>>>>> Require-Capability =
>>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>>
>>>>> Import-Package =
>>>>> javax.persistence;version="[2.1,3)",
>>>>> javax.persistence.spi;version="[2.1,3)",
>>>>> javax.sql,
>>>>> javax.transaction;version="[1.1,2)",
>>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>>> org.osgi.framework;version="[1.6,2)",
>>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>>> org.slf4j;version="[1.7,2)"
>>>>>
>>>>>
>>>>>> On Jan 31, 2016, at 12:41, Jean-Baptiste Onofré <jb@nanthrax.net
>>>>>> <ma...@nanthrax.net>
>>>>>> <ma...@nanthrax.net>
>>>>>> <ma...@nanthrax.net>> wrote:
>>>>>>
>>>>>> Hi Erwin,
>>>>>>
>>>>>> Did you check the adapter import the eclipselink packages ?
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 01/31/2016 06:33 PM, Erwin Hogeweg wrote:
>>>>>>> All -
>>>>>>>
>>>>>>> I am trying to get the eclipselink feature working in Karaf-4.0.4
>>>>>>> but so
>>>>>>> far no luck. When I use service:get to get the EntityManagerFactory
>>>>>>> service I get a CNF Exception. Digging a little deeper it appears
>>>>>>> that
>>>>>>> the class is available in
>>>>>>> org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>>> but it appears that the package is not exported.
>>>>>>>
>>>>>>> It must be missing something, I believe Christian posted some
>>>>>>> comments
>>>>>>> about the eclipselink feature but I can’t find them anymore.
>>>>>>>
>>>>>>> Any suggestions are greatly appreciated.
>>>>>>>
>>>>>>> BTW… I am using all the default feature versions.
>>>>>>> <feature>jpa</feature>
>>>>>>> <feature>jndi</feature>
>>>>>>> <feature>jdbc</feature>
>>>>>>> <feature>eclipselink</feature>
>>>>>>>
>>>>>>> Erwin
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *karaf*@root()> service:get javax.persistence.EntityManagerFactory
>>>>>>> [EL Severe]: ejb: Exception [EclipseLink-28006] (Eclipse Persistence
>>>>>>> Services - 2.6.1.v20150916-55dc7c3):
>>>>>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>>>>>> Exception Description: ClassNotFound:
>>>>>>> [org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer]
>>>>>>> specified in [eclipselink.target-server] property.
>>>>>>> Internal Exception: java.lang.ClassNotFoundException:
>>>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer not
>>>>>>> found
>>>>>>> by org.eclipse.persistence.jpa [199]
>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>> at
>>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.inspect(CommandSessionImpl.java:358)
>>>>>>> at
>>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:335)
>>>>>>> at
>>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:390)
>>>>>>> at
>>>>>>> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:272)
>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>
>>>>>>>
>>>>>>> *karaf*@root()> feature:info eclipselink
>>>>>>> …
>>>>>>> Feature contains followed bundles:
>>>>>>> …
>>>>>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>>>
>>>>>>> *karaf*@root()> la | grep adapter
>>>>>>> 114 | Active | 80 | 2.3.0 | Apache
>>>>>>> Aries JPA
>>>>>>> Container adapter for EclipseLink
>>>>>>> *
>>>>>>> *
>>>>>>> *karaf*@root()> bundle:classes 114 | grep
>>>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer
>>>>>>> org/apache/aries/jpa/eclipselink/adapter/platform/OSGiTSServer.class
>>>>>>> *karaf*@root()>
>>>>>>>
>>>>>>> *karaf*@root()> bundle:headers 114
>>>>>>>
>>>>>>> Apache Aries JPA Container adapter for EclipseLink (114)
>>>>>>> --------------------------------------------------------
>>>>>>> Bnd-LastModified = 1449936586123
>>>>>>> Build-Jdk = 1.7.0_60
>>>>>>> Built-By = cschneider
>>>>>>> Created-By = Apache Maven Bundle Plugin
>>>>>>> Manifest-Version = 1.0
>>>>>>> Tool = Bnd-2.3.0.201405100607
>>>>>>>
>>>>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>>>>> Bundle-Description = The Apache Software Foundation provides
>>>>>>> support for
>>>>>>> the Apache community of open-source software projects. The Apache
>>>>>>> projects are characterized by a collaborative, consensus based
>>>>>>> development process, an open and pragmatic software license, and a
>>>>>>> desire to create high quality software that leads the way in its
>>>>>>> field.
>>>>>>> We consider ourselves not simply a group of projects sharing a
>>>>>>> server, but rather a community of developers and users.
>>>>>>> Bundle-DocURL =http://www.apache.org/
>>>>>>> Bundle-License =http://www.apache.org/licenses/LICENSE-2.0.txt
>>>>>>> Bundle-ManifestVersion = 2
>>>>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>>>>> Bundle-Vendor = The Apache Software Foundation
>>>>>>> Bundle-Version = 2.3.0
>>>>>>>
>>>>>>> Require-Capability =
>>>>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>>>>
>>>>>>> Import-Package =
>>>>>>> javax.persistence;version="[2.1,3)",
>>>>>>> javax.persistence.spi;version="[2.1,3)",
>>>>>>> javax.sql,
>>>>>>> javax.transaction;version="[1.1,2)",
>>>>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>>>>> org.osgi.framework;version="[1.6,2)",
>>>>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>>>>> org.slf4j;version="[1.7,2)"
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org <ma...@apache.org>
>>>>>> <ma...@apache.org>
>>>>>> http://blog.nanthrax.net
>>>>>> <http://blog.nanthrax.net/><http://blog.nanthrax.net/>
>>>>>> Talend -http://www.talend.com
>>>>>> <http://www.talend.com/><http://www.talend.com/>
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> <ma...@apache.org>
>>>> http://blog.nanthrax.net
>>>> <http://blog.nanthrax.net/><http://blog.nanthrax.net/>
>>>> Talend -http://www.talend.com
>>>> <http://www.talend.com/><http://www.talend.com/>
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>> Talend -http://www.talend.com <http://www.talend.com/>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf-4.0.4 - CNF Exception in eclipse link feature.
Posted by Erwin Hogeweg <er...@me.com>.
Nope.
bundle:install -s 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Import-Package=org.apache.aries.jpa.eclipselink.adapter.platform'
Import-Package =
javax.persistence;version="[2.1,3)",
javax.persistence.spi;version="[2.1,3)",
javax.sql,
javax.transaction;version="[1.1,2)",
org.eclipse.persistence.platform.server;version="[2.5,3)",
org.eclipse.persistence.sessions;version="[2.5,3)",
org.eclipse.persistence.transaction;version="[2.5,3)",
org.osgi.framework;version="[1.6,2)",
org.osgi.framework.wiring;version="[1.0,2)",
org.slf4j;version="[1.7,2)"
Erwin
> On Feb 1, 2016, at 00:50, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>
> And adding Import-Package to the wrap ?
>
> On 02/01/2016 01:21 AM, Erwin Hogeweg wrote:
>> Thanks JB,
>>
>>> As workaround, wrap could help.
>> Hmmm, wrapping the bundle didn’t seem to solve it.
>> When I do:
>> bundle:install -s
>> 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Export-Package=org.apache.aries.jpa.eclipselink.adapter.platform’
>>
>> The bundle headers look exactly the same as from the original bundle.
>>
>>
>> Cheers,
>>
>> Erwin
>>
>>
>>>
>>> On 01/31/2016 07:12 PM, Erwin Hogeweg wrote:
>>>> Ugh… good call, it is not there.
>>>>
>>>> How do I get around this. Do I need to manually hack the MANIFEST?
>>>>
>>>> Thanks,
>>>>
>>>> Erwin
>>>>
>>>>
>>>> Apache Aries JPA Container adapter for EclipseLink (65)
>>>> -------------------------------------------------------
>>>> Bnd-LastModified = 1449936586123
>>>> Build-Jdk = 1.7.0_60
>>>> Built-By = cschneider
>>>> Created-By = Apache Maven Bundle Plugin
>>>> Manifest-Version = 1.0
>>>> Tool = Bnd-2.3.0.201405100607
>>>>
>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>> Bundle-Description = The Apache Software Foundation provides support for
>>>> the Apache community of open-source software projects. The Apache
>>>> projects are characterized by a collaborative, consensus based
>>>> development process, an open and pragmatic software license, and a
>>>> desire to create high quality software that leads the way in its field.
>>>> We consider ourselves not simply a group of projects sharing a
>>>> server, but rather a community of developers and users.
>>>> Bundle-DocURL = http://www.apache.org/
>>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
>>>> Bundle-ManifestVersion = 2
>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>> Bundle-Vendor = The Apache Software Foundation
>>>> Bundle-Version = 2.3.0
>>>>
>>>> Require-Capability =
>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>
>>>> Import-Package =
>>>> javax.persistence;version="[2.1,3)",
>>>> javax.persistence.spi;version="[2.1,3)",
>>>> javax.sql,
>>>> javax.transaction;version="[1.1,2)",
>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>> org.osgi.framework;version="[1.6,2)",
>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>> org.slf4j;version="[1.7,2)"
>>>>
>>>>
>>>>> On Jan 31, 2016, at 12:41, Jean-Baptiste Onofré <jb@nanthrax.net
>>>>> <ma...@nanthrax.net>
>>>>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>> wrote:
>>>>>
>>>>> Hi Erwin,
>>>>>
>>>>> Did you check the adapter import the eclipselink packages ?
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 01/31/2016 06:33 PM, Erwin Hogeweg wrote:
>>>>>> All -
>>>>>>
>>>>>> I am trying to get the eclipselink feature working in Karaf-4.0.4
>>>>>> but so
>>>>>> far no luck. When I use service:get to get the EntityManagerFactory
>>>>>> service I get a CNF Exception. Digging a little deeper it appears that
>>>>>> the class is available in
>>>>>> org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>> but it appears that the package is not exported.
>>>>>>
>>>>>> It must be missing something, I believe Christian posted some comments
>>>>>> about the eclipselink feature but I can’t find them anymore.
>>>>>>
>>>>>> Any suggestions are greatly appreciated.
>>>>>>
>>>>>> BTW… I am using all the default feature versions.
>>>>>> <feature>jpa</feature>
>>>>>> <feature>jndi</feature>
>>>>>> <feature>jdbc</feature>
>>>>>> <feature>eclipselink</feature>
>>>>>>
>>>>>> Erwin
>>>>>>
>>>>>>
>>>>>>
>>>>>> *karaf*@root()> service:get javax.persistence.EntityManagerFactory
>>>>>> [EL Severe]: ejb: Exception [EclipseLink-28006] (Eclipse Persistence
>>>>>> Services - 2.6.1.v20150916-55dc7c3):
>>>>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>>>>> Exception Description: ClassNotFound:
>>>>>> [org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer]
>>>>>> specified in [eclipselink.target-server] property.
>>>>>> Internal Exception: java.lang.ClassNotFoundException:
>>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer not
>>>>>> found
>>>>>> by org.eclipse.persistence.jpa [199]
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>> at
>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.inspect(CommandSessionImpl.java:358)
>>>>>> at
>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:335)
>>>>>> at
>>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:390)
>>>>>> at
>>>>>> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:272)
>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>
>>>>>>
>>>>>> *karaf*@root()> feature:info eclipselink
>>>>>> …
>>>>>> Feature contains followed bundles:
>>>>>> …
>>>>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>>
>>>>>> *karaf*@root()> la | grep adapter
>>>>>> 114 | Active | 80 | 2.3.0 | Apache Aries JPA
>>>>>> Container adapter for EclipseLink
>>>>>> *
>>>>>> *
>>>>>> *karaf*@root()> bundle:classes 114 | grep
>>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer
>>>>>> org/apache/aries/jpa/eclipselink/adapter/platform/OSGiTSServer.class
>>>>>> *karaf*@root()>
>>>>>>
>>>>>> *karaf*@root()> bundle:headers 114
>>>>>>
>>>>>> Apache Aries JPA Container adapter for EclipseLink (114)
>>>>>> --------------------------------------------------------
>>>>>> Bnd-LastModified = 1449936586123
>>>>>> Build-Jdk = 1.7.0_60
>>>>>> Built-By = cschneider
>>>>>> Created-By = Apache Maven Bundle Plugin
>>>>>> Manifest-Version = 1.0
>>>>>> Tool = Bnd-2.3.0.201405100607
>>>>>>
>>>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>>>> Bundle-Description = The Apache Software Foundation provides
>>>>>> support for
>>>>>> the Apache community of open-source software projects. The Apache
>>>>>> projects are characterized by a collaborative, consensus based
>>>>>> development process, an open and pragmatic software license, and a
>>>>>> desire to create high quality software that leads the way in its field.
>>>>>> We consider ourselves not simply a group of projects sharing a
>>>>>> server, but rather a community of developers and users.
>>>>>> Bundle-DocURL = http://www.apache.org/ <http://www.apache.org/>
>>>>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt <http://www.apache.org/licenses/LICENSE-2.0.txt>
>>>>>> Bundle-ManifestVersion = 2
>>>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>>>> Bundle-Vendor = The Apache Software Foundation
>>>>>> Bundle-Version = 2.3.0
>>>>>>
>>>>>> Require-Capability =
>>>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>>>
>>>>>> Import-Package =
>>>>>> javax.persistence;version="[2.1,3)",
>>>>>> javax.persistence.spi;version="[2.1,3)",
>>>>>> javax.sql,
>>>>>> javax.transaction;version="[1.1,2)",
>>>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>>>> org.osgi.framework;version="[1.6,2)",
>>>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>>>> org.slf4j;version="[1.7,2)"
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org <ma...@apache.org>
>>>>> <mailto:jbonofre@apache.org <ma...@apache.org>><mailto:jbonofre@apache.org <ma...@apache.org>>
>>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/> <http://blog.nanthrax.net/ <http://blog.nanthrax.net/>>
>>>>> Talend -http://www.talend.com <http://www.talend.com/> <http://www.talend.com/ <http://www.talend.com/>>
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org <ma...@apache.org> <mailto:jbonofre@apache.org <ma...@apache.org>>
>>> http://blog.nanthrax.net <http://blog.nanthrax.net/> <http://blog.nanthrax.net/ <http://blog.nanthrax.net/>>
>>> Talend -http://www.talend.com <http://www.talend.com/> <http://www.talend.com/ <http://www.talend.com/>>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net <http://blog.nanthrax.net/>
> Talend - http://www.talend.com <http://www.talend.com/>
Re: Karaf-4.0.4 - CNF Exception in eclipse link feature.
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
And adding Import-Package to the wrap ?
On 02/01/2016 01:21 AM, Erwin Hogeweg wrote:
> Thanks JB,
>
>> As workaround, wrap could help.
> Hmmm, wrapping the bundle didn’t seem to solve it.
> When I do:
> bundle:install -s
> 'wrap:mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0/$Export-Package=org.apache.aries.jpa.eclipselink.adapter.platform’
>
> The bundle headers look exactly the same as from the original bundle.
>
>
> Cheers,
>
> Erwin
>
>
>>
>> On 01/31/2016 07:12 PM, Erwin Hogeweg wrote:
>>> Ugh… good call, it is not there.
>>>
>>> How do I get around this. Do I need to manually hack the MANIFEST?
>>>
>>> Thanks,
>>>
>>> Erwin
>>>
>>>
>>> Apache Aries JPA Container adapter for EclipseLink (65)
>>> -------------------------------------------------------
>>> Bnd-LastModified = 1449936586123
>>> Build-Jdk = 1.7.0_60
>>> Built-By = cschneider
>>> Created-By = Apache Maven Bundle Plugin
>>> Manifest-Version = 1.0
>>> Tool = Bnd-2.3.0.201405100607
>>>
>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>> Bundle-Description = The Apache Software Foundation provides support for
>>> the Apache community of open-source software projects. The Apache
>>> projects are characterized by a collaborative, consensus based
>>> development process, an open and pragmatic software license, and a
>>> desire to create high quality software that leads the way in its field.
>>> We consider ourselves not simply a group of projects sharing a
>>> server, but rather a community of developers and users.
>>> Bundle-DocURL = http://www.apache.org/
>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
>>> Bundle-ManifestVersion = 2
>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>> Bundle-Vendor = The Apache Software Foundation
>>> Bundle-Version = 2.3.0
>>>
>>> Require-Capability =
>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>
>>> Import-Package =
>>> javax.persistence;version="[2.1,3)",
>>> javax.persistence.spi;version="[2.1,3)",
>>> javax.sql,
>>> javax.transaction;version="[1.1,2)",
>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>> org.osgi.framework;version="[1.6,2)",
>>> org.osgi.framework.wiring;version="[1.0,2)",
>>> org.slf4j;version="[1.7,2)"
>>>
>>>
>>>> On Jan 31, 2016, at 12:41, Jean-Baptiste Onofré <jb@nanthrax.net
>>>> <ma...@nanthrax.net>
>>>> <ma...@nanthrax.net>> wrote:
>>>>
>>>> Hi Erwin,
>>>>
>>>> Did you check the adapter import the eclipselink packages ?
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 01/31/2016 06:33 PM, Erwin Hogeweg wrote:
>>>>> All -
>>>>>
>>>>> I am trying to get the eclipselink feature working in Karaf-4.0.4
>>>>> but so
>>>>> far no luck. When I use service:get to get the EntityManagerFactory
>>>>> service I get a CNF Exception. Digging a little deeper it appears that
>>>>> the class is available in
>>>>> org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>> but it appears that the package is not exported.
>>>>>
>>>>> It must be missing something, I believe Christian posted some comments
>>>>> about the eclipselink feature but I can’t find them anymore.
>>>>>
>>>>> Any suggestions are greatly appreciated.
>>>>>
>>>>> BTW… I am using all the default feature versions.
>>>>> <feature>jpa</feature>
>>>>> <feature>jndi</feature>
>>>>> <feature>jdbc</feature>
>>>>> <feature>eclipselink</feature>
>>>>>
>>>>> Erwin
>>>>>
>>>>>
>>>>>
>>>>> *karaf*@root()> service:get javax.persistence.EntityManagerFactory
>>>>> [EL Severe]: ejb: Exception [EclipseLink-28006] (Eclipse Persistence
>>>>> Services - 2.6.1.v20150916-55dc7c3):
>>>>> org.eclipse.persistence.exceptions.EntityManagerSetupException
>>>>> Exception Description: ClassNotFound:
>>>>> [org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer]
>>>>> specified in [eclipselink.target-server] property.
>>>>> Internal Exception: java.lang.ClassNotFoundException:
>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer not
>>>>> found
>>>>> by org.eclipse.persistence.jpa [199]
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>> at
>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.inspect(CommandSessionImpl.java:358)
>>>>> at
>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:335)
>>>>> at
>>>>> org.apache.felix.gogo.runtime.CommandSessionImpl.format(CommandSessionImpl.java:390)
>>>>> at
>>>>> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:272)
>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>
>>>>>
>>>>> *karaf*@root()> feature:info eclipselink
>>>>> …
>>>>> Feature contains followed bundles:
>>>>> …
>>>>> mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/2.3.0
>>>>>
>>>>> *karaf*@root()> la | grep adapter
>>>>> 114 | Active | 80 | 2.3.0 | Apache Aries JPA
>>>>> Container adapter for EclipseLink
>>>>> *
>>>>> *
>>>>> *karaf*@root()> bundle:classes 114 | grep
>>>>> org.apache.aries.jpa.eclipselink.adapter.platform.OSGiTSServer
>>>>> org/apache/aries/jpa/eclipselink/adapter/platform/OSGiTSServer.class
>>>>> *karaf*@root()>
>>>>>
>>>>> *karaf*@root()> bundle:headers 114
>>>>>
>>>>> Apache Aries JPA Container adapter for EclipseLink (114)
>>>>> --------------------------------------------------------
>>>>> Bnd-LastModified = 1449936586123
>>>>> Build-Jdk = 1.7.0_60
>>>>> Built-By = cschneider
>>>>> Created-By = Apache Maven Bundle Plugin
>>>>> Manifest-Version = 1.0
>>>>> Tool = Bnd-2.3.0.201405100607
>>>>>
>>>>> Bundle-Activator = org.apache.aries.jpa.eclipselink.adapter.Activator
>>>>> Bundle-Description = The Apache Software Foundation provides
>>>>> support for
>>>>> the Apache community of open-source software projects. The Apache
>>>>> projects are characterized by a collaborative, consensus based
>>>>> development process, an open and pragmatic software license, and a
>>>>> desire to create high quality software that leads the way in its field.
>>>>> We consider ourselves not simply a group of projects sharing a
>>>>> server, but rather a community of developers and users.
>>>>> Bundle-DocURL = http://www.apache.org/
>>>>> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
>>>>> Bundle-ManifestVersion = 2
>>>>> Bundle-Name = Apache Aries JPA Container adapter for EclipseLink
>>>>> Bundle-SymbolicName = org.apache.aries.jpa.eclipselink.adapter
>>>>> Bundle-Vendor = The Apache Software Foundation
>>>>> Bundle-Version = 2.3.0
>>>>>
>>>>> Require-Capability =
>>>>> osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
>>>>>
>>>>> Import-Package =
>>>>> javax.persistence;version="[2.1,3)",
>>>>> javax.persistence.spi;version="[2.1,3)",
>>>>> javax.sql,
>>>>> javax.transaction;version="[1.1,2)",
>>>>> org.eclipse.persistence.platform.server;version="[2.5,3)",
>>>>> org.eclipse.persistence.sessions;version="[2.5,3)",
>>>>> org.eclipse.persistence.transaction;version="[2.5,3)",
>>>>> org.osgi.framework;version="[1.6,2)",
>>>>> org.osgi.framework.wiring;version="[1.0,2)",
>>>>> org.slf4j;version="[1.7,2)"
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> <ma...@apache.org>
>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>>>> Talend -http://www.talend.com <http://www.talend.com/>
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>> Talend -http://www.talend.com <http://www.talend.com/>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com