新手开发遇到问题,求帮助解决!!!

13-04-16 liu136346205
ERROR FileManager (${env:CATALINA_HOME}/logs/jdon.log) java.io.FileNotFoundException: ${env:CATALINA_HOME}\logs\jdon.log (文件名、目录名或卷标语法不正确。)

2013-04-16 17:29:33,552 ERROR Unable to invoke method createAppender in class org.apache.logging.log4j.core.appender.FileAppender for element File java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.logging.log4j.core.config.BaseConfiguration.createPluginObject(BaseConfiguration.java:711)

at org.apache.logging.log4j.core.config.BaseConfiguration.createConfiguration(BaseConfiguration.java:477)

at org.apache.logging.log4j.core.config.BaseConfiguration.createConfiguration(BaseConfiguration.java:469)

at org.apache.logging.log4j.core.config.BaseConfiguration.doConfigure(BaseConfiguration.java:156)

at org.apache.logging.log4j.core.config.BaseConfiguration.start(BaseConfiguration.java:114)

at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:251)

at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:267)

at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:134)

at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:75)

at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:30)

at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:165)

at com.jdon.container.startup.ServletContainerListener.<clinit>(ServletContainerListener.java:45)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:355)

at java.lang.Class.newInstance(Class.java:308)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4150)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: java.lang.IllegalStateException: Unable to create a manager

at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:70)

at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:47)

at org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:58)

at org.apache.logging.log4j.core.appender.FileAppender.createAppender(FileAppender.java:99)

... 46 more

整合之后,出现上面的情况,该怎么解决?

1
liu136346205
2013-04-16 17:41
tomcat 6.X

用的框架是jdon framework6.6.3

banq
2013-04-16 17:58
2013-04-16 17:39 "@liu136346205

"的内容

ERROR FileManager (${env:CATALINA_HOME}/logs/jdon.log) java.io.FileNotFoundException: ${env:CATALINA_HOME}\logs\jdon.log ...

这是log4j2 报错,可忽略,或者修改log4j2.xml,将其中${env:CATALINA_HOME}去除,默认是在tomcat/logs目录下产生jdon框架的日志。

liu136346205
2013-04-17 10:38
@banq

有没有视频教程,求教啊?

我是直接导框架中的例子,之前出现上述情况,根据你的指点解决掉了,然后新的问题也出现了。

有没有完整的建一个全新的案例教程呢?

[该贴被liu136346205于2013-04-17 10:38修改过]

猜你喜欢