Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Issues with jetty-9.4.11 running JSTL.jar

Hi Joakim,

 

Thanks so very much. I did make a code change to the following, using the exact same syntax that is used by Jetty Standalone and also

putting the JSTL jars in the WEB-INF/lib directory of my app, but I still continue see the following exceptions in my log file. Moreover, when

I hit my application dashboard nothing is coming back to the browser. Please see the exceptions below. Any clue as to what is going on?

 

          HandlerCollection hc = new HandlerCollection();

            ContextHandlerCollection contexts = new ContextHandlerCollection();

           

            DefaultHandler defaultHandler = new DefaultHandler();

            hc.setHandlers(new Handler[] { contexts, defaultHandler});

            server.setHandler(hc);           

            

            DeploymentManager dm = new DeploymentManager();

            WebAppProvider webappProvider = new WebAppProvider();

            webappProvider.setMonitoredDirName(sDir);

            webappProvider.setScanInterval(1);

            webappProvider.setExtractWars(true);

            dm.setContexts(contexts);

            //dm.setContextAttribute(

            //        "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",

            //        ".*/servlet-api-[^/]*\\.jar$");

 

            dm.setContextAttribute(

                    "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",

                    ".*/[^/]*servlet-api-[^/]*\\.jar$|.*/javax.servlet.jsp.jstl-.*\\.jar$|.*/org.apache.taglibs.taglibs-standard-impl-.*\\.jar$");

           

            dm.addAppProvider(webappProvider);

            server.addBean(dm);           

            dm.start();

           

 

2018-09-18 12:42:40,918 [main] WARN  SecurityHandler - ServletContext@o.e.j.w.WebAppContext@72c05f6a{SspJsf,/SspJsf,file:///C:/Users/ari51787/sandbox/SSPConfig3432-20180529-NEW-HEAD-BUILD400/apps/jetty/webservices/webapps/SspJsf/,STARTING}{C:\Users\ari51787\sandbox\SSPConfig3432-20180529-NEW-HEAD-BUILD400\apps\jetty\webservices\webapps\SspJsf} has uncovered http methods for path: /*

2018-09-18 12:42:40,918 [main] DEBUG SecurityHandler -

java.lang.Throwable: null

              at org.eclipse.jetty.security.ConstraintSecurityHandler.checkPathsWithUncoveredHttpMethods(ConstraintSecurityHandler.java:808) [jetty-security-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:446) [jetty-security-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:123) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:503) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:123) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:909) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:370) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:848) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.Server.start(Server.java:419) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.Server.doStart(Server.java:386) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.startJetty(JettyHttpServiceImpl.java:391) [sspconfig.jar:?]

              at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.start(JettyHttpServiceImpl.java:123) [sspconfig.jar:?]

              at $ServiceWithLifecycle_165ed8fee9d.start($ServiceWithLifecycle_165ed8fee9d.java) [?:?]

              at $ServiceWithLifecycle_165ed8fee89.start($ServiceWithLifecycle_165ed8fee89.java) [?:?]

              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.initStartGlobalServices(ServiceManagerImpl.java:186) [sspconfig.jar:?]

              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.start(ServiceManagerImpl.java:60) [sspconfig.jar:?]

              at $ServiceManager_165ed8fee78.start($ServiceManager_165ed8fee78.java) [?:?]

              at $ServiceManager_165ed8fee76.start($ServiceManager_165ed8fee76.java) [?:?]

              at com.sterlingcommerce.hadrian.Main.main(Main.java:296) [sspconfig.jar:?]

 

              ….

              ….

              ….

 

2018-09-18 12:42:43,657 [main] DEBUG WebAppClassLoader - WAP webapp loaded class org.eclipse.jetty.apache.jsp.JuliLog

2018-09-18 12:42:43,658 [main] WARN  SspJsf - unavailable

