Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 40472

Summary: Mac OS X Eclipse will not launch if Xerces 2.4 is in $CLASSPATH
Product: [Eclipse Project] Platform Reporter: Adhamh Findlay <afindlay>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: tnp
Version: 2.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Adhamh Findlay CLA 2003-07-18 11:18:29 EDT
I have put Xerces 2.4 in my $CLASSPATH and afterwar Eclipse would not launch. 
This is fixed by removing Xerces from my $CLASSPATH.  I'm guessing that Eclipse
is using the $CLASSPATH Xerces instead of the Xerces in the plugins directory. 
It seems that Eclipse in general has problems with Xerces 2.3 or 2.4 so I'm
wondering if it would be possible for Eclipse to check in its plugins directory
first, and then ignore duplicate jar it finds in $CLASSPATH.


I'm pasting in the log file with the nasty exception I get....

!SESSION Jul 18, 2003 09:19:35.612 ---------------------------------------------
java.version=1.3.1
java.vendor=Apple Computer, Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
Command-line arguments: -noupdate -consoleLog -showlocation -os macosx -ws
carbon -install file:/Users/adhamh/Applications/eclipse/
!ENTRY org.eclipse.core.runtime 4 2 Jul 18, 2003 09:19:35.614
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
	at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:95)
	at
org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:439)
	at
org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:475)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:450)
	at
org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:582)
	at
org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:623)
	at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:504)
	at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1033)
	at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1734)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1537)
	at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:268)
	at
org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:490)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java:876)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java:90)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java:554)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:890)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:232)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:138)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167)
	at
org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103)
	at
org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578)
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471)
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
	at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
	at com.apple.buckyball.app.CarbonLibApp.launch(CarbonLibApp.java:67)
!ENTRY org.eclipse.core.runtime 4 2 Jul 18, 2003 09:19:35.704
!MESSAGE Plug-in "org.eclipse.ui" was unable to instantiate class
"org.eclipse.ui.internal.Workbench".
!STACK 0
org.eclipse.core.internal.boot.DelegatingLoaderException:
org.eclipse.core.runtime.CoreException: Problems encountered starting up
plug-in: "org.eclipse.core.resources".
	at
org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:490)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java:876)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java:90)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java:554)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:890)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:232)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:138)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167)
	at
org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103)
	at
org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578)
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471)
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
	at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
	at com.apple.buckyball.app.CarbonLibApp.launch(CarbonLibApp.java:67)
!ENTRY org.eclipse.core.runtime 4 2 Jul 18, 2003 09:19:35.710
!MESSAGE Plug-in "org.eclipse.ui" was unable to instantiate class
"org.eclipse.ui.internal.Workbench".
!STACK 0
org.eclipse.core.internal.boot.DelegatingLoaderException:
org.eclipse.core.runtime.CoreException: Problems encountered starting up
plug-in: "org.eclipse.core.resources".
	at
org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
	at
org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:490)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java:876)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java:90)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java:554)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:890)
	at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:232)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:138)
	at
org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167)
	at
org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103)
	at
org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578)
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471)
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
	at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
	at com.apple.buckyball.app.CarbonLibApp.launch(CarbonLibApp.java:67)
!SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Jul 18, 2003 09:19:35.725
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException:
Application not found: org.eclipse.ui.workbench.
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:856)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
	at org.eclipse.core.launcher.Main.run(Main.java:747)
	at org.eclipse.core.launcher.Main.main(Main.java:583)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.apple.buckyball.app.LaunchRunner.run(LaunchRunner.java:82)
	at com.apple.buckyball.app.LaunchRunner.callMain(LaunchRunner.java:44)
	at com.apple.buckyball.app.CarbonLibApp.launch(CarbonLibApp.java:67)
Comment 1 John Arthorne CLA 2003-07-18 16:12:10 EDT

*** This bug has been marked as a duplicate of 36643 ***
Comment 2 John Arthorne CLA 2004-06-28 14:36:52 EDT
*** Bug 68701 has been marked as a duplicate of this bug. ***