beryl 发表于 2019-12-12 09:34:23

项目部署:运行Tomcat日志报错

部署到Linux服务器,就报错(PS:本地正常)
Caused by: java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender - Failed to create parent directories for [/../logs/jeecgboot.2019-12-11.log]
ERROR in ch.qos.logback.core.rolling.RollingFileAppender - openFile(null,true) call failed. java.io.FileNotFoundException: ../logs/jeecgboot.2019-12-11.log (No such file or directory)
ERROR in ch.qos.logback.core.FileAppender - Failed to create parent directories for [/../logs/error-log.html]
ERROR in ch.qos.logback.core.FileAppender - openFile(../logs/error-log.html,true) call failed. java.io.FileNotFoundException: ../logs/error-log.html (No such file or directory)
ERROR in ch.qos.logback.core.rolling.RollingFileAppender - Failed to create parent directories for [/../logs/jeecgboot.2019-12-11.html]
ERROR in ch.qos.logback.core.rolling.RollingFileAppender - openFile(null,true) call failed. java.io.FileNotFoundException: ../logs/jeecgboot.2019-12-11.html (No such file or directory)
        at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:169)
        at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:82)
        at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
        at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:117)
        at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:293)
        at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:266)
        at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:229)
        at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:202)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
        at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)
        at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
        at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:347)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)
        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)
        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
        at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5195)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        ... 19 more


页: [1]
查看完整版本: 项目部署:运行Tomcat日志报错