Eclipse3 + Lomboz3.01 + emf-sdo-runtime-2.0.0插件 + Tomcat5.027开发Jsp应用

整合后出现的问题

1、Bootstrap: Class loader creation threw exception
java.lang.ExceptionInInitializerError
 at org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:207)
 at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:189)
 at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:160)
 at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)
 at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:193)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:399)
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.(JdkCompat.java:55)
 ... 6 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)
 ... 10 more
Caused by: java.lang.NullPointerException
 at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
 ... 11 more
既不能正确的启动和关闭Tomcat

解决方案:

Possible solution:

I edited the file "tomcat50x.server" under
C:/eclipse/plugins/com.objectlearn.jdt.j2ee_3.0.1/servers
and changed

-Djava.endorsed.dirs="${serverRootDirectory}/bin;${serverRootDirectory}/common/endorsed"

to

-Djava.endorsed.dirs="${serverRootDirectory}/common/endorsed"

in the following 'tags':

-DJAVA_HOME="${jrePath}" -Dcatalina.base="${serverRootDirectory}" -Dcatalina.home="${serverRootDirectory}" -Djava.io.tmpdir="${serverRootDirectory}/temp" -Djava.endorsed.dirs="${serverRootDirectory}/bin;${serverRootDirectory}/common/endorsed"

and

-DJAVA_HOME="${jrePath}" -Dcatalina.base="${serverRootDirectory}" -Dcatalina.home="${serverRootDirectory}" -Djava.io.tmpdir="${serverRootDirectory}/temp" -Djava.endorsed.dirs="${serverRootDirectory}/bin;${serverRootDirectory}/common/endorsed"

This matches the value used in my catalina.bat file when lauched from the command prompt.

这样Eclipse可以正常的启动和关闭Tomcat了

2、解压Eclipse后,不能正常启动,configuration目录中错误日志显示如下信息:

SESSION 八月 22, 2004 13:16:28.46 -----------------------------------------------
eclipse.buildId=I200406251208
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN

!ENTRY org.eclipse.osgi 八月 22, 2004 13:16:28.46
!MESSAGE Error registering XML parser services.
!STACK 0
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at org.eclipse.core.runtime.adaptor.EclipseAdaptor.registerEndorsedXMLParser(EclipseAdaptor.java:272)
 at org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStart(EclipseAdaptor.java:253)
 at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:61)
 at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
 at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:553)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:477)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:273)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:243)
 at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:166)
 at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:425)
 at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:216)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 at org.eclipse.core.launcher.Main.run(Main.java:644)
 at org.eclipse.core.launcher.Main.main(Main.java:628)

!ENTRY org.eclipse.osgi 八月 22, 2004 13:16:28.125
!MESSAGE Startup error
!STACK 1
java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at org.eclipse.core.runtime.adaptor.PluginConverterImpl.parsePluginInfo(PluginConverterImpl.java:552)
 at org.eclipse.core.runtime.adaptor.PluginConverterImpl.fillPluginInfo(PluginConverterImpl.java:111)
 at org.eclipse.core.runtime.adaptor.PluginConverterImpl.convertManifest(PluginConverterImpl.java:655)
 at org.eclipse.core.runtime.adaptor.EclipseBundleData.generateManifest(EclipseBundleData.java:219)
 at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadManifest(EclipseBundleData.java:177)
 at org.eclipse.core.runtime.adaptor.EclipseBundleData.getManifest(EclipseBundleData.java:159)
 at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadFromManifest(EclipseBundleData.java:266)
 at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultBundleData.initializeNewBundle(DefaultBundleData.java:77)
 at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$1.begin(DefaultAdaptor.java:451)
 at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:746)
 at org.eclipse.osgi.framework.internal.core.Framework$2.run(Framework.java:664)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:715)
 at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:659)
 at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:219)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:800)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:429)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:222)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
 at org.eclipse.core.launcher.Main.run(Main.java:644)
 at org.eclipsecore.launcher.Main.main(Main.java:628)


解决方案:

环境变量path中的jdk版本指向了低于1.4的版本,把你安装的版本路径提前,如d:/jkd142/bin放在前面即可
3、设置source and output path的菜单为:Eclipse的

【window】-【Preference】-【Java】-【new Project】

阅读更多
个人分类: j2ee框架
想对作者说点什么? 我来说一句

emf-sdo-runtime-2.0.0

2007年06月27日 2.93MB 下载

Eclipse3 Maven插件

2011年06月10日 11.24MB 下载

eclipse3的tomcat插件

2007年07月23日 262KB 下载

Eclipse3 jetty插件

2011年06月10日 5.11MB 下载

lomboz.301.zip

2007年12月08日 6.34MB 下载

eclipse3·2汉化插件

2009年03月02日 6.24MB 下载

没有更多推荐了,返回首页

不良信息举报

Eclipse3 + Lomboz3.01 + emf-sdo-runtime-2.0.0插件 + Tomcat5.027开发Jsp应用

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