maven tomcat插件重新部署导致启动失败

开源中国首席脑科主任 发布于 2016/10/08 15:14
阅读 757
收藏 0

08-Oct-2016 14:46:24.137 INFO [FileWatchdog] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.apache.log4j.FileAppenderCustomizer]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.apache.log4j.FileAppenderCustomizer]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1325) at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1313) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1178) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at com.sun.beans.finder.ClassFinder.findClass(ClassFinder.java:103) at java.beans.Introspector.findCustomizerClass(Introspector.java:1301) at java.beans.Introspector.getTargetBeanDescriptor(Introspector.java:1295) at java.beans.Introspector.getBeanInfo(Introspector.java:425) at java.beans.Introspector.getBeanInfo(Introspector.java:173) at java.beans.Introspector.getBeanInfo(Introspector.java:260) at java.beans.Introspector.<init>(Introspector.java:407) at java.beans.Introspector.getBeanInfo(Introspector.java:173) at org.apache.log4j.config.PropertySetter.introspect(PropertySetter.java:83) at org.apache.log4j.config.PropertySetter.getPropertyDescriptor(PropertySetter.java:294) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:140) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395) at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:955) at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89) at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:108)


上面是错误,请问这个需要怎么改?

各种illegal access. 有时候jdk里面的类也会报出进程的问题


加载中
0
lieefu
lieefu
初步判断 log4j 的jar包不全,执行 mvn install 重新下载log4j的jar包,或者手工拷贝到WEB-INF/lib或者 tomcat/lib目录下
开源中国首席脑科主任
开源中国首席脑科主任
回复 @lieefu : 是不是maven tomcat需要特别的配置
开源中国首席脑科主任
开源中国首席脑科主任
回复 @lieefu : 一样的
lieefu
lieefu
回复 @开源中国首席脑科主任 : 开发环境报错么?部署环境的jdk和tomcat版本跟开发环境一致么?
开源中国首席脑科主任
开源中国首席脑科主任
log4j用了最新版本的jar而且有时会报错另外的错误 ,但都是tomcat maven插件redeploy时进程被占用的错误
0
p
printf
Could not load [org.apache.log4j.FileAppenderCustomizer]
返回顶部
顶部