java.lang.reflect.InvocationTargetException: null

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83) ~[?:1.8.0]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57) ~[?:1.8.0]

              at java.lang.reflect.Constructor.newInstance(Constructor.java:437) ~[?:1.8.0]

              at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2632) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1372) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1297) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:647) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:427) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:760) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:374) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:848) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.Server.start(Server.java:419) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.Server.doStart(Server.java:386) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.startJetty(JettyHttpServiceImpl.java:391) [sspconfig.jar:?]

              at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.start(JettyHttpServiceImpl.java:123) [sspconfig.jar:?]

              at $ServiceWithLifecycle_165ed8fee9d.start($ServiceWithLifecycle_165ed8fee9d.java) [?:?]

              at $ServiceWithLifecycle_165ed8fee89.start($ServiceWithLifecycle_165ed8fee89.java) [?:?]

              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.initStartGlobalServices(ServiceManagerImpl.java:186) [sspconfig.jar:?]

              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.start(ServiceManagerImpl.java:60) [sspconfig.jar:?]

              at $ServiceManager_165ed8fee78.start($ServiceManager_165ed8fee78.java) [?:?]

              at $ServiceManager_165ed8fee76.start($ServiceManager_165ed8fee76.java) [?:?]

              at com.sterlingcommerce.hadrian.Main.main(Main.java:296) [sspconfig.jar:?]

Caused by: java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a subtype

              at java.util.ServiceLoader.fail(ServiceLoader.java:250) ~[?:1.8.0]

              at java.util.ServiceLoader.access$300(ServiceLoader.java:196) ~[?:1.8.0]

              at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:387) ~[?:1.8.0]

              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:415) ~[?:1.8.0]

              at java.util.ServiceLoader$1.next(ServiceLoader.java:491) ~[?:1.8.0]

              at org.apache.juli.logging.LogFactory.<init>(LogFactory.java:78) ~[org.mortbay.jasper.apache-jsp-8.5.24.2.jar:2.3]

              at org.apache.juli.logging.LogFactory.<clinit>(LogFactory.java:66) ~[org.mortbay.jasper.apache-jsp-8.5.24.2.jar:2.3]

              at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:69) ~[org.mortbay.jasper.apache-jsp-8.5.24.2.jar:2.3]

              at org.eclipse.jetty.jsp.JettyJspServlet.<init>(JettyJspServlet.java:41) ~[org.eclipse.jetty.apache-jsp-9.4.11.v20180605.jar:9.4.11.v20180605]

              ... 41 more

2018-09-18 12:42:43,663 [main] DEBUG ServletHandler - EXCEPTION

javax.servlet.ServletException: jsp@19c47==org.eclipse.jetty.jsp.JettyJspServlet,jsp=null,order=0,inst=false

              at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:691) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:427) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:760) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:374) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:848) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287) [jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545) [jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.Server.start(Server.java:419) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.server.Server.doStart(Server.java:386) [jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) [jetty-util-9.4.11.v20180605.jar:9.4.11.v20180605]

              at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.startJetty(JettyHttpServiceImpl.java:391) [sspconfig.jar:?]

              at com.sterlingcommerce.hadrian.system.jetty.JettyHttpServiceImpl.start(JettyHttpServiceImpl.java:123) [sspconfig.jar:?]

              at $ServiceWithLifecycle_165ed8fee9d.start($ServiceWithLifecycle_165ed8fee9d.java) [?:?]

              at $ServiceWithLifecycle_165ed8fee89.start($ServiceWithLifecycle_165ed8fee89.java) [?:?]

              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.initStartGlobalServices(ServiceManagerImpl.java:186) [sspconfig.jar:?]

              at com.sterlingcommerce.hadrian.system.ServiceManagerImpl.start(ServiceManagerImpl.java:60) [sspconfig.jar:?]

              at $ServiceManager_165ed8fee78.start($ServiceManager_165ed8fee78.java) [?:?]

              at $ServiceManager_165ed8fee76.start($ServiceManager_165ed8fee76.java) [?:?]

              at com.sterlingcommerce.hadrian.Main.main(Main.java:296) [sspconfig.jar:?]

Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83) ~[?:1.8.0]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57) ~[?:1.8.0]

              at java.lang.reflect.Constructor.newInstance(Constructor.java:437) ~[?:1.8.0]

              at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2632) ~[jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1372) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1297) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:647) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              ... 33 more

Caused by: java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a subtype

              at java.util.ServiceLoader.fail(ServiceLoader.java:250) ~[?:1.8.0]

              at java.util.ServiceLoader.access$300(ServiceLoader.java:196) ~[?:1.8.0]

              at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:387) ~[?:1.8.0]

              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:415) ~[?:1.8.0]

              at java.util.ServiceLoader$1.next(ServiceLoader.java:491) ~[?:1.8.0]

              at org.apache.juli.logging.LogFactory.<init>(LogFactory.java:78) ~[org.mortbay.jasper.apache-jsp-8.5.24.2.jar:2.3]

              at org.apache.juli.logging.LogFactory.<clinit>(LogFactory.java:66) ~[org.mortbay.jasper.apache-jsp-8.5.24.2.jar:2.3]

              at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:69) ~[org.mortbay.jasper.apache-jsp-8.5.24.2.jar:2.3]

              at org.eclipse.jetty.jsp.JettyJspServlet.<init>(JettyJspServlet.java:41) ~[org.eclipse.jetty.apache-jsp-9.4.11.v20180605.jar:9.4.11.v20180605]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83) ~[?:1.8.0]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57) ~[?:1.8.0]

              at java.lang.reflect.Constructor.newInstance(Constructor.java:437) ~[?:1.8.0]

              at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2632) ~[jetty-server-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1372) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:1297) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:647) ~[jetty-servlet-9.4.11.v20180605.jar:9.4.11.v20180605]

              ... 33 more

 

 

From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Joakim Erdfelt
Sent: Thursday, September 13, 2018 6:46 PM
To: Jetty Users @ Eclipse <jetty-users@xxxxxxxxxxx>
Subject: Re: [jetty-users] Issues with jetty-9.4.11 running JSTL.jar

 

** This mail has been sent from an external source **

 

 

 dm.setContextAttribute(

                    "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",

                    ".*/[^/]*servlet-api-[^/]*\\.jar$|.*/jstl*\\.jar$|.*/jsf*\\.jar$");

 

Your regex doesn't look right.

 

Take it and a directory list and pop it into https://www.freeformatter.com/java-regex-tester.html

Test it for what you want to match against (make sure your directory listing has fully qualified paths, either in OS/FileSystem format, or URI format).

 

Also note, JSF is not a server component, it's a WebApp specific dependency that will only work within your `WEB-INF/lib`.

 

Joakim Erdfelt / joakim@xxxxxxxxxxx

 

 

On Thu, Sep 13, 2018 at 5:45 PM Ubani Allison <ubani.allison@xxxxxxxxx> wrote:

Hi all,

 

I really have been struggling to get my web app to run with jetty-9.4.11. When I deploy my WAR file to a standalone jetty instances it works, but

when I use embedded jetty-9.4.11 the pages will not display. This same war file works in jetty-7.0.1 but since I migrated to jetty-9.4.11, I have

not have any success. The browser is not receiving any response back from my application. Any suggestions will be appreciated.

 

  HandlerCollection hc = new HandlerCollection();

            ContextHandlerCollection contexts = new ContextHandlerCollection();

            

            DefaultHandler defaultHandler = new DefaultHandler();

            hc.setHandlers(new Handler[] { contexts, defaultHandler});

            server.setHandler(hc);            

            

            DeploymentManager dm = new DeploymentManager();

            WebAppProvider webappProvider = new WebAppProvider();

            webappProvider.setMonitoredDirName(sDir);

            webappProvider.setScanInterval(1);

            webappProvider.setExtractWars(true);

            dm.setContexts(contexts);

            //dm.setContextAttribute(

            //        "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",

            //        ".*/servlet-api-[^/]*\\.jar$");

 

            dm.setContextAttribute(

                    "org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",

                    ".*/[^/]*servlet-api-[^/]*\\.jar$|.*/jstl*\\.jar$|.*/jsf*\\.jar$");

            

            dm.addAppProvider(webappProvider);

            server.addBean(dm);            

            dm.start();

 

 

 

 

 

 

2018-09-13 14:24:21,784 [qtp-35913463-24] DEBUG HttpConnection - HttpConnection@cdb548d2[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=0,c=false,a=IDLE,uri=null,age=0}<-DecryptedEndPoint@1693a94f{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=145/30000}->HttpConnection@cdb548d2[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=0,c=false,a=IDLE,uri=null,age=0}->SocketChannelEndPoint@432790d4{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=3/30000}{io=0/0,kio=0,kro=1}->SslConnection@26197137{NOT_HANDSHAKING,eio=-1/-1,di=-1}=>HttpConnection@cdb548d2[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=0,c=false,a=IDLE,uri=null,age=0} filled 469 HeapByteBuffer@1da99ed1[p=0,l=469,c=17408,r=469]={<<<GET /SSPDashboard...5z3m5cil0h0\r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2018-09-13 14:24:21,784 [qtp-35913463-24] DEBUG HttpConnection - HttpConnection@cdb548d2[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=0,c=false,a=IDLE,uri=null,age=0}<-DecryptedEndPoint@1693a94f{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=145/30000}->HttpConnection@cdb548d2[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=0,c=false,a=IDLE,uri=null,age=0}->SocketChannelEndPoint@432790d4{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=3/30000}{io=0/0,kio=0,kro=1}->SslConnection@26197137{NOT_HANDSHAKING,eio=-1/-1,di=-1}=>HttpConnection@cdb548d2[p=HttpParser{s=START,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=0,c=false,a=IDLE,uri=null,age=0} parse HeapByteBuffer@1da99ed1[p=0,l=469,c=17408,r=469]={<<<GET /SSPDashboard...5z3m5cil0h0\r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} {}

2018-09-13 14:24:21,784 [qtp-35913463-24] DEBUG HttpParser - parseNext s=START HeapByteBuffer@1da99ed1[p=0,l=469,c=17408,r=469]={<<<GET /SSPDashboard...5z3m5cil0h0\r\n\r\n>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

2018-09-13 14:24:21,784 [qtp-35913463-24] DEBUG HttpParser - START --> SPACE1

2018-09-13 14:24:21,786 [qtp-35913463-24] DEBUG HttpParser - SPACE1 --> URI

2018-09-13 14:24:21,786 [qtp-35913463-24] DEBUG HttpParser - URI --> SPACE2

2018-09-13 14:24:21,786 [qtp-35913463-24] DEBUG HttpParser - SPACE2 --> REQUEST_VERSION

2018-09-13 14:24:21,786 [qtp-35913463-24] DEBUG HttpParser - REQUEST_VERSION --> HEADER

2018-09-13 14:24:21,787 [qtp-35913463-24] DEBUG HttpParser - HEADER:Host --> VALUE

2018-09-13 14:24:21,787 [qtp-35913463-24] DEBUG HttpParser - HEADER:Host --> IN_VALUE

2018-09-13 14:24:21,787 [qtp-35913463-24] DEBUG HttpParser - HEADER:Host --> FIELD

2018-09-13 14:24:21,789 [qtp-35913463-24] DEBUG HttpParser - HEADER:Connection: keep-alive --> IN_VALUE

2018-09-13 14:24:21,789 [qtp-35913463-24] DEBUG HttpParser - HEADER:Connection: keep-alive --> FIELD

2018-09-13 14:24:21,793 [qtp-35913463-24] DEBUG HttpParser - HEADER: --> IN_NAME

2018-09-13 14:24:21,793 [qtp-35913463-24] DEBUG HttpParser - HEADER:Upgrade-Insecure-Requests --> VALUE

2018-09-13 14:24:21,793 [qtp-35913463-24] DEBUG HttpParser - HEADER:Upgrade-Insecure-Requests --> IN_VALUE

2018-09-13 14:24:21,793 [qtp-35913463-24] DEBUG HttpParser - HEADER:Upgrade-Insecure-Requests --> FIELD

2018-09-13 14:24:21,793 [qtp-35913463-24] DEBUG HttpParser - HEADER:User-Agent --> VALUE

2018-09-13 14:24:21,793 [qtp-35913463-24] DEBUG HttpParser - HEADER:User-Agent --> IN_VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:User-Agent --> FIELD

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 --> IN_VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 --> FIELD

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept-Encoding: gzip, deflate, br --> IN_VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept-Encoding: gzip, deflate, br --> FIELD

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept-Language --> VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept-Language --> IN_VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Accept-Language --> FIELD

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Cookie --> VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Cookie --> IN_VALUE

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER:Cookie --> FIELD

2018-09-13 14:24:21,794 [qtp-35913463-24] DEBUG HttpParser - HEADER --> END

2018-09-13 14:24:21,795 [qtp-35913463-24] DEBUG HttpChannel - REQUEST for //localhost:7777/SSPDashboard on HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=1}

GET //localhost:7777/SSPDashboard HTTP/1.1

Host: localhost:7777

Connection: keep-alive

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

Accept-Encoding: gzip, deflate, br

Accept-Language: en-US,en;q=0.9

Cookie: JSESSIONID=1ibz0ohp1twxmq1hvjixfpk2oig113icy28cg1f5z3m5cil0h0

 

 

2018-09-13 14:24:21,795 [qtp-35913463-24] DEBUG HttpChannel - HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=1} onContentComplete

2018-09-13 14:24:21,796 [qtp-35913463-24] DEBUG HttpChannel - HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=2} onRequestComplete

2018-09-13 14:24:21,796 [qtp-35913463-24] DEBUG HttpInput - HttpInputOverHTTP@86fd398f[c=0,q=0,[0]=null,s=STREAM] addContent EOF

2018-09-13 14:24:21,797 [qtp-35913463-24] DEBUG HttpConnection - HttpConnection@cdb548d2[p=HttpParser{s=END,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=2}<-DecryptedEndPoint@1693a94f{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=157/30000}->HttpConnection@cdb548d2[p=HttpParser{s=END,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=2}->SocketChannelEndPoint@432790d4{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=16/30000}{io=0/0,kio=0,kro=1}->SslConnection@26197137{NOT_HANDSHAKING,eio=-1/-1,di=-1}=>HttpConnection@cdb548d2[p=HttpParser{s=END,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=3} parsed true HttpParser{s=END,0 of -1}

2018-09-13 14:24:21,797 [qtp-35913463-24] DEBUG HttpConnection - releaseRequestBuffer HttpConnection@cdb548d2[p=HttpParser{s=END,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=3}<-DecryptedEndPoint@1693a94f{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=158/30000}->HttpConnection@cdb548d2[p=HttpParser{s=END,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=3}->SocketChannelEndPoint@432790d4{/127.0.0.1:49886<->/127.0.0.1:7777,OPEN,fill=-,flush=-,to=16/30000}{io=0/0,kio=0,kro=1}->SslConnection@26197137{NOT_HANDSHAKING,eio=-1/-1,di=-1}=>HttpConnection@cdb548d2[p=HttpParser{s=END,0 of -1},g=HttpGenerator@7e29bce8{s=START}]=>HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=3}

2018-09-13 14:24:21,797 [qtp-35913463-24] DEBUG HttpChannel - HttpChannelOverHttp@97013d33{r=1,c=false,a=IDLE,uri=//localhost:7777/SSPDashboard,age=3} handle //localhost:7777/SSPDashboard 

2018-09-13 14:24:21,797 [qtp-35913463-24] DEBUG HttpChannelState - handling HttpChannelState@9c865bec{s=IDLE a=NOT_ASYNC i=true r=IDLE w=false}

2018-09-13 14:24:21,798 [qtp-35913463-24] DEBUG HttpChannel - HttpChannelOverHttp@97013d33{r=1,c=false,a=DISPATCHED,uri=//localhost:7777/SSPDashboard,age=4} action DISPATCH

2018-09-13 14:24:21,799 [qtp-35913463-24] DEBUG Server - REQUEST GET /SSPDashboard on HttpChannelOverHttp@97013d33{r=1,c=false,a=DISPATCHED,uri=//localhost:7777/SSPDashboard,age=5}

2018-09-13 14:24:21,801 [qtp-35913463-24] DEBUG HttpChannel - sendResponse info=null content=HeapByteBuffer@790b7f36[p=0,l=0,c=0,r=0]={<<<>>>} complete=true committing=true callback=Blocker@d9468f8{null}

2018-09-13 14:24:21,801 [qtp-35913463-24] DEBUG HttpChannel - COMMIT for /SSPDashboard on HttpChannelOverHttp@97013d33{r=1,c=true,a=DISPATCHED,uri=//localhost:7777/SSPDashboard,age=7}

 

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

=====================================================
Please refer to http://www.aricent.com/email-disclaimer
for important disclosures regarding this electronic communication.
=====================================================

Back to the top