karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: Simple OPS4J PAx WAR on Karaf 2.4 doesn't work
Date Fri, 28 Aug 2015 10:41:48 GMT
Thx JB.

Redeployed and that works now -->

karaf@root> install -s
webbundle:file:///Users/chmoulli/Temp/poc-demos-test/kibana-3.1.2/src/main/webapp/kibana.war?Web-ContextPath=/kibana3
Bundle ID: 89
karaf@root> list
START LEVEL 100 , List Threshold: 50
   ID   State         Blueprint      Level  Name
[  85] [Active     ] [            ] [   80] OPS4J Pax Web - Samples -
Spring War sample (6.0.0.SNAPSHOT)
[  86] [Active     ] [            ] [   80] tomcat-sample (0)
[  89] [Active     ] [            ] [   80]
file____Users_chmoulli_Temp_poc-demos-test_kibana-3.1.2_src_main_webapp_kibana.war
(0)
karaf@root> web:list
   ID   State         Web-State       Level  Web-ContextPath           Name
[  85] [Active     ] [Deployed   ]  [   80] [/sample-spring          ]
OPS4J Pax Web - Samples - Spring War sample (6.0.0.SNAPSHOT)
[  86] [Active     ] [Deployed   ]  [   80] [/sample                 ]
tomcat-sample (0)
[  89] [Active     ] [Deployed   ]  [   80] [/kibana3                ]
file____Users_chmoulli_Temp_poc-demos-test_kibana-3.1.2_src_main_webapp_kibana.war
(0)

dabou:~/Temp/poc-demos-test/kibana-3.1.2/src/main/webapp$ http
http://localhost:8181/kibana3/index.html

HTTP/1.1 200 OK
Content-Type: text/html
ETag: 1440758390843
Server: Jetty(8.1.17.v20150415)
Transfer-Encoding: chunked

<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">
    <title>Kibana 3{{dashboard.current.title ? " -
"+dashboard.current.title : ""}}</title>

On Fri, Aug 28, 2015 at 12:25 PM, Jean-Baptiste Onofré <jb@nanthrax.net>
wrote:

> Hi Charles,
>
> Webapp-Context header is deprecated, you have to use Web-ContextPath
> instead.
>
> Regards
> JB
>
>
> On 08/28/2015 12:08 PM, Charles Moulliard wrote:
>
>> Hi,
>>
>> I try to deploy a simple war file (coming from the project of OPS4J -
>> Pax Web) but I can't access it from a browser
>>
>> The war is well deployed and registered under /sample)
>>
>>
>> webbundle:file:///Users/chmoulli/Code/github/pax/pax-web/samples/war-simple/target/war-simple-6.0.0-SNAPSHOT.war?Webapp-Context=/sample
>>
>> Here is the scenario followed
>>
>> https://gist.github.com/cmoulliard/7041894be429e76c2ab0
>>
>> What could be the problem ?
>>
>> Regards,
>>
>> --
>> Charles Moulliard
>> Apache Committer / Architect @RedHat
>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
>> <http://cmoulliard.github.io>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Mime
View raw message