You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2016/01/04 07:53:39 UTC

[jira] [Commented] (KARAF-3985) ArrayIndexOutOfBoundsException is thrown after configure http/https and limit access from localhost,127.0.0.1

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

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

It should now be fixed with Pax Web 4.2.4 (already included in Karaf for 4.0.4). Let me check.

> ArrayIndexOutOfBoundsException is thrown after configure http/https and limit access from localhost,127.0.0.1
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-3985
>                 URL: https://issues.apache.org/jira/browse/KARAF-3985
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 4.0.1
>         Environment: Java 7
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.4
>
>         Attachments: keystore.jks
>
>
> Configure http/https and limit access from localhost,127.0.0.1 in etc/org.ops4j.pax.web.cfg
> {code}
> org.osgi.service.http.port=8181
> org.osgi.service.http.port.secure=8443
> org.osgi.service.http.secure.enabled=true
> org.ops4j.pax.web.ssl.keystore=${karaf.base}/etc/keystores/keystore.jks
> org.ops4j.pax.web.ssl.password=password
> org.ops4j.pax.web.ssl.keypassword=password
> javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
> org.ops4j.pax.web.config.file=${karaf.base}/etc/jetty.xml
> org.ops4j.pax.web.listening.addresses=localhost,127.0.0.1
> {code}
> (also put keystore.jks into etc/keystore.jks)
> Start karaf 4.0.1 and feature:install webconsole
> then will got
> {code}
> 2015-09-11 15:27:19,491 | ERROR | pool-37-thread-1 | Activator                        | 91 - org.ops4j.pax.web.pax-web-runtime - 4.2.0 | Unable to start pax web server: 1
> java.lang.ArrayIndexOutOfBoundsException: 1
> 	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:503)[90:org.ops4j.pax.web.pax-web-jetty:4.2.0]
> 	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[90:org.ops4j.pax.web.pax-web-jetty:4.2.0]
> 	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:700)[90:org.ops4j.pax.web.pax-web-jetty:4.2.0]
> 	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[90:org.ops4j.pax.web.pax-web-jetty:4.2.0]
> 	at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:351)[91:org.ops4j.pax.web.pax-web-runtime:4.2.0]
> 	at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:293)[91:org.ops4j.pax.web.pax-web-runtime:4.2.0]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_80]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_80]
> 	at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
> {code}
> and nothing listening on 8181/8443.



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