OS X problem with Oxygen 6 running in Eclipse 3.1M7 on JDK 5

Having trouble installing Oxygen? Got a bug to report? Post it all here.
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

OS X problem with Oxygen 6 running in Eclipse 3.1M7 on JDK 5

Post by msqr »

When I run Eclipse 3.1 M7 on OS X inside JDK 5 (i.e. Eclipse itself is running in JDK 1.5), when I try to open any XML file with Oxygen 6 (from the 3.1 M7 update site) I get the following error:

Unable to create this part due to an internal error. Reason for the failure: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

Code: Select all

org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.createDatatypeValidatorFactory(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.IntegratedParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.IntegratedParserConfiguration.<init>(Unknown Source)
at ro.sync.xml.parser.ParserCreator.newXmlParserConfiguration(Unknown Source)
at ro.sync.xml.parser.ParserCreator.A(Unknown Source)
at ro.sync.xml.parser.ParserCreator.newXRNoValid(Unknown Source)
at ro.sync.contentcompletion.xml.detection.A.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.detection.E.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.detection.E.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.M.B(Unknown Source)
at ro.sync.contentcompletion.xml.N.B(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.I(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xml.M.B(Unknown Source)
at com.oxygenxml.editor.editors.xml.M.getContentAssistant(Unknown Source)
at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:332)
...
I need to run in JDK5 for the project I'm working on. Any ideas?
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

Post by msqr »

Also, when I try to open an XSL file, I get:

Code: Select all

java.lang.NoClassDefFoundError
at org.apache.xerces.impl.xs.XSModelImpl.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.B.E.A(Unknown Source)
at ro.sync.contentcompletion.xml.B.B.A(Unknown Source)
at ro.sync.contentcompletion.xml.B.B.A(Unknown Source)
at ro.sync.contentcompletion.D.G.<init>(Unknown Source)
at ro.sync.contentcompletion.D.G.L(Unknown Source)
at com.oxygenxml.editor.editors.xsl.B.I(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xsl.B.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xsl.A.B(Unknown Source)
at com.oxygenxml.editor.editors.xml.M.getContentAssistant(Unknown Source)
at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:332)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2517)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:314)
at com.oxygenxml.editor.editors.xml.XMLEditor.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:577)
...

My Eclipse session info:

Code: Select all

eclipse.buildId=I20050513-1415
java.version=1.5.0_02
java.vendor=Apple Computer, Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
Framework arguments: -keyring /Volumes/Renton/Users/matt/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch ppc -keyring /Volumes/Renton/Users/matt/.eclipse_keyring -consoleLog -showlocation
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Eclipse 3.0.x?

Post by dnedrow »

I have to ask, does it work for you in the current release version (3.0.2)?

-David
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Post by dnedrow »

Never mind re: 3.0.2.
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Works here, Tiger, JDK 5, Eclipse 3.1M7

Post by dnedrow »

I downloaded Eclipse 3.1M7 and the matching oXygen plugin. I then updated the oXygen plugin.

I'm able to open existing XML files as well as create new ones.

This is under 10.4.1 running J2SE 5 (JDK 1.5).

-David
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

Post by msqr »

I tried again from scratch: downloaded eclipse 3.1m7, Oxygen XML 6 for M7, and even switched back to 1.4.2 JDK. I get:

Code: Select all

org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.createDatatypeValidatorFactory(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.IntegratedParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.IntegratedParserConfiguration.<init>(Unknown Source)
at ro.sync.xml.parser.ParserCreator.newXmlParserConfiguration(Unknown Source)
at ro.sync.xml.parser.ParserCreator.A(Unknown Source)
at ro.sync.xml.parser.ParserCreator.newXRNoValid(Unknown Source)
at ro.sync.contentcompletion.xml.detection.A.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.detection.E.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.detection.E.<init>(Unknown Source)
at ro.sync.contentcompletion.xml.M.B(Unknown Source)
at ro.sync.contentcompletion.xml.N.B(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.I(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xml.A.<init>(Unknown Source)
at com.oxygenxml.editor.editors.xml.M.B(Unknown Source)
at com.oxygenxml.editor.editors.xml.M.getContentAssistant(Unknown Source)
at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:332)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2517)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:314)
at com.oxygenxml.editor.editors.xml.XMLEditor.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:577)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:357)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:559)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:266)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1064)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1013)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1222)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:406)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:719)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:631)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:594)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2254)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2185)
at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage.java:2177)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2163)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2158)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2140)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:98)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:98)
at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:120)
at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:326)
at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:650)
at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:409)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1374)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1398)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1383)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1231)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3024)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2685)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
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.invokeFramework(Main.java:330)
at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
and my Eclipse info is:

Code: Select all

eclipse.buildId=I20050513-1415
java.version=1.4.2_07
java.vendor=Apple Computer, Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
Framework arguments: -keyring /Volumes/Renton/Users/matt/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch ppc -keyring /Volumes/Renton/Users/matt/.eclipse_keyring -consoleLog -showlocation
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,
msqr wrote:

Code: Select all


Command-line arguments:  -os macosx -ws carbon -arch ppc -keyring /Volumes/Renton/Users/matt/.eclipse_keyring -consoleLog -showlocation
Pass -clean as command-line argument.

Best regards,
Sorin
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

Post by msqr »

sorin wrote:Pass -clean as command-line argument.
That didn't seem to do anything. I noticed the following error when I launch Eclipse:

Code: Select all

!ENTRY org.eclipse.core.runtime 4 0 2005-05-23 07:50:41.852
!MESSAGE Could not create content describer for com.oxygenxml.editor.com.oxygenxml.editor.OxygenFile. Content type has been disabled.
!STACK 0
java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at ro.sync.xml.encoding.D$_A.<init>(Unknown Source)
at ro.sync.xml.encoding.D$_A.<init>(Unknown Source)
at ro.sync.xml.encoding.D.A(Unknown Source)
at ro.sync.xml.encoding.D.A(Unknown Source)
at ro.sync.xml.encoding.D.A(Unknown Source)
at com.oxygenxml.editor.editors.xml.XMLContentDescriber.describe(Unknown Source)
at org.eclipse.core.internal.content.ContentType.describe(ContentType.java:162)
at org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents(ContentTypeCatalog.java:188)
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:358)
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:386)
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:302)
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:316)
at org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor(ContentTypeMatcher.java:87)
at org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription(ContentDescriptionManager.java:394)
at org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor(ContentDescriptionManager.java:303)
at org.eclipse.core.internal.resources.File.getContentDescription(File.java:276)
at org.eclipse.ui.ide.IDE.getContentType(IDE.java:960)
at org.eclipse.ui.internal.ide.model.WorkbenchFile.getBaseImage(WorkbenchFile.java:34)
at org.eclipse.ui.internal.ide.model.WorkbenchResource.getImageDescriptor(WorkbenchResource.java:45)
at org.eclipse.ui.model.WorkbenchLabelProvider.getImage(WorkbenchLabelProvider.java:155)
at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(DecoratingLabelProvider.java:82)
at org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabel(DecoratingLabelProvider.java:212)
at org.eclipse.jface.viewers.StructuredViewer.buildLabel(StructuredViewer.java:1855)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:228)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:85)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:621)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:434)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1763)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:535)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:514)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:494)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalSetExpanded(AbstractTreeViewer.java:1345)
at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedElements(AbstractTreeViewer.java:1561)
at org.eclipse.ui.views.navigator.ResourceNavigator.restoreState(ResourceNavigator.java:964)
at org.eclipse.ui.views.navigator.ResourceNavigator.createPartControl(ResourceNavigator.java:284)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:310)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:185)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:559)
at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:3399)
at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2089)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:2359)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2341)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1864)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1427)
at org.eclipse.ui.internal.Workbench.access$9(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1260)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1204)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:173)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:981)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1541)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330)
at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Mircea
Posts: 131
Joined: Tue Mar 25, 2003 11:21 am

Post by Mircea »

Hi,

We have just checked it and it works ok here. Please make sure that you do not have another version of Xerces in the endorsed dirs of your JRE/JVM.
If this is not the case, and since you have said that the '-clean' option did not helped, please consider deleting the content of the 'configuration' directory from the Eclipse folder, except the 'config.ini' file.

Regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

Post by msqr »

