eclipse 下jetty 开发 Debug状态 error

Starting JFinal 4.8

Starting scanner at interval of 5 seconds

Starting Jetty Server 9.4.z-SNAPSHOT on port: 8088

五月 08, 2020 6:47:02 下午 com.jfinal.kit.LogKit error

严重: Parent for temp dir not configured correctly: writeable=false

java.lang.IllegalStateException: Parent for temp dir not configured correctly: writeable=false

at org.eclipse.jetty.webapp.WebInfConfiguration.makeTempDirectory(WebInfConfiguration.java:506)

at org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:474)

at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:149)

at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)

at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)

at org.eclipse.jetty.server.Server.start(Server.java:416)

at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)

at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)

at org.eclipse.jetty.server.Server.doStart(Server.java:383)

at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

at com.jfinal.server.jetty.JettyServer.doStart(JettyServer.java:154)

at com.jfinal.server.jetty.JettyServer.start(JettyServer.java:70)

at com.jfinal.core.JFinal.start(JFinal.java:160)

at com.yuham.iims.util.AppServer.main(AppServer.java:8)



求助,如何配置temp dir

评论区

jsper110

2020-05-08 19:16

已经解决 System.setProperty("java.io.tmpdir", "E:/temp"); 我原来的目录有中文,debug下变成乱码了。换个目录就好

JFinal

2020-05-08 19:24

@jsper110 按理说这个不用配置的,解决就好

热门反馈

扫码入社