Content of the jar created by camel example sql is correct RedHat-MacBook:target chmoulli$ jar -tf camel-example-sql-2.11-SNAPSHOT.jar META-INF/MANIFEST.MF META-INF/ META-INF/DEPENDENCIES META-INF/LICENSE META-INF/LICENSE.txt META-INF/NOTICE META-INF/NOTICE.txt META-INF/maven/ META-INF/maven/org.apache.camel/ META-INF/maven/org.apache.camel/camel-example-sql/ META-INF/maven/org.apache.camel/camel-example-sql/pom.properties META-INF/maven/org.apache.camel/camel-example-sql/pom.xml META-INF/org.apache.karaf.shell.features/ META-INF/org.apache.karaf.shell.features/features.xml META-INF/spring/ META-INF/spring/camel-context.xml log4j.properties org/ org/apache/ org/apache/camel/ org/apache/camel/example/ org/apache/camel/example/sql/ org/apache/camel/example/sql/DatabaseBean.class org/apache/camel/example/sql/OrderBean.class sql.properties
On Mon, Jan 21, 2013 at 12:00 PM, Guillaume Nodet <gno...@gmail.com> wrote: > I think the problem is in the generated bundle, which I suppose create a > wrong jar. > Can you run a jar -tf on the generated bundle ? > > > On Mon, Jan 21, 2013 at 11:35 AM, Charles Moulliard <ch0...@gmail.com > >wrote: > > > Hi, > > > > For a reason that I don't know, when I try to deploy a bundle containing > a > > feature file, the process does not succeed > > > > Command used > > > > install -s feature:mvn:org.apache.camel/camel-example-sql/2.11-SNAPSHOT > > > > Bundle contains the features file here under > > > > META-INF/org.apache.karaf.shell.features/features.xml > > > > remark : directory name = org.apache.karaf.shell.features > > > > In debug mode, I see that Felix looks for the following entry --> > > META-INF/org.apache.karaf.shell.features/2.11-SNAPSHOT and of course > > returns empty list here in the code > > > > FeatureDeploymentListener > > > > public void bundleChanged(BundleEvent bundleEvent) { > > Bundle bundle = bundleEvent.getBundle(); > > if (bundleEvent.getType() == BundleEvent.INSTALLED || > > bundleEvent.getType() == BundleEvent.RESOLVED || bundleEvent.getType() == > > BundleEvent.STARTED) { > > try { > > List<URL> urls = new ArrayList<URL>(); > > Enumeration featuresUrlEnumeration = > > bundle.findEntries("/META-INF/" + FEATURE_PATH + "/", "*.xml", false); > > while (featuresUrlEnumeration != null && > > featuresUrlEnumeration.hasMoreElements()) { > > > > Why bundle version has been added ? Is there a trick to avoid that ? > > > > Regards, > > > > -- > > Charles Moulliard > > Apache Committer / Sr. Enterprise Architect (RedHat) > > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com > > > > > > > -- > ------------------------ > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > FuseSource, Integration everywhere > http://fusesource.com > -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com