Hello dears, I'm new to Karaf and starting to experiment it in order to migrate our JEE application to the OSGi environment offered by Karaf.
I have finished OSGi-fying our application modules and have created few features to ease the deployment. Our first features have been deployed successfully into Karaf. However, I'm getting the above error when trying to deploy OpenJPA bundle as feature (features:install) while the deployment goes okay when I deploy it directly as a normal bundle (install + start). *1. When following below procedure, all is ok:* 1.1. bin/karaf clean 1.2. features:addurl mvn:com.natisco/com.natisco.persistence.kernel.commons.features/0.1-SNAPSHOT/xml/features 1.3. features:install openjpa-prereq 1.4. install mvn:org.apache.openjpa/openjpa/2.0.0 Bundle ID: 59 1.5. start 59 *2. When following below procedure, I got the error 'Manifest not present in the first entry of the zip mvn:org.apache.openjpa/openjpa/2.0.0'* 1.1. bin/karaf clean 1.2. features:addurl mvn:com.natisco/com.natisco.persistence.kernel.commons.features/0.1-SNAPSHOT/xml/features 1.3. features:install openjpa-prereq 1.4. features:install openjpa Error executing command: Manifest not present in the first entry of the zip mvn:org.apache.openjpa/openjpa/2.0.0 *3. My features file is as follows:* <features name="com.natisco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" xsi:schemaLocation=" http://karaf.apache.org/xmlns/features/v1.0.0 http://karaf.apache.org/xmlns/features/v1.0.0 " > <feature name="openjpa-prereq" version="${project.version}"> <feature>transaction</feature> <feature>jpa</feature> <feature>jndi</feature> <bundle>mvn:commons-lang/commons-lang/${commonsLangVersion}</bundle> <bundle>mvn:commons-collections/commons-collections/${commonsCollectionsVersion}</bundle> <bundle>mvn:commons-pool/commons-pool/${commonsPoolVersion}</bundle> </feature> <feature name="openjpa" version="${project.version}"> <bundle>mvn:org.apache.openjpa/openjpa/${openjpaVersion}</bundle> </feature> </features> *4. My environment is as follows:* 4.1. Apache Karaf: Version: 2.2.1 4.2. java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) 4.3. uname -a Linux meknes 2.6.35.13-92.fc14.i686 #1 SMP Sat May 21 17:39:42 UTC 2011 i686 i686 i386 GNU/Linux Warm regards Younes
