Eclipse3 + LOMBOZ3.01 + EMF-SDO-Runtime-2.0.0 plugin + Tomcat5.027 Development JSP application

xiaoxiao2021-03-06  104

Problems after integration

1, Bootstrap: Class Loader Creation Threw Exceptionjava.lang.ExceptioninInitializerRror 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.apore.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

Start and close Tomcat correctly

solution:

Possible Solution:

I edited the file "Tomcat50x.server" Under C: /Eclipse/plugins/com.ObjectLearn.jdt.j2ee_3.0.1/servers and change

-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 / endorse

and

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

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

Such Eclipse can start and close Tomcat normally.

2, after extracting the Eclipse, you cannot start normally, the error log in the configuration directory displays the following information:

SESESSION August 22, 2004 13: 16: 28.46 --------------------------------------- -------- Eclipse.buildid = i200406251208java.version = 1.3.1_01java.vendor = Sun Microsystems Inc.Bootloader Constants: OS = Win32, Arch = x86, WS = Win32, NL = zh_cn

! Entry Org.eclipse.osgi August 22, 2004 13: 16: 28.46! Message Error Registering XML Parser Services.

STACK 0java.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.oscore.Framework.internal.core.Bundlecontextim pl.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 August 22, 2004 13: 16: 28.125! Message Startup Error!

STACK 1java.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 (PluginConvertMnifest (pluginconverterimpl.java: 655) at Org.eclipse.cor e.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) Solution:

The JDK version in the environment variable PATH points to the version below 1.4, puts the version path you install, such as D: / jkd142 / bin, you can put it in front of 3, set the Source and Output Path menu: Eclipse

[Window] - [Preference] - [Java] - [New Project]

转载请注明原文地址:https://www.9cbs.com/read-124798.html

New Post(0)