提供者org.eclipse.jetty.apache.jsp.JuliLog不是子类型

时间:2018-12-11 15:50:33

标签: java maven spring-boot google-cloud-platform

我正在尝试在Kubenetes上部署Spring-boot应用程序。 在“ Cloud Shell”上使用此命令> mvn spring-boot:run时,应用运行完美 但是当我使用以下命令在docker上运行时:

docker run -ti --rm -p 8080:8080 \gcr.io/$GOOGLE_CLOUD_PROJECT/synebiz:v1

它给出以下错误:

[2018-12-11 13:59:39.771:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@50b494a6{ROOT,/,file:///jetty/webapps/ROOT/,UNAVAILABLE}{/ROOT}
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:239)
        at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
        at org.apache.juli.logging.LogFactory.<init>(LogFactory.java:78)
        at org.apache.juli.logging.LogFactory.<clinit>(LogFactory.java:66)
        at org.apache.tomcat.websocket.WsWebSocketContainer.<init>(WsWebSocketContainer.java:91)
        at org.apache.tomcat.websocket.server.WsServerContainer.<init>(WsServerContainer.java:87)
        at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131)
        at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:47)
        at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)
        at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:64)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:346)
        at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:852)

我的pom.xml如下:

myexamples/pom.xml

任何帮助您解决此问题的帮助。

0 个答案:

没有答案