Hi,
you don't need to transform the war as a WAB.
You can directly deploy the war using the webbundle URL:
karaf@root()> bundle:install -s
"webbundle:http://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war?Bundle-SymbolicName=tomcat-sample&Web-ContextPath=/sample"
However, you don't leverage OSGi in that case.
If you want to leverage OSGi (like splitting the war in small bundles
providing services, and just provide a small wab without anything in the
web-inf/lib thanks to the import package, etc), you have to refactore
your application.
Regards
JB
On 07/16/2014 11:43 PM, parker wrote:
Hello,
To use a .WAR project in OSGi I need : Pax web or IAS WAR to WAB.
That transform a .WAR project in one OSGi bundle.
I have a big WAR project . How to to use this big WAR in Karaf ?
I think the best way is to shrink the big war in many small WAR projects and
to deploy each small projects in Apacke Karaf.
What do you think ?
How OSGi using apache Karaf can help me with a big WAR project ?
Thanks,
P.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Transform-a-big-WAR-project-in-OSGI-tp4034260.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com