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

原创 2004年08月21日 17:18:00

整合后出现的问题

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】

推荐一款java代码生成的插件EMF

什么是EMF? EMF (Eclipse Modeling Framework) 是基于Eclipse的模型化框架。 为什么要使用EMF? 首要原因是EMF提供了非常清晰,可维护性很强的...
  • beijing20120926
  • beijing20120926
  • 2014年01月09日 12:50
  • 1575

【Qt】VS开发Qt程序的国际化使用

一字一句,解读VS进行QT国际化翻译过程!
  • u010111033
  • u010111033
  • 2016年12月16日 14:00
  • 1066

runtime从入门到精通(六)—— runtime在实际开发中的应用

上一篇文章,我们学习了runtime的消息发送和消息转发机制(查看链接: runtime从入门到精通(五)—— 消息发送和消息转发 ),倒到此为止,有关runtime的理论知识介绍就先告于段落,小伙伴...
  • coyote1994
  • coyote1994
  • 2016年09月08日 12:08
  • 2100

图解利用Eclipse3+Lomboz3+Tomcat开发JSP

  • 2013年04月14日 21:05
  • 1.45MB
  • 下载

eclipse3[1].1.2+tomcat5.5+lomboz3.1配置文档

  • 2008年05月06日 07:46
  • 457KB
  • 下载

emf-sdo-runtime-2.0.0

  • 2007年06月27日 06:58
  • 2.93MB
  • 下载

Eclipse3_4+Lomboz3_3+Tomcat6_0配置

  • 2009年02月11日 20:09
  • 354KB
  • 下载

Eclipse3_0+jboss4Lomboz 3开发J2EE

  • 2008年04月04日 19:56
  • 741KB
  • 下载

eclipse 3.3 + tomcat 6.0.18 + lomboz 3.3 搭建 servlet/JSP开发环境

原文地址:http://www.icycandy.com/blog/servlet-jsp-environment-with-eclipse-tomcat-lomboz 因为软件工程...
  • scoliver
  • scoliver
  • 2012年03月07日 08:56
  • 619

eclipse3.X集成maven3.0.4插件详细图解(安装、配置)

maven3 安装:     安装 Maven 之前要求先确定你的 JDK 已经安装配置完成。Maven是 Apache 下的一个项目,目前最新版本是 3.0.4,我用的也是这个。      ...
  • W441675
  • W441675
  • 2014年11月17日 11:47
  • 572
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Eclipse3 + Lomboz3.01 + emf-sdo-runtime-2.0.0插件 + Tomcat5.027开发Jsp应用
举报原因:
原因补充:

(最多只允许输入30个字)