[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-10 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on KARAF-5509:


Commit ca5254d3e569fdcc8ee7b56d9273fa44992fc386 in karaf's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=ca5254d ]

Merge pull request #653 from jbonofre/KARAF-5509

[KARAF-5509] Add HTTP resource example

> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-10 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on KARAF-5509:


Commit ca5254d3e569fdcc8ee7b56d9273fa44992fc386 in karaf's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=ca5254d ]

Merge pull request #653 from jbonofre/KARAF-5509

[KARAF-5509] Add HTTP resource example

> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-10 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on KARAF-5509:


Commit e13d89a94ba938efc489b2a02a0e19b0fa79e3d4 in karaf's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=e13d89a ]

[KARAF-5509] Add HTTP resource example


> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | Apache Karaf :: KAR :: Core
>  36 | Active   |  30 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on KARAF-5509:
---

jbonofre closed pull request #653: [KARAF-5509] Add HTTP resource example
URL: https://github.com/apache/karaf/pull/653
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/examples/karaf-http-resource-example/README.md 
b/examples/karaf-http-resource-example/README.md
new file mode 100644
index 00..3911c0e74d
--- /dev/null
+++ b/examples/karaf-http-resource-example/README.md
@@ -0,0 +1,68 @@
+
+# Apache Karaf HTTP Resource Example
+
+## Abstract
+
+Apache Karaf supports HTTP resources artifact. It's very simple bundle that 
just register an empty resource service.
+
+The actual resources (images, static HTML pages, ...) are in a folder in the 
bundle.
+The resource service properties configures the location of the resource and 
the HTTP context (pattern or HTTP location) where to expose these resources.
+
+## Artifacts
+
+* **karaf-http-resource-example-whiteboard** is a HTTP resource bundle that 
use an empty resource service (using SCR) to be taken by the Karaf HTTP service 
whiteboard.
+* **karaf-http-resource-example-features** is a features repository used for 
the deployment.
+
+## Build
+
+The build uses Apache Maven. Simply use:
+
+```
+mvn clean install
+```
+
+## Features and Deployment
+
+On a running Karaf instance, register the features repository:
+
+```
+karaf@root()> feature:repo-add 
mvn:org.apache.karaf.examples/karaf-http-resource-example-features/4.2.2-SNAPSHOT/xml
+```
+
+Then, you can install the `karaf-http-resource-example-whiteboard` feature:
+
+```
+karaf@root()> feature:install karaf-http-resource-example-whiteboard
+```
+
+## Usage
+
+The `karaf-http-resource-example-whiteboard` registers HTTP resource pattern.
+
+You can see it using `http:list` command:
+
+```
+karaf@root()> http:list 
+ID │ Servlet │ Servlet-Name  │ State   │ Alias  │ Url
+───┼─┼───┼─┼┼─
+54 │ ResourceServlet │ /example/*:/resources │ Deployed│ /example/* │ 
[/example/*]
+```
+
+You can acces the resources using your browser on 
http://localhost:8181/example/index.html URL.
\ No newline at end of file
diff --git 
a/examples/karaf-http-resource-example/karaf-http-resource-example-features/pom.xml
 
b/examples/karaf-http-resource-example/karaf-http-resource-example-features/pom.xml
new file mode 100644
index 00..0742f6fec9
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-features/pom.xml
@@ -0,0 +1,99 @@
+
+http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
+
+
+
+4.0.0
+
+
+org.apache.karaf.examples
+karaf-http-resource-example
+4.2.2-SNAPSHOT
+../pom.xml
+
+
+karaf-http-resource-example-features
+Apache Karaf :: Examples :: HTTP Resource :: Features
+pom
+
+
+
+
+src/main/feature
+true
+${project.build.directory}/feature
+
+
+
+
+org.apache.maven.plugins
+maven-resources-plugin
+
+
+
+resources
+
+
+
+
+
+
+org.codehaus.mojo
+build-helper-maven-plugin
+
+
+attach-artifacts
+package
+
+attach-artifact
+
+
+
+
+target/feature/feature.xml
+xml
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git 
a/examples/karaf-http-resource-example/karaf-http-resource-example-features/src/main/feature/feature.xml
 
b/examples/karaf-http-resource-example/karaf-http-resource-example-features/src/main/feature/feature.xml
new file mode 100644
index 00..147f7309bd
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-features/src/main/feature/feature.xml
@@ -0,0 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-10 Thread JIRA


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

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

Tested successfully with the example I gonna add in the distribution (see 
corresponding PR).

> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | Apache Karaf :: KAR :: Core
>  36 | Active   |  30 | 4.1.3 | Apache Karaf :: Log :: Core
>  37 | Active   |  30 | 4.1.3 | Apache Karaf :: Management
>  38 | 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-09 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on KARAF-5509:
---

jbonofre opened a new pull request #653: [KARAF-5509] Add HTTP resource example
URL: https://github.com/apache/karaf/pull/653
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-08 Thread JIRA


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

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

I gonna test but it should be fix on 4.1.7 with PAX Web update.

> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | Apache Karaf :: KAR :: Core
>  36 | Active   |  30 | 4.1.3 | Apache Karaf :: Log :: Core
>  37 | Active   |  30 | 4.1.3 | Apache Karaf :: Management
>  38 | Active   |  30 | 4.1.3 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2018-11-07 Thread JIRA


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

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

By the way, I'm adding an example about http resources in the Karaf 
distribution.

> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>  Labels: webcontainer
> Fix For: 4.2.2, 4.1.7
>
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> {code}
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | Apache Karaf :: KAR :: Core
>  36 | Active   |  30 | 4.1.3 | Apache Karaf :: Log :: Core
>  37 | Active   |  30 | 4.1.3 | Apache Karaf :: Management
>  38 | Active   |  30 

[jira] [Commented] (KARAF-5509) http-whiteboard resources are not published properly

2017-11-28 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck commented on KARAF-5509:
---

might be related to this issue: 
https://ops4j1.jira.com/browse/PAXWEB-1085

> http-whiteboard resources are not published properly
> 
>
> Key: KARAF-5509
> URL: https://issues.apache.org/jira/browse/KARAF-5509
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-scr
>Affects Versions: 4.1.3, 4.2.0.M1
>Reporter: Alexander Domke
>Assignee: Jean-Baptiste Onofré
>
> Hello everybody,
> the feature http-whiteboard does not work as expected.
> I have built a simple osgi application (jar bundle) with the following 
> component:
> {code:java}
> import org.osgi.service.component.annotations.Component;
> @Component (service = HomepageResources.class, property = 
> {"osgi.http.whiteboard.resource.pattern = / static / *",
> "osgi.http.whiteboard.resource.prefix = / static"})
> public class HomepageResources {}
> {code}
> After installing the http-whiteboard and scr features my bundle is active but 
> my resource is not available at http://localhost:8181/static/img/profile.png.
> Apache Karaf bundle:list output - All bundles are active / no exceptions in 
> log
> START LEVEL 100 , List Threshold: 0
>  ID | State| Lvl | Version   | Name
> +--+-+---+-
>   0 | Active   |   0 | 5.6.8 | System Bundle, Fragments: 1
>   1 | Resolved |   1 | 4.1.3 | Apache Karaf :: Features :: 
> Extension, Hosts: 0
>   2 | Active   |   5 | 1.1.4 | Apache Felix Metatype Service
>   3 | Active   |   5 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: EventAdmin
>   4 | Active   |   5 | 2.5.3 | OPS4J Pax Url - aether:
>   5 | Active   |   8 | 1.10.1| OPS4J Pax Logging - API
>   6 | Active   |   8 | 1.10.1| OPS4J Pax Logging - Log4j v2
>   7 | Active   |  10 | 1.8.16| Apache Felix Configuration 
> Admin Service
>   8 | Active   |  11 | 3.5.8 | Apache Felix File Install
>   9 | Active   |  15 | 4.1.3 | Apache Karaf :: Features :: 
> Core
>  10 | Active   |  20 | 1.0.1 | Apache Aries Blueprint API
>  11 | Active   |  20 | 1.1.0 | Apache Aries Blueprint CM
>  12 | Active   |  20 | 1.8.3 | Apache Aries Blueprint Core
>  13 | Active   |  30 | 1.1.5 | Apache Aries JMX API
>  14 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint API
>  15 | Active   |  30 | 1.1.5 | Apache Aries JMX Blueprint Core
>  16 | Active   |  30 | 1.1.7 | Apache Aries JMX Core
>  17 | Active   |  30 | 1.1.5 | Apache Aries Whiteboard 
> support for JMX DynamicMBean services
>  18 | Active   |  20 | 1.1.1 | Apache Aries Proxy Service
>  19 | Active   |  20 | 1.1.3 | Apache Aries Util
>  20 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: 
> BlueprintStateService
>  21 | Active   |  30 | 4.1.3 | Apache Karaf :: Bundle :: Core
>  22 | Active   |  30 | 4.1.3 | Apache Karaf :: ConfigAdmin :: 
> Core
>  23 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Blueprint
>  24 | Active   |  26 | 4.1.3 | Apache Karaf :: Deployer :: 
> Features
>  25 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Karaf Archive (.kar)
>  26 | Active   |  24 | 4.1.3 | Apache Karaf :: Deployer :: 
> Wrap Non OSGi Jar
>  27 | Active   |  30 | 4.1.3 | Apache Karaf :: Diagnostic :: 
> Core
>  28 | Active   |  80 | 4.1.3 | Apache Karaf :: OSGi Services 
> :: Event
>  29 | Active   |  30 | 4.1.3 | Apache Karaf :: Features :: 
> Command
>  30 | Active   |  30 | 4.1.3 | Apache Karaf :: Instance :: 
> Core
>  31 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: 
> Blueprint :: Config
>  32 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Command
>  33 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Config
>  34 | Active   |  30 | 4.1.3 | Apache Karaf :: JAAS :: Modules
>  35 | Active   |  30 | 4.1.3 | Apache Karaf :: KAR :: Core
>  36 | Active   |  30 | 4.1.3 | Apache Karaf :: Log :: Core
>  37 | Active   |  30 | 4.1.3 | Apache Karaf :: Management
>  38 | Active   |  30 | 4.1.3 | Apache Karaf :: Package :: Core
>  39 | Active   |  30 | 4.1.3 | Apache Karaf ::