Ok, again don't know what you are actually doing here, but! First of all just install the war feature, everything else will be installed with it! Second, only choose one way of installing: 1a) Install by shell console with install -s mvn:groupId/artifactId/version/war if it's a OSGi-Ready war ! 1b) Install non-osgi war by shell command with install -s webbundle:mvn:groupId/artifactId/version/war?Webapp-Context=webApp 2) Drop it in the deploy folder!
Now, one more thing, I think one did write this already. DON'T USE THE CAMEL-WAR as it's not going to work! If you want to use Camel inside Karaf there are far more easier samples around, there is even a maven-archetype for creating camel-blueprint bundles. regards, Achim 2013/5/7 kasthuri rajan <[email protected]> > Hi, > > Im still getting the below exception while trying to deploy the WAR file. > > org.apache.karaf.shell.console.MultiException: Error installing bundles: > Unable to install bundle > > war:mvn:org.apache.camel/camel-example-servlet-tomcat-2.10.4.war?Bundle-SymbolicName=org.apache.camel.camel-example-servlet-tomcat&Webapp-Context=/camel > at > > org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91) > at > > org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[24:org.apache.karaf.shell.osgi:2.3.1] > at > > org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.1] > at > > org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.1] > at > > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.1] > > Can you pls let me know what is the exact command used for deploying a WAR > file in Karaf & also i have already installed the WAR features. > > Installing feature war 2.3.1 > Installing feature http-whiteboard 2.3.1 > Found installed bundle: org.apache.karaf.shell.web_2.3.1 [78] > Found installed bundle: org.apache.karaf.management.mbeans.web_2.3.1 [79] > Found installed bundle: org.ops4j.pax.web.pax-web-jsp_1.1.12 [80] > Found installed bundle: org.ops4j.pax.web.pax-web-extender-war_1.1.12 [81] > Found installed bundle: org.ops4j.pax.web.pax-web-deployer_1.1.12 [82] > Found installed bundle: org.ops4j.pax.url.war_1.3.5 [83] > karaf@root> osgi:list |grep -i war > karaf@root> la|grep -i wrap > [ 2] [Active ] [ ] [ ] [ 5] OPS4J Pax Url - wrap: > (1.3 > .5) > [ 44] [Active ] [Created ] [ ] [ 30] Apache Karaf :: > Deployer : > : Wrap Non OSGi Jar (2.3.1) > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Facing-issues-while-deploying-a-WAR-file-tp4028568p4028574.html > Sent from the Karaf - Dev mailing list archive at Nabble.com. > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/>
