M3 xerces classloading problem [message #78644] |
Tue, 01 March 2005 10:00  |
Eclipse User |
|
|
|
Originally posted by: fsauer.us.ibm.com
Code that previously extended M2 and functioned properly, now breaks with
exceptions like these every time I attempt
to use org.w3c.dom classes like Node and NamedNodeMap. What happened and
how do i fix it?
I did notice that you now ship xercesImpl with M3, whereas previously we
had to add it ourselves.
Is it a different version? I tried -clean and a new workspace, but this
keeps happening.
java.lang.LinkageError: Class org/w3c/dom/NamedNodeMap violates loader
constraints
at
org.eclipse.vtp.editor.actions.ActionSupport.currentPosGetAt tributeValue(ActionSupport.java:108)
at
org.eclipse.vtp.editor.actions.ActionSupport.isElementWithAt tribute(ActionSupport.java:186)
at
org.eclipse.vtp.editor.actions.ActionSupport.isElementWithNe xt(ActionSupport.java:165)
at
org.eclipse.vtp.editor.ccxml.actions.EditReferencedFileActio n.isVisible(EditReferencedFileAction.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.wst.sse.ui.internal.extension.ExtendedEditorActi onProxy.invoke(ExtendedEditorActionProxy.java:132)
at $Proxy0.isVisible(Unknown Source)
at
org.eclipse.wst.sse.ui.extension.ExtendedEditorActionBuilder $ExtendedContributor.setActiveEditor(ExtendedEditorActionBui lder.java:271)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.addExtendedConte xtMenuActions(StructuredTextEditor.java:576)
at
org.eclipse.vtp.editor.StructuredVoicetoolsEditor.addExtende dContextMenuActions(StructuredVoicetoolsEditor.java:92)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.editorContextMen uAboutToShow(StructuredTextEditor.java:1359)
at
org.eclipse.ui.texteditor.AbstractTextEditor$11.menuAboutToS how(AbstractTextEditor.java:2137)
at
org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuMan ager.java:285)
and related:
java.lang.IncompatibleClassChangeError
at
org.eclipse.vtp.editor.actions.ActionSupport.currentPosGetAt tributeValue(ActionSupport.java:108)
at
org.eclipse.vtp.editor.actions.ActionSupport.isElementWithAt tribute(ActionSupport.java:186)
at
org.eclipse.vtp.editor.actions.ActionSupport.isElementWithNe xt(ActionSupport.java:165)
at
org.eclipse.vtp.editor.ccxml.actions.EditReferencedFileActio n.isVisible(EditReferencedFileAction.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.wst.sse.ui.internal.extension.ExtendedEditorActi onProxy.invoke(ExtendedEditorActionProxy.java:132)
at $Proxy0.isVisible(Unknown Source)
at
org.eclipse.wst.sse.ui.extension.ExtendedEditorActionBuilder $ExtendedContributor.contributeToPopupMenu(ExtendedEditorAct ionBuilder.java:122)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.addExtendedConte xtMenuActions(StructuredTextEditor.java:577)
at
org.eclipse.vtp.editor.StructuredVoicetoolsEditor.addExtende dContextMenuActions(StructuredVoicetoolsEditor.java:92)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.editorContextMen uAboutToShow(StructuredTextEditor.java:1359)
at
org.eclipse.ui.texteditor.AbstractTextEditor$11.menuAboutToS how(AbstractTextEditor.java:2137)
at
org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuMan ager.java:285)
|
|
|
|
|
|
Re: M3 xerces classloading problem [message #81913 is a reply to message #79583] |
Thu, 10 March 2005 06:37  |
Eclipse User |
|
|
|
On Wed, 02 Mar 2005 20:46:45 -0500, Frank Sauer <fsauer65@mac.com> wrote:
>>> Why was this jar included ?,
>>> Can we indeed do without ?,
>>> Does this break something I'm not currently using?
>>>
These jars were included for required/improved "validation" checking.
You can live without if you don't need XML Schema validation, or if you
are, somehow, supplying another equivelent version of xerces on your classpath.
You may also want to follow bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=87621
as some classloader issues are explored.
By next milestone, we plan to have xerces plugin in the plugin "stack" like
Eclipse base used to have, and, eventually, some ability to update it to newer versions
of xerces as they become available.
I suspect there will continue to be issues in this area so appreciate your early/thourogh testing.
In general, one contraint (that is solution) may be that some plugins in pre-req chain may have to
be in a certain order.
|
|
|
Powered by
FUDForum. Page generated in 0.07118 seconds