karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9
Date Wed, 04 Jan 2017 13:48:58 GMT

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

Achim Nierbeck commented on KARAF-4912:
---------------------------------------

Event though this issue has been addressed by a Pax-web 6.0.1 snapshot version. 
We decided to move against a full support of JDK9 (see also dev mailinglist) 
As ASM 6.0 is still ALPHA and a lot of other projects also need to make sure they are JDK9
compatible (not even released yet) 
We can't have this for a Karaf 4.1, JDK 9 full support will be targeted for Karaf 4.2, because
of all those dependencies. 

sorry for the inconvenience. 

> Cannot register Servlet via http-whiteboard under Java 9
> --------------------------------------------------------
>
>                 Key: KARAF-4912
>                 URL: https://issues.apache.org/jira/browse/KARAF-4912
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature, karaf-webcontainer
>    Affects Versions: 4.1.0
>         Environment: Linux (Ubuntu 12.4)
> Java 9 (JDK and JRE 9 - ea+149)
>            Reporter: Lijun Liao
>            Assignee: Achim Nierbeck
>             Fix For: 4.1.0
>
>         Attachments: ServletTest-0.0.1.jar, ServletTest-src.zip, karaf.log
>
>
> Under JDK / JRE 9 (tested with ea+149), it is impossibile to register the servlet via
http-whiteboard.
> Steps to reproduce the problem:
> 1. Delete the folder data
> 2. Start karaf {code}bin/karaf{code}
> 3. Install feature http-whiteboard {code}feature:install http-whiteboard{code}
> 3. Copy the attached ServletTest.jar to $KARAF_HOME/deploy. The blueprint configuration
tells karaf to register a servlet under the alias "/hw".
> 4. Open the browser and go to http://localhost:8181/hw, you will get an error.
> And ERROR message as follows will be logged in the data/log/karaf.log.
> {code}
> 2017-01-01T12:34:06,862 | ERROR | fileinstall-/.../apache-karaf-4.1.0-SNAPSHOT/deploy
| WebApplication                   | 97 - org.ops4j.pax.web.pax-web-extender-whiteboard -
6.0.0 | Registration skipped for [ServletWebElement{mapping=DefaultServletMapping{httpContextId=null,urlPatterns=null,initParams={},servlet=foo.HelloWorldServlet@61a63ed6,
alias=/hw, servletNamenull}}] due to error during registration
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message