- 论坛徽章:
- 0
|
用eclipse 新建J2EE项目,自动生产的index.jsp..在lomboz view运行tomact5.0 出现一下错误..但把此文件直接复制到"C:\Tomcat 5.0\webapps\ROOT"可以正常显示..
源码如下:
- <html>;
- <head>;
- <title>;Welcome</title>;
- </head>;
- <body>;
- <center>;Welcome</center>;
- </body>;
- </html>;
复制代码
错误信息:
- Bootstrap: Class loader creation threw exception
- java.lang.ExceptionInInitializerError
- at org.apache.catalina.startup.ClassLoaderFactory.<clinit>;(ClassLoaderFactory.java:63)
- at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:103)
- at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
- Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
- at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
- at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
- at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
- at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
- at org.apache.tomcat.util.compat.JdkCompat.<clinit>;(JdkCompat.java:55)
- ... 4 more
- Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
- at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
- at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
- ... 8 more
- Caused by: java.lang.NullPointerException
- at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
- ... 9 more
复制代码 |
|