Hello Please show me your entire:
- etc/org.ops4j.pax.web.cfg - etc/jetty.xml - logs I've just checked with Karaf 4.4.1 and this SSL configuration works fine: org.osgi.service.http.secure.enabled = true org.osgi.service.http.port.secure = 8443 org.ops4j.pax.web.ssl.truststore = ${karaf.etc}/server.keystore org.ops4j.pax.web.ssl.truststore.password = xxx org.ops4j.pax.web.ssl.truststore.type = JKS org.ops4j.pax.web.ssl.keystore = ${karaf.etc}/server.keystore org.ops4j.pax.web.ssl.keystore.password = xxx org.ops4j.pax.web.ssl.keystore.type = JKS org.ops4j.pax.web.ssl.key.password = xxx org.ops4j.pax.web.ssl.key.alias = server if you want SSL, you seem to be missing keystore configuration. regards Grzegorz Grzybek pon., 7 lis 2022 o 11:31 Vamsikrishna Koka <vamshikrishn...@motivitylabs.com.invalid> napisaĆ(a): > Hi Team, > > I have migrated KARAF (from 4.2.15 to 4.4.1) and JDK (Open JDK 8 to > OpenJDK 11) along with required dependency also. As per KARAF release NOTE. > > There is issue with jetty xml configuration and org.ops4j.pax.web.cfg. > > > > *Jetty.xml file* > > > <Call name="addConnector"> > > <Arg> > > <New id="sslConnector" > class="org.eclipse.jetty.server.ServerConnector"> > > <Arg name="server"><Ref refid="Server" /></Arg> > > <Arg name="acceptors" type="int"><Property > name="jetty.ssl.acceptors" deprecated="ssl.acceptors" default="-1"/></Arg> > > <Arg name="selectors" type="int"><Property > name="jetty.ssl.selectors" deprecated="ssl.selectors" default="-1"/></Arg> > > <Arg name="factories"> > > <Array > type="org.eclipse.jetty.server.ConnectionFactory"> > > <!-- uncomment to support proxy protocol > > <Item> > > <New > class="org.eclipse.jetty.server.ProxyConnectionFactory"/> > > </Item>--> > > </Array> > > </Arg> > > <Set name="host"><Property name="jetty.ssl.host" > deprecated="jetty.host" /></Set> > > <Set name="port"><Property name="jetty.ssl.port" > deprecated="ssl.port" default="8443"/></Set> > > <Set name="name">127.0.0.1:8443</Set> > > <Set name="idleTimeout"><Property > name="jetty.ssl.idleTimeout" deprecated="ssl.timeout" > default="30000"/></Set> > > <Set name="soLingerTime"><Property > name="jetty.ssl.soLingerTime" deprecated="ssl.soLingerTime" > default="-1"/></Set> > > <Set name="acceptorPriorityDelta"><Property > name="jetty.ssl.acceptorPriorityDelta" > deprecated="ssl.acceptorPriorityDelta" default="0"/></Set> > > <Set name="acceptQueueSize"><Property > name="jetty.ssl.acceptQueueSize" deprecated="ssl.acceptQueueSize" > default="0"/></Set> > > </New> > > </Arg> > > </Call> > > > > > > *org.ops4j.pax.web.cfg* > > > > org.osgi.service.http.port=8181 > > org.osgi.service.http.secure.enabled=true > > org.osgi.service.http.port.secure=8443 > > org.ops4j.pax.web.listening.addresses=127.0.0.1 > > org.ops4j.pax.web.config.file = ${karaf.home}/etc/jetty.xml > > org.ops4j.pax.web.session.timeout=30 > > > > > > The above configuration *perfectly working* on KARAF 4.2.15 version both > jetty *9.4.43* and pax web *7.2.29. *So, I have migrated jetty and Pax > web dependency part of the KARAF upgrade 4.4.1 version. > > > > Tried to start KARAF 4.4.1 server on console logs, I have seen *More > than one HttpConfiguration found in external Jetty configuration. Using > HttpConfiguration and Failed to bind to /127.0.0.1:8443 > <http://127.0.0.1:8443>. *Understand some where latest PAX Web also > started container with port 8443*. *If I change port my login page does > not able to land on browser. > > > > *Difference b/w Pax-Web 7.2.29 and 8.0.6 version.* > > *Pax-Web 7.2.29* > > > > OPS4J Pax Web - APIorg.ops4j.pax.web.pax-web-api > > 7.2.29 Active > > OPS4J Pax Web - Deployment Descriptor > Modelorg.ops4j.pax.web.pax-web-descriptor 7.2.29 > Active > > OPS4J Pax Web - Extender - > WARorg.ops4j.pax.web.pax-web-extender-war > 7.2.29 Active > > OPS4J Pax Web - Extender - > Whiteboardorg.ops4j.pax.web.pax-web-extender-whiteboard 7.2.29 > Active > > OPS4J Pax Web - FileInstall > Deployerorg.ops4j.pax.web.pax-web-deployer > 7.2.29 Active > > OPS4J Pax Web - Jettyorg.ops4j.pax.web.pax-web-jetty > > 7.2.29 Active > > OPS4J Pax Web - Jsp Supportorg.ops4j.pax.web.pax-web-jsp > 7.2.29 Active > > OPS4J Pax Web - Runtimeorg.ops4j.pax.web.pax-web-runtime > 7.2.29 Active > > OPS4J Pax Web - Service SPIorg.ops4j.pax.web.pax-web-spi > 7.2.29 Active > > > > > > *karaf@root()> list -s -t 0 | grep "org.ops4j.pax.web"* > > > > 252 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-api > > 253 | Resolved | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-compatibility-el2 > > 254 | Resolved | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-compatibility-servlet31 > > 255 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-extender-war > > 256 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-jetty > > 257 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-jsp > > 258 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-runtime > > 259 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-spi > > 260 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-tomcat-common > > 261 | Active | 30 | 8.0.6 | > org.ops4j.pax.web.pax-web-websocket > > > > ERROR : Tried to restart the above bundle 253 AND 254. I got the an error > Caused by: org.osgi.framework.BundleException: Fragment bundles can not be > started. > > > > karaf@root()> start 253 > > 15:52:07.302 [Karaf local console user karaf] ERROR > org.apache.karaf.shell.support.ShellUtil - Exception caught while executing > command > > org.apache.karaf.shell.support.MultiException: Error executing command on > bundles: > > Error starting bundle 253: Fragment bundles can not be started. > > at > org.apache.karaf.shell.support.MultiException.throwIf(MultiException.java:61) > ~[?:?] > > at > org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:70) > ~[?:?] > > at > org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) > ~[?:?] > > at > org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) > ~[?:?] > > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) > ~[?:?] > > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) > ~[?:?] > > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] > > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) > ~[?:?] > > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) > ~[?:?] > > at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] > > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?] > > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?] > > at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > ~[?:?] > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > ~[?:?] > > at java.lang.Thread.run(Thread.java:834) ~[?:?] > > Suppressed: java.lang.Exception: Error starting bundle 253: > Fragment bundles can not be started. > > at > org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:67) > ~[?:?] > > at > org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:55) > ~[?:?] > > at > org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) > ~[?:?] > > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) > ~[?:?] > > at > org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) > ~[?:?] > > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?] > > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) > ~[?:?] > > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?] > > at > org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?] > > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) > ~[?:?] > > at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) > ~[?:?] > > at > java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > ~[?:?] > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > ~[?:?] > > at java.lang.Thread.run(Thread.java:834) ~[?:?] > > Caused by: org.osgi.framework.BundleException: Fragment bundles > can not be started. > > at > org.apache.felix.framework.Felix.startBundle(Felix.java:2175) ~[?:?] > > at > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006) ~[?:?] > > at > org.apache.karaf.bundle.command.Start.executeOnBundle(Start.java:38) ~[?:?] > > at > org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:65) > ~[?:?] > > ... 14 more > > Error executing command: Error executing command on bundles: > > Error starting bundle 253: Fragment bundles can not be started. > > > > > > Please can any one take a look at once. Why I could not able to start my > port number which is defined in jetty.xml file. > > > > Thanks, > * VamsiKrishna* > > > Mob: +91 9381078936 > > > [image: Motivitylabs - Enabling Mobile Enterprises] > > *US: *222 W. Las Colinas Blvd. > Suite 755 East > Irving, TX 75039 > Ph:+1-214-730-0798 > > *INDIA:* 9th & 10th floor, Water Mark Building, Kondapur, Hitech City, > Hyderabad 500 084, Telangana. > Ph:+91-40-4651-5454 > > *Confidentiality Note:* This message is confidential. It may also be > privileged or otherwise protected by work product immunity or other legal > rules. This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they ar > > > > >