Hi It's probably better to use the embedded xml stream parser with the jvm. The Apache jsp compiler [1] is using xml stream parser so if you force a factory this must available in the classpath. (see details here [2])
Regards Olivier [1] https://github.com/apache/tomcat/blob/trunk/java/org/apache/jasper/compiler/EncodingDetector.java#L36 [2] https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLInputFactory.html#newFactory-- On Wed, Jun 13, 2018 at 11:09 AM, Lord Buddha <[email protected]> wrote: > We deploy via context xml files in a directory external to both jetty and > jetty.base > > It turns out that removing those global system properties has fixed both > the issues, so, woohoo. > > On 13 June 2018 at 04:31, Jan Bartel <[email protected]> wrote: > >> How are you deploying your apps, with the distro or embedded? Can you >> please enable server.dumpAfterStart=true (in server.ini), and report the >> output? >> >> thanks >> Jan >> >> On 12 June 2018 at 13:16, Lord Buddha <[email protected]> wrote: >> >>> Ah, the WstxInputFactory is because of some system properties we were >>> crudely using. >>> >>> -Djavax.xml.stream.XMLEventFactory=com.ctc.wstx.stax.WstxEventFactory >>> -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory >>> -Djavax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory >>> >>> I guess jetty now using javax.xml.stream and so was broken by that. >>> >>> Don't think that is why JSP compilation is not working. >>> >>> On 12 June 2018 at 23:03, Lord Buddha <[email protected]> wrote: >>> >>>> Have just attempted to do this upgrade. >>>> >>>> Apps all deploy, but am getting the following so no JSP's compile. >>>> >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | [qtp687479235-48] WARN >>>> org.eclipse.jetty.server.handler.ErrorHandler - EXCEPTION >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | javax.servlet.ServletException: >>>> java.lang.NoClassDefFoundError: Could not initialize class >>>> org.apache.jasper.compiler.EncodingDetector >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.jsp.JettyJspServlet.service(JettyJspServlet.java:112) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:790) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:857) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHan >>>> dler.java:535) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.handler.ScopedHandler.handle(Scoped >>>> Handler.java:146) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHa >>>> ndler.java:566) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl >>>> erWrapper.java:132) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Sc >>>> opedHandler.java:257) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.session.SessionHandler.doHandle(Ses >>>> sionHandler.java:1595) >>>> >>>> >>>> Am also getting (before the above error, but they don't look related). >>>> >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | javax.servlet.ServletException: >>>> javax.servlet.ServletException: javax.xml.stream.FactoryConfigurationError: >>>> Provider com.ctc.wstx.stax.WstxInputFactory not found >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.handler.HandlerCollection.handle(Ha >>>> ndlerCollection.java:146) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.handler.StatisticsHandler.handle(St >>>> atisticsHandler.java:169) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl >>>> erWrapper.java:132) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.Server.handle(Server.java:531) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConne >>>> ction.java:260) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at org.eclipse.jetty.io >>>> .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at org.eclipse.jetty.io >>>> .FillInterest.fillable(FillInterest.java:102) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at org.eclipse.jetty.io >>>> .ChannelEndPoint$2.run(ChannelEndPoint.java:118) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(Queued >>>> ThreadPool.java:762) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedT >>>> hreadPool.java:680) >>>> INFO | jvm 1 | 2018/06/12 17:20:11 | at >>>> java.lang.Thread.run(Thread.java:748) >>>> >>>> We deploy on a JRE.... Always have. Currently on 1.8.0_172. >>>> >>>> Anybody any ideas on this limited info ? >>>> >>>> >>>> >>>> >>>> >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >> >> >> >> -- >> Jan Bartel <[email protected]> >> www.webtide.com >> *Expert assistance from the creators of Jetty and CometD* >> >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> > > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users > -- Olivier
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
