How to use warref with mvn protocol to convert war into an OSGI bundle

Solution Verified - Updated -

Issue

  • When trying to install war on JBoss Fuse 6.2.1 using warref with mvn protocol, but got below exception.
JBossFuse:karaf@root> osgi:install warref:jar:mvn:com.test/Test/1.0.0-SNAPSHOT!/Sample.bnd
[ERROR] Could not expand event
java.lang.IllegalArgumentException: !/Sample.bnd: event not found
    at jline.console.ConsoleReader.expandEvents(ConsoleReader.java:779)
    at jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:631)
    at jline.console.ConsoleReader.accept(ConsoleReader.java:2019)
    at jline.console.ConsoleReader.readLine(ConsoleReader.java:2666)
    at jline.console.ConsoleReader.readLine(ConsoleReader.java:2269)
    at org.apache.karaf.shell.console.jline.Console.readAndParseCommand(Console.java:270)
    at org.apache.karaf.shell.console.jline.Console.run(Console.java:193)
    at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content