Description
Pax-Web is started under the wrong port and not the port which is definied in the configfile "org.ops4j.pax.web.cfg". In the config the port 8181 is default configured and the log-message says:
2020-06-16T17:05:32,567 | INFO | paxweb-extender-2-thread-1 | AbstractConnector | 126 - org.eclipse.jetty.util - 9.4.28.v20200408 | Started default@4a6298d4{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Steps to reproduce:
- Start a fresh Karaf 4.2.9
- Add activemq-repo: repo-add activemq
- Install activemq-broker: feature:install activemq-broker
- Pax-Web is now running with port 8080 and not 8181 as expected
These steps works most of the time, but not everytime though.
Another thing: When I try to edit the config-file "org.ops4j.pax.web.cfg" to set another port the following message appears in the log:
2020-06-17T09:26:02,379 | INFO | fileinstall-/home/nne01/karafs/apache-karaf-4.2.9/etc | fileinstall | 10 - org.apache.felix.fileinstall - 3.6.6 | Updating configuration from org.ops4j.pax.web.cfg
2020-06-17T09:26:02,382 | ERROR | CM Configuration Updater (Update: pid=org.ops4j.pax.web) | configadmin | 9 - org.apache.felix.configadmin - 1.9.16 | Cannot use configuration org.ops4j.pax.web for [org.osgi.service.cm.ManagedService, id=174, bundle=153/mvn:org.ops4j.pax.web/pax-web-runtime/7.2.16]: No visibility to configuration bound to mvn:org.apache.felix/org.apache.felix.fileinstall/3.6.6
The only thing to get this working is to move the config-file out of the etc-folder and then move it back into the etc-folder...
Attachments
Issue Links
- is blocked by
-
KARAF-6788 Upgrade to Felix FileInstall 3.6.8
- Resolved