Lomboz J2EE Plugin から,Tomcat 5.0を起動する†Eclipse で Lomboz J2EE Plugin を使うと,Lomboz Pluginから,Tomcat を起動し,Eclipseのデバッガでデバッグしたりすることができるようになります. しかし,Tomcat 5.0.x では,次のようなエラーが出て,Eclipse から Tomcat を起動できません. 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 どうやら,Lomboz が持っているサーバ定義ファイルに間違いがあるのが原因のようです. ${ECLIPSE_HOME}/plugins/com.objectlearn.jdt.j2ee_3.0.1/servers/tomcat50x.server を編集し,以下の場所を修正します. 修正前: -Djava.endorsed.dirs="${serverRootDirectory}/bin;${serverRootDirectory}/common/endorsed 修正後: -Djava.endorsed.dirs="${serverRootDirectory}/common/endorsed" 2カ所あるので,両方とも修正します. 参考ページ† |
Last-modified: 2005-03-26 (土) 02:46:50
|