karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-6231) http feature does not work
Date Tue, 09 Apr 2019 12:06:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16813308#comment-16813308
] 

Jean-Baptiste Onofré commented on KARAF-6231:
---------------------------------------------

I just updated the documentation on website. Thanks again !

> http feature does not work
> --------------------------
>
>                 Key: KARAF-6231
>                 URL: https://issues.apache.org/jira/browse/KARAF-6231
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.4
>         Environment: Centos 7
> uname -a: Linux whistler 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
> java version "1.8.0_131"
> Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
>            Reporter: Erik Brakkee
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: features
>         Attachments: karaf.log.save
>
>
> When I install karaf and immediately after that install the http feature, then the feature
list shows the feature is installed and started. However, nothing appears to be listening
on the HTTP port. 
> Steps:
>  * download apache karaf 4.2.4
>  * tar xvzf ~/downloads/apache-karaf-4.2.4.tar.gz
>  * cd apache-karaf-4.2.4/bin/
>  * ./karaf
>  * karaf@root()> feature:list -i # shows that feature is not installed
>  * karaf@root()> feature:install http # installs http feature
>  * karaf@root()> feature:list -i # shows feature installed
> {quote}{\{karaf@root()> feature:list -i }}
>  {{Name | Version | Required | State | Repository | Description}}
>  {{-----------------++----------------------------++----------------------------------+--------------------------------------------------}}
>  {{feature | 4.2.4 | x | Started | standard-4.2.4 | Features Support}}
>  {{shell | 4.2.4 | x | Started | standard-4.2.4 | Karaf Shell}}
>  {{deployer | 4.2.4 | x | Started | standard-4.2.4 | Karaf Deployer}}
>  {{bundle | 4.2.4 | x | Started | standard-4.2.4 | Provide Bundle support}}
>  {{config | 4.2.4 | x | Started | standard-4.2.4 | Provide OSGi ConfigAdmin support}}
>  {{diagnostic | 4.2.4 | x | Started | standard-4.2.4 | Provide Diagnostic support}}
>  {{instance | 4.2.4 | x | Started | standard-4.2.4 | Provide Instance support}}
>  {{jaas | 4.2.4 | x | Started | standard-4.2.4 | Provide JAAS support}}
>  {{log | 4.2.4 | x | Started | standard-4.2.4 | Provide Log support}}
>  {{package | 4.2.4 | x | Started | standard-4.2.4 | Package commands and mbeans}}
>  {{service | 4.2.4 | x | Started | standard-4.2.4 | Provide Service support}}
>  {{system | 4.2.4 | x | Started | standard-4.2.4 | Provide System support}}
>  {{http | 4.2.4 | x | Started | standard-4.2.4 | Implementation of the OSGI HTTP Service}}
>  {{pax-http-service | 7.2.8 | | Started | standard-4.2.4 | Pax-Web OSGi HTTP Service}}
>  {{kar | 4.2.4 | x | Started | standard-4.2.4 | Provide KAR (KARaf archive) support}}
>  {{ssh | 4.2.4 | x | Started | standard-4.2.4 | Provide a SSHd server on Karaf}}
>  {{management | 4.2.4 | x | Started | standard-4.2.4 | Provide a JMX MBeanServer and
a set of MBeans in}}
>  {{eventadmin | 4.2.4 | x | Started | standard-4.2.4 | OSGi Event Admin service specification
for event-}}
>  {{scr | 4.2.4 | | Started | standard-4.2.4 | Declarative Service support}}
>  {{wrap | 2.6.1 | x | Started | standard-4.2.4 | Wrap URL handler}}
>  {{pax-web-core | 7.2.8 | | Started | org.ops4j.pax.web-7.2.8 | Provide Core pax-web
bundles}}
>  {{pax-jetty | 9.4.12.v20180830 | | Started | org.ops4j.pax.web-7.2.8 | Provide Jetty
engine support}}
>  {{pax-http-jetty | 7.2.8 | | Started | org.ops4j.pax.web-7.2.8 |}}
>  {{pax-http | 7.2.8 | | Started | org.ops4j.pax.web-7.2.8 | Implementation of the OSGI
HTTP Service}}
> {quote}
>  
> Now connecting the log file data/log/karaf.log shows that the HTTP port 8181 is used
> {quote}{{2019-04-09T08:23:56,685 | INFO | paxweb-config-1-thread-1 | JettyServerImpl
| 80 - org.ops4j.pax.web.pax-web-jetty - 7.2.8 | Pax Web available at [0.0.0.0]:[8181]}}
> {quote}
> However, opening [http://localhost:8181|http://localhost:8181/] in the browser does
not work. 
> Netstat also shows that karaf is not listening on port 8181
>  
> {quote}erik@whistler:~/dev/ttt/apache-karaf-4.2.4/data/log> netstat -anp | grep 18000
>  (Not all processes could be identified, non-owned process info
>  will not be shown, you would have to be root to see it all.)
>  tcp6 0 0 :::44444 :::* LISTEN 18000/java 
>  tcp6 0 0 :::8101 :::* LISTEN 18000/java 
>  tcp6 0 0 127.0.0.1:1099 :::* LISTEN 18000/java 
>  tcp6 0 0 127.0.0.1:46860 :::* LISTEN 18000/java 
>  tcp6 0 0 :::44855 :::* LISTEN 18000/java 
>  unix 2 [ ] STREAM CONNECTED 1081708 18000/java 
>  unix 3 [ ] STREAM CONNECTED 1085937 18000/java 
>  unix 2 [ ] STREAM CONNECTED 1076602 18000/java 
>  unix 3 [ ] STREAM CONNECTED 1085938 18000/java 
>  unix 3 [ ] STREAM CONNECTED 1086950 18000/java 
>  unix 3 [ ] STREAM CONNECTED 1091189 18000/java 
>  unix 3 [ ] STREAM CONNECTED 1086951 18000/java 
>  unix 3 [ ] STREAM CONNECTED 1091190 18000/java
> The log file shows no exceptions. 
>  
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message