On 06/21/2012 02:11 PM, Jean-Baptiste Onofré wrote:
Hi Ramesh,

your paste contains your Maven pom.xml, not the blueprint descriptor.

The blueprint descriptor is a XML located into the OSGI-INF/blueprint folder of your bundle.

Regards
JB

On 06/21/2012 09:04 PM, ramesh wrote:
On 06/21/2012 01:53 PM, Jean-Baptiste Onofré wrote:
Hi Ramesh,

could you share your blueprint description (in OSGI-INF/blueprint of
your bundle) ?

Regards
JB

On 06/21/2012 08:44 PM, ramesh wrote:
On 06/21/2012 09:49 AM, ramesh wrote:
I am running Karaf 2.2.7 and trying to register a basic bundle with
blueprint. But its failing to register. I see there are around 11 log
files karaf.log to karaf.log.11.

I don't see much information in those logs that I understand.

But when I run display-exception , this is what I get

org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
found: version
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:471)[17:org.apache.karaf.shell.console:2.2.7]


at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[17:org.apache.karaf.shell.console:2.2.7]


at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[17:org.apache.karaf.shell.console:2.2.7]


at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[17:org.apache.karaf.shell.console:2.2.7]


at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[17:org.apache.karaf.shell.console:2.2.7]


at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[17:org.apache.karaf.shell.console:2.2.7]


at
org.apache.karaf.shell.console.jline.Console.run(Console.java:166)[17:org.apache.karaf.shell.console:2.2.7]


at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]


Thanks
regards,
Ramesh
Is display-exception the best way to find why the bundle blueprint
fails ?
I am showing this exception now after I updated path to local
dependencies.

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)[:1.6.0_26]
at java.util.ArrayList.get(ArrayList.java:322)[:1.6.0_26]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.checkDirectives(BlueprintContainerImpl.java:182)[10:org.apache.aries.blueprint:0.3.1]


at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:248)[10:org.apache.aries.blueprint:0.3.1]


at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]


at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_26]


at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_26]


at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_26]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_26]


at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_26]


at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_26]


at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_26]


at java.lang.Thread.run(Thread.java:662)[:1.6.0_26]

Any help would be appreciated.

best regards,
Ramesh

Hi JB,

Thanks for responding. Actually I followed your post
http://blog.nanthrax.net/2011/08/jax-rs-services-using-cxf-and-karaf/
This is a very similar attempt with CXF and blueprint.

Here is the blueprint.xml

http://pastebin.com/wXx23E0S

sorry .. my bad.

Here is the blueprint .. osgi/invite-service.xml

<http://pastebin.com/index/ZziaVieR> http://pastebin.com/ZziaVieR

regards,
Ramesh

Reply via email to