[jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao commented on KARAF-4912:
---

Have just tested. The fix works.

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


[jira] [Commented] (KARAF-4913) Upgrade to Pax-Web 6.0.1

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck commented on KARAF-4913:
---

This is only a snapshot version, this issue needs to be opened until a release 
of Pax-web 6.0.1 is available. 

> Upgrade to Pax-Web 6.0.1 
> -
>
> Key: KARAF-4913
> URL: https://issues.apache.org/jira/browse/KARAF-4913
> Project: Karaf
>  Issue Type: Dependency upgrade
>  Components: karaf-webcontainer
>Affects Versions: 4.1.0
>Reporter: Achim Nierbeck
>Assignee: Achim Nierbeck
> Fix For: 4.1.0
>
>
> Upgrade to version 6.0.1-SNAPSHOT first, this is a requirement to fix 
> KARAF-4912



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


[jira] [Work started] (KARAF-4913) Upgrade to Pax-Web 6.0.1

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Work on KARAF-4913 started by Achim Nierbeck.
-
> Upgrade to Pax-Web 6.0.1 
> -
>
> Key: KARAF-4913
> URL: https://issues.apache.org/jira/browse/KARAF-4913
> Project: Karaf
>  Issue Type: Dependency upgrade
>  Components: karaf-webcontainer
>Affects Versions: 4.1.0
>Reporter: Achim Nierbeck
>Assignee: Achim Nierbeck
> Fix For: 4.1.0
>
>
> Upgrade to version 6.0.1-SNAPSHOT first, this is a requirement to fix 
> KARAF-4912



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


[jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck commented on KARAF-4912:
---

will do so for 6.0.1

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


[jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao commented on KARAF-4912:
---

Thanks. Do you plan to use the up-to-date jetty version 9.3.15.v20161220 in 
pax-web? There have been lots of fixes since jetty 9.3.11.

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


[jira] [Comment Edited] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck edited comment on KARAF-4912 at 1/1/17 1:00 PM:
---

I opened https://ops4j1.jira.com/browse/PAXWEB-1047 to track this. 
This upgrade does have some rather not so nice implications. 
ASM is an alpha version. 
Pax-Web requires xbeans in a newer version (XBEAN-296) also, but those are also 
only SNAPSHOT versions. 
In the end if we want to be JDK9 compliant it requires quite some 
synchronization between different projects. 


was (Author: achim_nierbeck):
I opened https://ops4j1.jira.com/browse/PAXWEB-1047 to track this. 

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


[jira] [Created] (KARAF-4913) Upgrade to Pax-Web 6.0.1

2017-01-01 Thread Achim Nierbeck (JIRA)
Achim Nierbeck created KARAF-4913:
-

 Summary: Upgrade to Pax-Web 6.0.1 
 Key: KARAF-4913
 URL: https://issues.apache.org/jira/browse/KARAF-4913
 Project: Karaf
  Issue Type: Dependency upgrade
  Components: karaf-webcontainer
Affects Versions: 4.1.0
Reporter: Achim Nierbeck
Assignee: Achim Nierbeck
 Fix For: 4.1.0


Upgrade to version 6.0.1-SNAPSHOT first, this is a requirement to fix KARAF-4912



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


[jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck commented on KARAF-4912:
---

I opened https://ops4j1.jira.com/browse/PAXWEB-1047 to track this. 

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


[jira] [Updated] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck updated KARAF-4912:
--
Component/s: karaf-webcontainer

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


[jira] [Assigned] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Achim Nierbeck (JIRA)

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

Achim Nierbeck reassigned KARAF-4912:
-

Assignee: Achim Nierbeck

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


[jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao commented on KARAF-4912:
---

Note that the problem does not exist in JDK 8.

> 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
>Affects Versions: 4.1.0
> Environment: Linux (Ubuntu 12.4)
> Java 9 (JDK and JRE 9 - ea+149)
>Reporter: Lijun Liao
> 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)


[jira] [Commented] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao commented on KARAF-4912:
---

Notice that karaf and pax-web use different major versions of ASM. Karaf uses 
version 6.0_ALPHA and pax-web uses the version 5.0.2.

> 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
>Affects Versions: 4.1.0
> Environment: Linux (Ubuntu 12.4)
> Java 9 (JDK and JRE 9 - ea+149)
>Reporter: Lijun Liao
> 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)


[jira] [Updated] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao updated KARAF-4912:
--
Description: 
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
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}

  was:
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
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}


> 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
>Affects Versions: 4.1.0
> Environment: Linux (Ubuntu 12.4)
> Java 9 (JDK and JRE 9 - ea+149)
>Reporter: Lijun Liao
> 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
> 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)


[jira] [Updated] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao updated KARAF-4912:
--
Description: 
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}

  was:
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
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}


> 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
>Affects Versions: 4.1.0
> Environment: Linux (Ubuntu 12.4)
> Java 9 (JDK and JRE 9 - ea+149)
>Reporter: Lijun Liao
> 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)


[jira] [Updated] (KARAF-4912) Cannot register Servlet via http-whiteboard under Java 9

2017-01-01 Thread Lijun Liao (JIRA)

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

Lijun Liao updated KARAF-4912:
--
Attachment: ServletTest-src.zip
karaf.log
ServletTest-0.0.1.jar

> 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
>Affects Versions: 4.1.0
> Environment: Linux (Ubuntu 12.4)
> Java 9 (JDK and JRE 9 - ea+149)
>Reporter: Lijun Liao
> 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
> 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)