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

Bug 19252

Summary: Xerces 2.0.1 crashes F2 and later
Product: [Eclipse Project] Platform Reporter: Timothy Folks <timothy.folks>
Component: ResourcesAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: aacovergaauw, abielr, djoyce2, ggierlik, junaid.bhatra, kenneth.dean, nbensimon, pochmans
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Timothy Folks CLA 2002-06-05 01:36:17 EDT
Using JDK 1.4. Replacing Crimson w/ Xerces by placing xercesImpl.jar in the
extensions directory causes Eclipse not to start. Below is the log file.

!SESSION ----------------------------------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Jun 05, 2002 24:37:18.602
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ExceptionInInitializerError
	at
org.eclipse.core.internal.plugins.RegistryLoader.processManifestFile(RegistryLoader.java:89)
	at
org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathFile(RegistryLoader.java:136)
	at
org.eclipse.core.internal.plugins.RegistryLoader.processPluginPathEntry(RegistryLoader.java:127)
	at
org.eclipse.core.internal.plugins.RegistryLoader.processManifestFiles(RegistryLoader.java:104)
	at
org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:63)
	at
org.eclipse.core.internal.plugins.RegistryLoader.parseRegistry(RegistryLoader.java:71)
	at
org.eclipse.core.internal.runtime.InternalPlatform.parsePlugins(InternalPlatform.java:705)
	at
org.eclipse.core.internal.runtime.InternalPlatform.loadRegistry(InternalPlatform.java:654)
	at
org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.java:550)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader.java:873)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:732)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:244)
	at org.eclipse.core.launcher.Main.run(Main.java:693)
	at org.eclipse.core.launcher.Main.main(Main.java:526)
Caused by: java.lang.ClassCastException:
org.apache.xerces.parsers.StandardParserConfiguration
	at org.apache.xerces.parsers.SAXParser.<init>(SAXParser.java:95)
	at
org.eclipse.core.internal.plugins.PluginParser.initializeParser(PluginParser.java:78)
	at org.eclipse.core.internal.plugins.PluginParser.<clinit>(PluginParser.java:43)
	... 23 more
Comment 1 DJ Houghton CLA 2002-06-05 09:25:36 EDT
I'm not sure I understand your setup.
What exactly did you do with xercesImpl.jar?
What changes did you make to your SDK install?
What is Crimson? This is not part of the Eclipse SDK download.
Thanks.
Comment 2 Timothy Folks CLA 2002-06-05 14:31:36 EDT
Crimson is the JAXP XML parser that is used by default in JRE/JSDK 1.4. 
It's the *other* Apache XML parser and was donated by Sun. If I place 
xercesImpl.jar and xmlParserAPIs.jar in the JRE ext directory (which 
overrides Crimson w/ Xerces), I get the bug above.
Comment 3 Timothy Folks CLA 2002-06-17 04:01:48 EDT
The problem is that, contrary to what Sun's JAXP pluggability FAQ tells you,
must place both xercesImpl.jar and xmlParserAPIs.jar into the jre\lib\endorsed
directory. This is not an Eclipse bug, but a Sun documentation bug.
Comment 4 Grzegorz Gierlik CLA 2002-06-26 05:52:17 EDT
*** Bug 20687 has been marked as a duplicate of this bug. ***
Comment 5 John Arthorne CLA 2002-07-12 14:58:42 EDT
*** Bug 21214 has been marked as a duplicate of this bug. ***
Comment 6 Sonia Dimitrov CLA 2002-10-28 09:30:55 EST
*** Bug 25389 has been marked as a duplicate of this bug. ***
Comment 7 DJ Houghton CLA 2003-03-19 14:24:03 EST
*** Bug 34250 has been marked as a duplicate of this bug. ***
Comment 8 Rafael Chaves CLA 2003-05-14 11:07:49 EDT
*** Bug 37577 has been marked as a duplicate of this bug. ***
Comment 9 Rafael Chaves CLA 2004-01-19 10:58:34 EST
*** Bug 50173 has been marked as a duplicate of this bug. ***
Comment 10 John Arthorne CLA 2004-01-20 11:00:42 EST
*** Bug 50058 has been marked as a duplicate of this bug. ***
Comment 11 Rafael Chaves CLA 2004-03-05 16:19:19 EST
*** Bug 53912 has been marked as a duplicate of this bug. ***