我正在运行Docker,容器已启动但抛出以下错误
org.eclipse.jetty.webapp.WebAppContext: Failed startup of context o.e.j.w.WebAppContext@34cd072c{Tim-Carry,/,file:///var/lib/jetty/webapps/root/,UNAVAILABLE}{/root.war}
java.lang.NullPointerException: Operation not allowed in a thread that is neither the original request thread nor a thread created by ThreadManager
我已经创建了Docker映像并运行该映像
我的docker文件如下所示:
FROM gcr.io/google-appengine/jetty
ADD target/Tim-Carry-legacy.war $JETTY_BASE/webapps/root.war
WORKDIR $JETTY_BASE
RUN java -jar $JETTY_HOME/start.jar --approve-all-licenses --add-to-startd=jmx,stats,hawtio && chown -R jetty:jetty $JETTY_BASE
EXPOSE 8080