Hi,

If your war is a pure war (not an OSGi one), you have to use webbundle url protocol:

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";

You can find details about WebContainer in the user guide:

http://karaf.apache.org/manual/latest/users-guide/webcontainer.html

Regards
JB

On 07/08/2014 08:06 PM, parker wrote:
Hi,

With Karaf 3 I can deploy wab project and war project.
I have made a no OSGi web project . I want to deploy that on Karaf 3. How to
do it ?

Using netbeans ,  I have made a war file from my web project and I have
install on Karaf 3 the .war project using that : bundle:install -s
file:/path/myproject.war
I have no error for the install.
But  I can't see that working when I go to http://localhost:8181/myproject .

Then Why that don't work? What is the problem ?

Thank you for your advice and help,






--
View this message in context: 
http://karaf.922171.n3.nabble.com/deploy-a-war-web-project-on-karaf-don-t-work-tp4034063.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

Reply via email to