Page 1 of 1

expected xerces version xerces-j 2.7.0 was not loaded

Posted: Fri Jan 06, 2006 5:43 am
by pjamason
Hi,

I get the following error when trying to open an xml or xsd document in Eclipse 3.0. I'm using the 6.1 oxygenxml plugin:

18:33:26,549 841 ERROR [ main ] com.oxygenxml.editor.EditorPlugin - The expected Xerces version Xerces-J 2.7.0 was not loaded due to the fact that the version XML4J 4.2.2 is added as an extension to the JVM. This can cause program malfunction. It is strongly recommended to remove the Xerces implementation located at: jar:file:/usr/lib/jvm/java-1.4.2-ibm-1.4.2.2/jre/lib/xml.jar!/org/apache/xerces/impl/Version.class

We've attempted to replace this xml.jar with the 2 new jars that have apparently replaced it in the xerces distribution: xml-apis.jar and xercesImpl.jar. However, eclipse will not start if we remove the xml.jar file from this directory as suggested. I'm unable to paste the eclipse error log (or anything into this dialog), but I can send it to you.

Should we migrate to eclipse 3.1 / oxygenxml 6.2? Thanks in advance for any help.

Paul

Posted: Fri Jan 06, 2006 12:52 pm
by george
Hi Paul,

The problem is that the IBM JDK contains a Xerces version in that xml.jat file. The solution should be to use a Java JDK to run Eclipse (note that we specify a Sun JVM as requirement on our download page).

Best Regards,
George

Sun JDK required: Since when?

Posted: Sat Jan 14, 2006 1:51 pm
by vrvolle
I am using Oxygen for at least two years and have worked with the IBM JDK for over a year. Now I have switched to a new computer at work (re-installed oxygen) and have the same problem as pjamason. What has changed?

Posted: Sat Jan 14, 2006 2:50 pm
by george
Hi,

It is like that from the beginning as far as I remember... I do not know if the IBM JDK has support for endorsed directory, maybe you can add the Xerces jar there to overwrite the one shipped in xml.jar?

Best Regards,
George

Posted: Sat Jan 14, 2006 2:59 pm
by vrvolle
Already tried that but I am always getting some error message.

Posted: Sun Jan 15, 2006 12:35 pm
by george
Hi,

Please use a Java from Sun to run oXygen, if you are on Windows and use the standalone version the best thing is to use the installation kit that contains a JVM. That JVM will be used only by oXygen.

Best Regards,
George

Must use IBM JDK

Posted: Sun Jan 15, 2006 1:53 pm
by vrvolle
Since the system I am developing will finally run with an IBM JDK (WebSphere) I am hesitating to switch the JDK.

Posted: Sun Jan 15, 2006 2:06 pm
by george
You can use the IBM Java to run your application developed in Eclipse, that can be different than the Java used to run Eclipse itself. See the JRE tab when you configure a Run configuration for specifying the JRE used by that configuration.

Best regards,
George