Mircea wrote:Please make sure that you do not have another version of Xerces in the endorsed dirs of your JRE/JVM.
If this is not the case, and since you have said that the '-clean' option did not helped, please consider deleting the content of the 'configuration' directory from the Eclipse folder, except the 'config.ini' file.
I've completely deleted and re-installed Eclipse from scratch, but to no avail. I thought perhaps another plug-in might be causing the error (I'm installing the JBoss IDE as well) but even if I only install Oxygen, it simply won't work. I also don't have anything special in my environment (like Xerces in my JVM's endorsed dir). I'm working with a new install of OS 10.4.1.
dnedrow
Posts: 60
Joined: Wed Jan 28, 2004 10:51 pm

Post by dnedrow »

msqr wrote:...t even if I only install Oxygen, it simply won't work. I also don't have anything special in my environment (like Xerces in my JVM's endorsed dir). I'm working with a new install of OS 10.4.1.
In a terminal window, what is returned by:

java -version

-David
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

Post by msqr »

dnedrow wrote:In a terminal window, what is returned by:

java -version

Code: Select all

Renton-G5:~ matt$ java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56)
Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing)
wsargent
Posts: 2
Joined: Tue Jun 14, 2005 8:31 pm

I get the same bug

Post by wsargent »

Running Eclipse 3.1 with Oxygen 6.1.
wsargent
Posts: 2
Joined: Tue Jun 14, 2005 8:31 pm

Re: I get the same bug

Post by wsargent »

wsargent wrote:Running Eclipse 3.1 with Oxygen 6.1.
I should mention that I'm using JDK 1.5.0_01 on Windows. I've tried with a completely fresh install (nothing but P4WSAD installed), and still get the same problem.

The interesting thing is that it works fine if I have already have the file open when Eclipse loads. It's only if I choose a new file inside Eclipse that I get the problem.

The endorsed directory doesn't exist:

java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_04\lib\endorsed
java.ext.dirs=C:\Program Files\Java\jre1.5.0_04\lib\ext
java.home=C:\Program Files\Java\jre1.5.0_04

And the exception is

org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.createDatatypeValidatorFactory(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.IntegratedParserConfiguration.<init>(Unknown Source)
at org.apache.xerces.parsers.IntegratedParserConfiguration.<init>(Unknown Source)
at ro.sync.xml.parser.ParserCreator.newXRValid(Unknown Source)
at ro.sync.A.F.E.D.<init>(Unknown Source)
at ro.sync.A.F.M.A(Unknown Source)
at ro.sync.A.F.N.A(Unknown Source)
at com.oxygenxml.editor.editors.xml.XMLEditor.learnStructure(Unknown Source)
at com.oxygenxml.editor.editors.xml.XMLEditor.createPartControl(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:585)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2325)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2258)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2250)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2236)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2231)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2212)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: I get the same bug

Post by sorin_ristache »

Hello,
wsargent wrote:I've tried with a completely fresh install (nothing but P4WSAD installed), and still get the same problem.
Try with a completely fresh install of Eclipse (no P4WSAD installed, only the <oXygen/> plugin) to see if there is a conflict with P4WSAD.

Best regards,
Sorin
agreenblatt
Posts: 5
Joined: Wed Aug 31, 2005 12:07 am

Post by agreenblatt »

I'm getting the same error when running Eclipse 3.0.2 on Windows XP with Oxygen version 6.1.

The interesting thing here is Oxygen works just fine. It's my other plugin which rely on Xerces which suddenly has begun to fail. In fact, the other plugin works fine until I load an XSL file into Eclipse, at which point I can longer open any new files using the other plugin. I get the error:

"DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory."

Seems like the Oxygen plugin is somehow corrupting the classpath for the other plugin.

java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_04\lib\endorsed

which doesn't even exist.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,
agreenblatt wrote:I get the error:

"DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory."

Seems like the Oxygen plugin is somehow corrupting the classpath for the other plugin.
Normally Eclipse should not allow any plugin to do that. The other plugin could avoid the error probably by setting a proper context class loader when it is invoked.


Best Regards,
Sorin
agreenblatt
Posts: 5
Joined: Wed Aug 31, 2005 12:07 am

Post by agreenblatt »

I downgraded to Oxygen 6.0 and it works fine now. Looks like this is a problem with Oxygen 6.1. The other plugin that I'm having problems with works fine with all other plugins except Oxygen 6.1.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Please specify the name and version of the plugin and a download URL for the other plugin. I want to try to see what is the problem.

Best Regards,
Sorin
agreenblatt
Posts: 5
Joined: Wed Aug 31, 2005 12:07 am

Post by agreenblatt »

Unfortunately, the other plugin is a commercial plug-in being developed in-house here, so I can't post it. I will do some more investigation on this side and post as I learn more.
Post Reply