expected xerces version xerces-j 2.7.0 was not loaded

Having trouble installing Oxygen? Got a bug to report? Post it all here.
pjamason
Posts: 1
Joined: Fri Jan 06, 2006 5:33 am

expected xerces version xerces-j 2.7.0 was not loaded

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
vrvolle
Posts: 4
Joined: Sun Jul 04, 2004 7:42 pm

Sun JDK required: Since when?

Post 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?
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
vrvolle
Posts: 4
Joined: Sun Jul 04, 2004 7:42 pm

Post by vrvolle »

Already tried that but I am always getting some error message.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
vrvolle
Posts: 4
Joined: Sun Jul 04, 2004 7:42 pm

Must use IBM JDK

Post by vrvolle »

Since the system I am developing will finally run with an IBM JDK (WebSphere) I am hesitating to switch the JDK.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply