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

What other dependencies do you have?
Can you do a `mvn dependency:tree` for us?

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

That line is suspect, you likely have a org.apache.juli.logging.Log in multiple dependencies.

Joakim Erdfelt / joakim@xxxxxxxxxxx


On Fri, Sep 21, 2018 at 2:06 PM Eze Ikonne <ike.ikonne@xxxxxxxxxxx> wrote:

Hi Jan,

 

Thanks for your response, I have now added this piece code in order to support JSP/JSTL through my embedded Jetty container

 

            classlist.addBefore(

                    "org.eclipse.jetty.webapp.JettyWebXmlConfiguration",

                    "org.eclipse.jetty.annotations.AnnotationConfiguration" );

 

But I am still getting the following stacktrace. Is there a thirdparty jar that we must install in order to overcome

The NoClassDefFoundError seen in the stacktrace? Is there a specific logging mechanism that must be support for Jetty 9.4.11?

 

Thanks,

 

Ike

 

Caused by: java.lang.NoClassDefFoundError: org.apache.juli.logging.LogFactory (initialization failure)

      at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96) ~[?:2.9 (02-08-2018)]

      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

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 Jan Bartel
Sent: Tuesday, September 18, 2018 9:23 PM
To: JETTY user mailing list <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 **

 

Hi,

 

Firstly, when you said you put the jstl jars in your webapp, I hope you meant you put the jsf jars in there, because the jstl jars should go on the container's classpath.

 

Next, the WARNing you see from the ConstraintSecurityHandler means that you have defined security constraints in your web.xml that can leave some methods/paths exposed. Typically occurs when you have a security constraint that names only a few methods, or excludes only a few methods. The servlet spec requires us to warn you of this. See the servlet spec chapter 13.8 Security: Specifying Security Constraints for a good explanation and examples.

 

Finally, the error "java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a subtype" indicates that you have multiple conflicting jsp-related jars on the classpath.  Check you webapp doesn't have some extra jsp jars in there.

 

The following jsp-related jars must be on the container classpath (I will use the names of the jars as they appear in the distro):

 

Everything in $jetty.home/lib/apache-jsp:

org.eclipse.jdt.ecj-3.12.3.jar 

org.eclipse.jetty.apache-jsp-9.4.11.v20180605.jar 

org.mortbay.jasper.apache-el-8.5.24.2.jar 

org.mortbay.jasper.apache-jsp-8.5.24.2.jar

 

Everything in $jetty.home/lib/apache-jstl:

org.apache.taglibs.taglibs-standard-impl-1.2.5.jar

org.apache.taglibs.taglibs-standard-spec-1.2.5.jar

 

You will also need jetty-annotations.jar and the jetty-plus.jar on the container classpath.

 

You will need to ensure that you have set up the Configurations to apply to the webapp to include the o.e.j.annotations.AnnotationConfiguration so that the ServletContainerInitializer that sets up the jsp engine is called. The documentation at http://www.eclipse.org/jetty/documentation/9.4.12.v20180830/configuring-jsp.html#jsp-support will lead you to a code example on how to do that.

 

If you're using jsf, you can put those jars into your WEB-INF/lib, or you can put them onto the container classpath - but if you do that, then you need to add a pattern for them to the org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern so jetty knows to scan them for taglibs.

 

 

On 19 September 2018 at 04:30, Eze Ikonne <ike.ikonne@xxxxxxxxxxx> wrote:

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=1ibz0ohp1twxmq1hvjixfpk2oig113icy28


Back to the top