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] [Resolved] (KARAF-5509) http-whiteboard resources are not published properly
Date Sat, 10 Nov 2018 17:16:00 GMT

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

Jean-Baptiste Onofré resolved KARAF-5509.
-----------------------------------------
    Resolution: Fixed

> 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)

Mime
View raw message