Hi, Thank you Grzegorz for your response. It helped me. Thanks, Prashanth.
From: Prashanth Ettaboina Sent: 10 November 2022 19:49 To: 'iss...@karaf.apache.org' <iss...@karaf.apache.org>; 'dev@karaf.apache.org' <dev@karaf.apache.org>; 'u...@karaf.apache.org' <u...@karaf.apache.org> Subject: RE: Unable to load custom web.xml for Pax Web in Karaf (4.4.1) Hi Grzybek, Thank you for your response. I do not have any jars in my /WEB-INF/lib, I do not have lib folder in my WEB-INF folder. In my module I have a web.xml (/src/main/webapp/WEB-INF/web.xml) I'm building this module as a kar file and installing it into the karaf console. I'm able to see my bundle getting started and getting active without any issue. But I'm able to see the below log lines after installing the kar file. 2022-11-10T19:09:05.486+0530 CEF:1 | org.apache.karaf.features.core | 4.4.1 | INFO | ID=19 THR=tures-3-thread-1 CAT=FeaturesServiceImpl MSG= helloboard/51.0.0.SNAPSHOT 2022-11-10T19:09:05.506+0530 CEF:1 | org.ops4j.pax.web.pax-web-extender-war | 8.0.6 | WARN | ID=269 THR=tures-3-thread-1 CAT=WarExtenderContext MSG=Web-ContextPath manifest header of helloboard [312] specifies invalid context path: helloboard. This bundle will not be processed. 2022-11-10T19:09:05.506+0530 CEF:1 | org.apache.karaf.features.core | 4.4.1 | INFO | ID=19 THR=tures-3-thread-1 CAT=FeaturesServiceImpl MSG=Done. When I try to access https://localhost:8443/helloboard/ server responded back with 404. Below are the jetty logs when I try to access the above endpoint. 2022-11-10T19:39:46.391+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=REQUEST for //localhost:8443/helloboard on HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=IDLE rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=true al=0},r=2,c=false/false,a=IDLE,uri=//localhost:8443/helloboard,age=0} GET //localhost:8443/helloboard HTTP/1.1 Host: localhost:8443 2022-11-10T19:39:46.392+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=handle //localhost:8443/helloboard HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=IDLE rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=true al=0},r=2,c=false/false,a=IDLE,uri=//localhost:8443/helloboard,age=0} 2022-11-10T19:39:46.392+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=action DISPATCH HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=true al=0},r=2,c=false/false,a=HANDLING,uri=//localhost:8443/helloboard,age=1} 2022-11-10T19:39:46.392+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=SecureRequestCustomizer MSG=Host localhost with SNI null 2022-11-10T19:39:46.392+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=Server MSG=REQUEST GET /helloboard on HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=true al=0},r=2,c=false/false,a=HANDLING,uri=https://localhost:8443/helloboard,age=1} 2022-11-10T19:39:46.393+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=ContextHandler MSG=scope null||/helloboard @ o.o.p.w.s.j.i.PaxWebServletContextHandler@52ee63a5{/,null,AVAILABLE}<mailto:o.o.p.w.s.j.i.PaxWebServletContextHandler@52ee63a5%7b/,null,AVAILABLE%7d> 2022-11-10T19:39:46.393+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=ContextHandler MSG=context=||/helloboard @ o.o.p.w.s.j.i.PaxWebServletContextHandler@52ee63a5{/,null,AVAILABLE}<mailto:o.o.p.w.s.j.i.PaxWebServletContextHandler@52ee63a5%7b/,null,AVAILABLE%7d> 2022-11-10T19:39:46.393+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Entering scope org.ops4j.pax.web.service.jetty.internal.PaxWebSessionHandler1209060588==dftMaxIdleSec=1800, dispatch=REQUEST asyncstarted=false 2022-11-10T19:39:46.393+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Got Session ID node0153ccberdksh618rs5jxv328kq22.node0 from cookie JSESSIONID 2022-11-10T19:39:46.393+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Session node0153ccberdksh618rs5jxv328kq22 not found locally in org.eclipse.jetty.server.session.DefaultSessionCache@3daaf5f7[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false<mailto:org.eclipse.jetty.server.session.DefaultSessionCache@3daaf5f7[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false>], attempting to load 2022-11-10T19:39:46.394+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Session node0153ccberdksh618rs5jxv328kq22 not loaded by store 2022-11-10T19:39:46.394+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=No session found for session cookie id node0153ccberdksh618rs5jxv328kq22.node0 2022-11-10T19:39:46.394+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Got Session ID node01lbu2o9x1o6d8isw0ekbivw4912.node0 from cookie JSESSIONID 2022-11-10T19:39:46.394+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Session node01lbu2o9x1o6d8isw0ekbivw4912 not found locally in org.eclipse.jetty.server.session.DefaultSessionCache@3daaf5f7[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false<mailto:org.eclipse.jetty.server.session.DefaultSessionCache@3daaf5f7[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false>], attempting to load 2022-11-10T19:39:46.394+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Session node01lbu2o9x1o6d8isw0ekbivw4912 not loaded by store 2022-11-10T19:39:46.394+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=No session found for session cookie id node01lbu2o9x1o6d8isw0ekbivw4912.node0 2022-11-10T19:39:46.395+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=sessionHandler=org.ops4j.pax.web.service.jetty.internal.PaxWebSessionHandler1209060588==dftMaxIdleSec=1800 session=null 2022-11-10T19:39:46.395+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=ServletHandler MSG=servlet |/helloboard|null -> default==org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet@5c13d641{jsp=null,order=1,inst=true,async=false,src=EMBEDDED:null,STARTED}<mailto:default==org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet@5c13d641%7bjsp=null,order=1,inst=true,async=false,src=EMBEDDED:null,STARTED%7d> 2022-11-10T19:39:46.395+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Session node0153ccberdksh618rs5jxv328kq22~ROOT## not found locally in org.eclipse.jetty.server.session.DefaultSessionCache@3daaf5f7[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false<mailto:org.eclipse.jetty.server.session.DefaultSessionCache@3daaf5f7[evict=-1,removeUnloadable=false,saveOnCreate=false,saveOnInactiveEvict=false>], attempting to load 2022-11-10T19:39:46.395+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Session node0153ccberdksh618rs5jxv328kq22~ROOT## not loaded by store 2022-11-10T19:39:46.400+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=ServletHandler MSG=PaxWebServletHandler@5137c022{STARTED} cached filter chain for REQUEST: Chain@10145ff9(Jetty_WebSocketUpgradeFilter==org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter@59c39fa8{inst=true,async=true,src=EMBEDDED:null})->ChainEnd@29621438(default==org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet@5c13d641{jsp=null,order=1,inst=true,async=false,src=EMBEDDED:null,STARTED})<mailto:Chain@10145ff9(Jetty_WebSocketUpgradeFilter==org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter@59c39fa8%7binst=true,async=true,src=EMBEDDED:null%7d)-%3eChainEnd@29621438(default==org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet@5c13d641%7bjsp=null,order=1,inst=true,async=false,src=EMBEDDED:null,STARTED%7d)> 2022-11-10T19:39:46.401+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=ResourceService MSG=content=null 2022-11-10T19:39:46.401+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=session MSG=Leaving scope org.ops4j.pax.web.service.jetty.internal.PaxWebSessionHandler1209060588==dftMaxIdleSec=1800 dispatch=REQUEST, async=false, session=null, oldsession=null, oldsessionhandler=null 2022-11-10T19:39:46.402+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=Server MSG=handled=true async=false committed=true on HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=true i=true al=0},r=2,c=false/false,a=HANDLING,uri=https://localhost:8443/helloboard,age=11} 2022-11-10T19:39:46.402+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=action SEND_ERROR HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=false al=0},r=2,c=false/false,a=HANDLING,uri=https://localhost:8443/helloboard,age=11} 2022-11-10T19:39:46.402+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=onContentComplete HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=false al=0},r=2,c=false/false,a=HANDLING,uri=https://localhost:8443/helloboard,age=11} 2022-11-10T19:39:46.403+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=onRequestComplete HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=false al=0},r=2,c=false/false,a=HANDLING,uri=https://localhost:8443/helloboard,age=12} 2022-11-10T19:39:46.403+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=ErrorPageErrorHandler MSG=getErrorPage(GET /helloboard) => error_page=null (from global default) 2022-11-10T19:39:46.404+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=sendResponse info=null content=HeapByteBuffer@6fd24ba[p=0,l=372,c=32768,r=372]={<<<<html>\n<head>\n<meta http-...able>\n\n</body>\n</html>\n>>>\ne link, ...\x00\x00\x00\x00\x00\x00\x00} complete=true committing=true callback=org.eclipse.jetty.util.Callback$3@46bbe7e6<mailto:callback=org.eclipse.jetty.util.Callback$3@46bbe7e6> 2022-11-10T19:39:46.404+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=COMMIT for /helloboard on HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=HANDLING rs=COMPLETING os=COMMITTED is=IDLE awp=false se=false i=false al=0},r=2,c=false/false,a=HANDLING,uri=https://localhost:8443/helloboard,age=13} 404 null HTTP/1.1 Cache-Control: must-revalidate,no-cache,no-store Content-Type: text/html;charset=iso-8859-1 2022-11-10T19:39:46.405+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpGenerator MSG=generateHeaders HTTP/1.1{s=404,h=2,cl=-1} last=true content=HeapByteBuffer@6fd24ba[p=0,l=372,c=32768,r=372]={<<<<html>\n<head>\n<meta http-...able>\n\n</body>\n</html>\n>>>\ne link, ...\x00\x00\x00\x00\x00\x00\x00} 2022-11-10T19:39:46.405+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpGenerator MSG=Cache-Control: must-revalidate,no-cache,no-store Content-Type: text/html;charset=iso-8859-1 2022-11-10T19:39:46.406+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpGenerator MSG=CONTENT_LENGTH 2022-11-10T19:39:46.407+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=action TERMINATED HttpChannelOverHttp@62fa25b0{s=HttpChannelState@2f46c6d1{s=IDLE rs=COMPLETED os=COMPLETED is=IDLE awp=false se=false i=false al=0},r=2,c=true/true,a=IDLE,uri=https://localhost:8443/helloboard,age=15} 2022-11-10T19:39:46.407+0530 CEF:1 | org.eclipse.jetty.util | 9.4.48.v20220622 | DEBUG | ID=243 THR=qtp501056700-863 CAT=HttpChannel MSG=onCompleted for /helloboard written=372 Thanks, Prashanth Ettaboina. From: Prashanth Ettaboina Sent: 10 November 2022 15:56 To: iss...@karaf.apache.org<mailto:iss...@karaf.apache.org>; dev@karaf.apache.org<mailto:dev@karaf.apache.org>; u...@karaf.apache.org<mailto:u...@karaf.apache.org> Subject: Unable to load custom web.xml for Pax Web in Karaf (4.4.1) Hi Team, I have upgraded my Application from Karaf 4.2.15 to 4.4.1 version. As per release notes (4.4.0 and 4.4.1) I have updated Pax Web dependency to 8.0.6 along with Jetty to 9.4.46.v20220331 The issue is Pax web is unable to load my web.xml, I have tried to find the end points (list of servlets) which are running in the karaf using the karaf commands (http:list & web:list) both commands are not supported by latest karaf. Can anyone please look at it. Thanks, Prashanth Ettaboina,