下载的官方demo 死活启动不起来

Starting JFinal 4.5 -> http://0.0.0.0:80
Info: jfinal-undertow 1.9, undertow 2.0.25.Final, jvm 1.8.0_221
Exception in thread "main" java.lang.NoSuchFieldError: TRACE
	at org.jboss.logging.Log4jLogger.translate(Log4jLogger.java:55)
	at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogger.java:35)
	at org.jboss.logging.Logger.isTraceEnabled(Logger.java:98)
	at io.undertow.server.handlers.ResponseCodeHandler.<clinit>(ResponseCodeHandler.java:36)
	at io.undertow.security.handlers.AuthenticationMechanismsHandler.<init>(AuthenticationMechanismsHandler.java:39)
	at io.undertow.servlet.core.DeploymentManagerImpl.setupSecurityHandlers(DeploymentManagerImpl.java:419)
	at io.undertow.servlet.core.DeploymentManagerImpl.access$600(DeploymentManagerImpl.java:121)
	at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:224)
	at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186)
	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252)
	at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:260)
	at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:159)
	at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:84)
	at com.demo.common.DemoConfig.main(DemoConfig.java:25)


评论区

JFinal

2019-09-25 17:47

将日志级别由 trace 调整为 warn 试一下,注意看 log4j.properties 中的配置

热门反馈

扫码入社