Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » M3 xerces classloading problem
M3 xerces classloading problem [message #78644] Tue, 01 March 2005 10:00 Go to next message
Eclipse UserFriend
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 #79132 is a reply to message #78644] Wed, 02 March 2005 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fsauer.us.ibm.com

I found out a possible workaround: remove xmlParserAPIs.jar from
plugins/org.eclipse.wst.xml.validation_1.0.0/jars
and everything works fine, *including validation*. If I remove
xercesImpl.jar as well, validation stops working but with
xmlParserAPIs.jar there I get the linking problems for Node and
NamedNodeMap classes....

This brings up the following questions:

Why was this jar included ?,
Can we indeed do without ?,
Does this break something I'm not currently using?

Thanks,

Frank Sauer
Re: M3 xerces classloading problem [message #79379 is a reply to message #79132] Wed, 02 March 2005 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi Frank,

What JRE are you using? If I remember correctly there was a change in the
XML parser API between 1.4.1 and 1.4.2.

Lawrence


>I found out a possible workaround: remove xmlParserAPIs.jar from
>plugins/org.eclipse.wst.xml.validation_1.0.0/jars
>and everything works fine, *including validation*. If I remove
>xercesImpl.jar as well, validation stops working but with
>xmlParserAPIs.jar there I get the linking problems for Node and
>NamedNodeMap classes....
>
>This brings up the following questions:
>
>Why was this jar included ?,
>Can we indeed do without ?,
>Does this break something I'm not currently using?
>
>Thanks,
>
>Frank Sauer
Re: M3 xerces classloading problem [message #79583 is a reply to message #79379] Wed, 02 March 2005 20:46 Go to previous messageGo to next message
Eclipse UserFriend
I am using 1.4.2 on win32

Lawrence Mandel wrote:
> Hi Frank,
>
> What JRE are you using? If I remember correctly there was a change in the
> XML parser API between 1.4.1 and 1.4.2.
>
> Lawrence
>
>
>
>>I found out a possible workaround: remove xmlParserAPIs.jar from
>>plugins/org.eclipse.wst.xml.validation_1.0.0/jars
>>and everything works fine, *including validation*. If I remove
>>xercesImpl.jar as well, validation stops working but with
>>xmlParserAPIs.jar there I get the linking problems for Node and
>>NamedNodeMap classes....
>>
>>This brings up the following questions:
>>
>>Why was this jar included ?,
>>Can we indeed do without ?,
>>Does this break something I'm not currently using?
>>
>>Thanks,
>>
>>Frank Sauer
>
>
Re: M3 xerces classloading problem [message #81913 is a reply to message #79583] Thu, 10 March 2005 06:37 Go to previous message
Eclipse UserFriend
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.
Previous Topic:external libs
Next Topic:whats this problem with html editor
Goto Forum:
  


Current Time: Wed Apr 30 13:15:10 EDT 2025

Powered by FUDForum. Page generated in 0.07118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top