Skip to main content

alphaWorks  >  Forums  >  Semantic Tools for Web Services  >  developerWorks

Exception Occured!! java.lang.NoClassDefFoundError: org/apache/xerces/dom3/bootstrap/DOMImplementati    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Oct 21, 2005 12:07 PM Last Post By: Jim Hsu Threads: [ Previous | Next ]

Posts: 1
Registered: Oct 21, 2005 05:57:04 AM
Exception Occured!! java.lang.NoClassDefFoundError: org/apache/xerces/dom3/bootstrap/DOMImplementati
Posted: Oct 21, 2005 06:09:09 AM
Click to report abuse...   Click to reply to this thread Reply
I've installed Semantic Tools for Web Services with the following five files:

eclipse-SDK-3.1RC4-win32.zip
wtp-sdk-1.0M8.zip
emf-sdo-xsd-SDK-I200506230200.zip
GEF-SDK-3.1M6.zip
JEM-SDK-I20050715.zip

After download and installation, I followed the installation instructions to launch Eclipse with the argument as below:

D:\eclipse\eclipse.exe -vmargs -Djava.endorsed.dirs="D:\eclipse\plugins\org.apache.xerces_2.7.0\jars"

(Because there is a subdirectory called "org.apache.xerces_2.7.0" within wtp-sdk-1.0M8.zip rather than "org.apache.xerces_2.6.2", I changed the command line argument indicated in the installation instructions accordingly.
Btw: I cann't find wtp-sdk-1.0M4.zip anywhere!
)

Then I tried to create a sample project following the document "Semantic Tools for Web Services User Guide>Concepts>Getting Started".

When proceeding to Setp 3
"In the Navigator view, expand all the nodes of the newly created samples project. Right-click "RequestPopulationService.wsdl" and select "Open With > Semantic Annotation Editor"."
The file cannot be displayed in the main window.

How can I solve this Problem?? If you know that, please reply to this article or mail me: chen-yz04@mails.tsinghua.edu.cn
Thanks a lot!!

The error log is as follow:

!ENTRY org.eclipse.ui 4 4 2005-10-21 17:15:42.119
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-10-21 17:15:42.119
!MESSAGE org/apache/xerces/dom3/bootstrap/DOMImplementationRegistry
!STACK 0
java.lang.NoClassDefFoundError: org/apache/xerces/dom3/bootstrap/DOMImplementationRegistry
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.ibm.creole.semantics.annotations.ui.editor.WsdlAnnotationEditor.init(WsdlAnnotationEditor.java:139)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:773)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:572)
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.PartPane.requestActivation(PartPane.java:239)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:88)
at org.eclipse.ui.internal.presentations.PresentablePart.setFocus(PresentablePart.java:137)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:92)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:272)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.handleMouseDown(AbstractTabFolder.java:342)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder$3.mouseDown(AbstractTabFolder.java:79)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:133)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
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:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Jim Hsu

Posts: 52
Registered: Nov 19, 2004 10:44:22 AM
Re: Exception Occured!! java.lang.NoClassDefFoundError: org/apache/xerces/dom3/bootstrap/DOMImplemen
Posted: Oct 21, 2005 12:07:49 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hello Shen (murkylight) and welcome to the forums.

Unfortunately, the latest version 2.7.0 of Xerces introduces a number of changes that is incompatible with the currently available Semantic Tools for Web Services that appears on alphaWorks. These problems will be properly addressed in the upcoming new release.

In the meantime, please take the following steps to fix your error:

1. Download Xerces 2.6.2 from here:
http://archive.apache.org/dist/xml/xerces-j/binaries/

(I used this file: http://archive.apache.org/dist/xml/xerces-j/binaries/Xerces-J-bin.2.6.2.zip)

2. Unzip it to a convenient directory.

3. Launch eclipse.exe from a command line using the path of the directory that contains
xercesImpl.jar unzipped during Step 2. For example:

D:\eclipse\eclipse.exe -vmargs -Djava.endorsed.dirs="D:\downloads\xerces-2_6_2"

Note: this directory does not have \jars at the end and needs to be named according to your filesystem.

If the above steps do not solve your problem, please download a clean copy of Eclipse WTP all-in-one from here:
http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R-0.7-200507290654/wtp-all-in-one-0.7-win32.zip

and try the above Xerces fix again. I have verified this solution works on Windows.

Thanks again for posting and I wish you the best.

-Jim Hsu

Point your RSS reader here for a feed of the latest messages in all forums