[ 
https://issues.apache.org/jira/browse/KARAF-5509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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 0000000000..3911c0e74d
--- /dev/null
+++ b/examples/karaf-http-resource-example/README.md
@@ -0,0 +1,68 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+# 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 0000000000..0742f6fec9
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-features/pom.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="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";>
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.karaf.examples</groupId>
+        <artifactId>karaf-http-resource-example</artifactId>
+        <version>4.2.2-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>karaf-http-resource-example-features</artifactId>
+    <name>Apache Karaf :: Examples :: HTTP Resource :: Features</name>
+    <packaging>pom</packaging>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/feature</directory>
+                <filtering>true</filtering>
+                <targetPath>${project.build.directory}/feature</targetPath>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>resources</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <!--
+            <plugin>
+                <groupId>org.apache.karaf.tooling</groupId>
+                <artifactId>karaf-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>verify</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>verify</goal>
+                        </goals>
+                        <configuration>
+                            <descriptors>
+                                
<descriptor>file:${project.build.directory}/feature/feature.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>target/feature/feature.xml</file>
+                                    <type>xml</type>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
\ 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 0000000000..147f7309bd
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-features/src/main/feature/feature.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<features name="karaf-http-resource-example-${project.version}" 
xmlns="http://karaf.apache.org/xmlns/features/v1.4.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.4.0";>
+    
+    <feature name="karaf-http-resource-example-whiteboard" 
version="${project.version}">
+        <feature>scr</feature>
+        <feature>http-whiteboard</feature>
+        
<bundle>mvn:org.apache.karaf.examples/karaf-http-resource-example-whiteboard/${project.version}</bundle>
+    </feature>
+
+</features>
diff --git 
a/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/pom.xml
 
b/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/pom.xml
new file mode 100644
index 0000000000..7bbdc17b6d
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/pom.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="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";>
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.karaf.examples</groupId>
+        <artifactId>karaf-http-resource-example</artifactId>
+        <version>4.2.2-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>karaf-http-resource-example-whiteboard</artifactId>
+    <name>Apache Karaf :: Examples :: HTTP Resource :: Whiteboard</name>
+    <packaging>bundle</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>osgi.cmpn</artifactId>
+            <version>6.0.0</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
\ No newline at end of file
diff --git 
a/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/src/main/java/org/apache/karaf/examples/http/resource/whiteboard/ExampleResource.java
 
b/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/src/main/java/org/apache/karaf/examples/http/resource/whiteboard/ExampleResource.java
new file mode 100644
index 0000000000..cf74244671
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/src/main/java/org/apache/karaf/examples/http/resource/whiteboard/ExampleResource.java
@@ -0,0 +1,20 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.karaf.examples.http.resource.whiteboard;
+
+import org.osgi.service.component.annotations.Component;
+
+@Component(service = ExampleResource.class, property = 
{"osgi.http.whiteboard.resource.pattern=/example/*", 
"osgi.http.whiteboard.resource.prefix=/resources"})
+public class ExampleResource {
+}
diff --git 
a/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/src/main/resources/resources/index.html
 
b/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/src/main/resources/resources/index.html
new file mode 100644
index 0000000000..93cbc30402
--- /dev/null
+++ 
b/examples/karaf-http-resource-example/karaf-http-resource-example-whiteboard/src/main/resources/resources/index.html
@@ -0,0 +1,25 @@
+<html>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<head>
+    <title>Resource Example</title>
+</head>
+<body>
+<h2>Resource Example</h2>
+</body>
+</html>
\ No newline at end of file
diff --git a/examples/karaf-http-resource-example/pom.xml 
b/examples/karaf-http-resource-example/pom.xml
new file mode 100644
index 0000000000..b5de08af61
--- /dev/null
+++ b/examples/karaf-http-resource-example/pom.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="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";>
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You under the Apache License, Version 2.0
+        (the "License"); you may not use this file except in compliance with
+        the License.  You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.karaf.examples</groupId>
+        <artifactId>apache-karaf-examples</artifactId>
+        <version>4.2.2-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>karaf-http-resource-example</artifactId>
+    <name>Apache Karaf :: Examples :: HTTP Resource</name>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>karaf-http-resource-example-whiteboard</module>
+        <module>karaf-http-resource-example-features</module>
+    </modules>
+
+</project>
\ No newline at end of file
diff --git a/examples/pom.xml b/examples/pom.xml
index 04f86a5aea..32ccb8a75b 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -34,33 +34,34 @@
     <packaging>pom</packaging>
 
     <modules>
-        <module>karaf-bundle-example</module>
         <module>karaf-blueprint-example</module>
-        <module>karaf-scr-example</module>
         <module>karaf-branding-example</module>
+        <module>karaf-bundle-example</module>
+        <!-- <module>karaf-camel-example</module> -->
+        <!-- <module>karaf-cdi-example</module> -->
         <module>karaf-command-example</module>
-        <module>karaf-mbean-example</module>
-        <module>karaf-url-namespace-handler-example</module>
-        <module>karaf-log-appender-example</module>
         <module>karaf-deployer-example</module>
         <module>karaf-dump-example</module>
+        <!-- <module>karaf-encryption-example</module> -->
+        <module>karaf-http-resource-example</module>
+        <module>karaf-log-appender-example</module>
         <!-- <module>karaf-jaas-config-example</module> -->
         <!-- <module>karaf-jaas-login-module-example</module> -->
-        <!-- <module>karaf-encryption-example</module> -->
-        <module>karaf-servlet-example</module>
-        <module>karaf-war-example</module>
-        <!-- <module>karaf-jndi-example</module> -->
         <module>karaf-jdbc-example</module>
         <module>karaf-jms-example</module>
+        <!-- <module>karaf-jndi-example</module> -->
         <module>karaf-jpa-example</module>
-        <!-- <module>karaf-cdi-example</module> -->
-        <module>karaf-rest-example</module>
-        <module>karaf-soap-example</module>
-        <module>karaf-scheduler-example</module>
-        <module>karaf-maven-example</module>
-        <!-- <module>karaf-camel-example</module> -->
         <module>karaf-itest-example</module>
+        <module>karaf-maven-example</module>
+        <module>karaf-mbean-example</module>
         <module>karaf-profile-example</module>
+        <module>karaf-url-namespace-handler-example</module>
+        <module>karaf-rest-example</module>
+        <module>karaf-servlet-example</module>
+        <module>karaf-scheduler-example</module>
+        <module>karaf-scr-example</module>
+        <module>karaf-soap-example</module>
+        <module>karaf-war-example</module>
     </modules>
 
 </project>
diff --git 
a/itests/test/src/test/java/org/apache/karaf/itests/examples/HttpResourceExampleTest.java
 
b/itests/test/src/test/java/org/apache/karaf/itests/examples/HttpResourceExampleTest.java
new file mode 100644
index 0000000000..abbe8838d7
--- /dev/null
+++ 
b/itests/test/src/test/java/org/apache/karaf/itests/examples/HttpResourceExampleTest.java
@@ -0,0 +1,62 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.karaf.itests.examples;
+
+import org.apache.karaf.itests.KarafTestSupport;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.junit.PaxExam;
+import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
+import org.ops4j.pax.exam.spi.reactors.PerMethod;
+
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+@RunWith(PaxExam.class)
+@ExamReactorStrategy(PerMethod.class)
+public class HttpResourceExampleTest extends KarafTestSupport {
+
+    @Test
+    public void test() throws Exception {
+        
addFeaturesRepository("mvn:org.apache.karaf.examples/karaf-http-resource-example-features/"
 + System.getProperty("karaf.version") + "/xml");
+
+        installAndAssertFeature("karaf-http-resource-example-whiteboard");
+
+        String command = executeCommand("http:list");
+        System.out.println(command);
+        assertContains("ResourceServlet", command);
+
+        URL url = new URL("http://localhost:"; + getHttpPort() + 
"/example/index.html");
+        HttpURLConnection connection = (HttpURLConnection) 
url.openConnection();
+        connection.setRequestMethod("GET");
+        connection.setDoInput(true);
+
+        BufferedReader reader = new BufferedReader(new 
InputStreamReader(connection.getInputStream()));
+        String line;
+        StringBuffer buffer = new StringBuffer();
+        while ((line = reader.readLine()) != null) {
+            buffer.append(line);
+        }
+
+        String output = buffer.toString();
+        System.out.println(output);
+        assertContains("<h2>Resource Example</h2>", output);
+    }
+
+}


 

----------------------------------------------------------------
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 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 :: Service :: Core
>  40 | Active   |  30 | 4.1.3                 | Apache Karaf :: Shell :: 
> Various Commands
>  41 | Resolved |  30 | 4.1.3                 | Apache Karaf :: Shell :: 
> Console, Hosts: 42
>  42 | Active   |  30 | 4.1.3                 | Apache Karaf :: Shell :: Core, 
> Fragments: 41
>  43 | Active   |  30 | 4.1.3                 | Apache Karaf :: Shell :: SSH
>  44 | Active   |  30 | 4.1.3                 | Apache Karaf :: Shell :: Table
>  45 | Active   |  30 | 4.1.3                 | Apache Karaf :: System :: Core
>  46 | Active   |  30 | 0.3.11.1              | Apache ServiceMix :: Bundles 
> :: not-yet-commons-ssl
>  47 | Active   |  30 | 1.6.0                 | Apache Mina SSHD :: Core
>  48 | Active   |  30 | 1.16.0                | jansi
>  49 | Active   |  30 | 3.5.0                 | JLine Bundle
>  50 | Active   |  20 | 5.2                   | ASM all classes with debug info
>  51 | Active   |   5 | 2.5.3                 | OPS4J Pax Url - wrap:
>  52 | Active   |  30 | 3.0.0                 | Expression Language 3.0 API
>  53 | Active   |  30 | 1.4.4                 | JavaMail API (compat)
>  54 | Active   |  30 | 3.1.0                 | Java Servlet API
>  55 | Active   |  30 | 1.1                   | WebSocket server API
>  56 | Active   |  30 | 1.0.2                 | Apache Aries SPI Fly Dynamic 
> Weaving Bundle
>  57 | Active   |  30 | 2.0.12                | Apache Felix Declarative 
> Services
>  58 | Active   |  30 | 1.0.4                 | Apache Felix Declarative 
> Services Compatibility Extension
>  59 | Active   |  30 | 1.1                   | Java Authentication SPI for 
> Containers
>  60 | Active   |  30 | 1.1.1                 | geronimo-jta_1.1_spec
>  61 | Active   |  30 | 4.1.3                 | Apache Karaf :: HTTP :: Core
>  62 | Active   |  30 | 4.1.3                 | Apache Karaf :: SCR :: Shell 
> Commands
>  63 | Active   |  30 | 4.1.3                 | Apache Karaf :: SCR :: 
> Management MBeans
>  64 | Active   |  30 | 4.1.3                 | Apache Karaf :: SCR :: Bundle 
> State
>  65 | Active   |  20 | 4.1.0                 | Apache XBean OSGI Bundle 
> Utilities
>  66 | Active   |  20 | 4.1.0                 | Apache XBean :: Classpath 
> Resource Finder
>  67 | Active   |  30 | 3.10.0.v20140604-1726 | Eclipse Compiler for Java(TM)
>  68 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Asynchronous HTTP 
> Client
>  69 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Continuation
>  70 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Deployers
>  71 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Http Utility
>  72 | Active   |  30 | 9.3.14.v20161028      | Jetty :: IO Utility
>  73 | Active   |  30 | 9.3.14.v20161028      | Jetty :: JAAS
>  74 | Active   |  30 | 9.3.14.v20161028      | Jetty :: JMX Management
>  75 | Active   |  30 | 9.3.14.v20161028      | Jetty :: JNDI Naming
>  76 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Plus
>  77 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Rewrite Handler
>  78 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Security
>  79 | Active   |  30 | 9.3.14.v20161028      | Jetty :: JASPI Security
>  80 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Server Core
>  81 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Servlet Handling
>  82 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Utility Servlets and 
> Filters
>  83 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Utilities
>  84 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Utilities :: 
> Ajax(JSON)
>  85 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Webapp Application 
> Support
>  86 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: API
>  87 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: Client
>  88 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: Common
>  89 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: 
> javax.websocket :: Client Implementation
>  90 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: 
> javax.websocket.server :: Server Implementation
>  91 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: Server
>  92 | Active   |  30 | 9.3.14.v20161028      | Jetty :: Websocket :: Servlet 
> Interface
>  93 | Active   |  30 | 9.3.14.v20161028      | Jetty :: XML utilities
>  94 | Active   |  30 | 6.0.7                 | OPS4J Pax Web - API
>  95 | Active   |  30 | 6.0.7                 | OPS4J Pax Web - Extender - 
> Whiteboard
>  96 | Active   |  30 | 6.0.7                 | OPS4J Pax Web - Jetty
>  97 | Active   |  30 | 6.0.7                 | OPS4J Pax Web - Jsp Support
>  98 | Active   |  30 | 6.0.7                 | OPS4J Pax Web - Runtime
>  99 | Active   |  30 | 6.0.7                 | OPS4J Pax Web - Service SPI
> 100 | Active   |  80 | 1.0.0.201711041906    | com.example.karaf.homepage     
>  my test bundle
> {code}
> My test bundle works great in Apache Felix 5.6.8 and with the following 
> extensions:
> Apache Felix 5.6.8:
> {code}
>     0|Active     |    0|org.apache.felix.framework (5.6.8)
>     1|Active     |    1|org.fusesource.jansi (1.16.0)
>     2|Active     |    1|org.jline (3.3.0)
>     3|Active     |    1|org.apache.felix.bundlerepository (2.0.10)
>     4|Active     |    1|org.apache.felix.gogo.command (1.0.2)
>     5|Active     |    1|org.apache.felix.gogo.jline (1.0.6)
>     6|Active     |    1|org.apache.felix.gogo.runtime (1.0.6)
>     7|Active     |    1|org.apache.felix.configadmin (1.8.16)
>     9|Active     |    1|org.apache.felix.eventadmin (1.4.10)
>    10|Active     |    1|org.apache.felix.http.api (3.0.0)
>    11|Active     |    1|org.apache.felix.http.servlet-api (1.1.2)
>    12|Active     |    1|org.apache.felix.http.jetty (3.4.4)
>    13|Active     |    1|org.apache.felix.http.whiteboard (3.0.0)
>    14|Active     |    1|org.apache.felix.scr (2.0.12)
>    16|Active     |    1|org.apache.felix.webconsole (4.3.4.all)
>    17|Active     |    1|com.example.karaf.homepage (1.0.0.201711041906)    my 
> test bundle
>    18|Active     |    1|org.apache.felix.log (1.0.1)
> {code}
> The resource is available at http://localhost:8080/static/img/profile.png.
> Could someone prove the issue?
> Thank you



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

Reply via email to