Return-Path: Delivered-To: apmail-xmlbeans-user-archive@www.apache.org Received: (qmail 93791 invoked from network); 23 Dec 2006 07:05:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Dec 2006 07:05:46 -0000 Received: (qmail 23412 invoked by uid 500); 23 Dec 2006 07:05:52 -0000 Delivered-To: apmail-xmlbeans-user-archive@xmlbeans.apache.org Received: (qmail 23394 invoked by uid 500); 23 Dec 2006 07:05:51 -0000 Mailing-List: contact user-help@xmlbeans.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: user@xmlbeans.apache.org List-Id: Delivered-To: mailing list user@xmlbeans.apache.org Received: (qmail 23383 invoked by uid 99); 23 Dec 2006 07:05:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2006 23:05:51 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [63.119.28.34] (HELO smtpwest.webmethods.com) (63.119.28.34) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2006 23:05:42 -0800 Received: from EXEAST1.webmethods.com (Not Verified[10.1.1.20]) by smtpwest.webmethods.com with MailMarshal (v6,1,6,1172) id ; Fri, 22 Dec 2006 23:05:21 -0800 Received: by exeast1 with Internet Mail Service (5.5.2655.55) id ; Sat, 23 Dec 2006 02:05:20 -0500 Message-ID: From: Murali Gunasekaran To: user@xmlbeans.apache.org Subject: RE: Eclipse plugin Exception: java.lang.NoClassDefFoundError: org /apache/xmlbeans/XmlException Date: Sat, 23 Dec 2006 02:05:19 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C72660.B4EC3CE2" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C72660.B4EC3CE2 Content-Type: text/plain Thanks. Here is the complete stack trace. Most of it is related to the plugin code. The line where the exception occurs (getElements) is where the class containing the XMLBeans code is accessed (is not part of the trace). !ENTRY org.eclipse.ui 4 0 2006-12-22 18:37:13.377 !MESSAGE org/apache/xmlbeans/XmlException !STACK 0 java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolderDial og$1.getElements(AddEditFolderDialog.java:191) at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.j ava:927) at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredVie wer.java:868) at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewe r.java:984) at org.eclipse.jface.viewers.AbstractListViewer.inputChanged(AbstractListViewer .java:303) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:250) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:15 42) at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolderDial og.createAssetTypeControl(AddEditFolderDialog.java:206) at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolderDial og.createDialogArea(AddEditFolderDialog.java:155) at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.jav a:165) at org.eclipse.jface.window.Window.create(Window.java:426) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124) at org.eclipse.jface.window.Window.open(Window.java:785) at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolderDial og.run(AddEditFolderDialog.java:148) at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddFolderAction.r un(AddFolderAction.java:55) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action ContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI tem.java:488) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContribu tionItem.java:441) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator. java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication( EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp pLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) _____ From: Dhammika [mailto:dhammika@codegen.net] Sent: Friday, December 22, 2006 10:56 PM To: user@xmlbeans.apache.org Subject: RE: Eclipse plugin Exception: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException Can you please give the complete stack trace Dhammika ---------------------------------------------------------------- Hello, I'm using XMLBeans as part of an Eclipse plugin project. I have already created a schema and generated the XML types using scomp separately and am using that JAR in my plugin to write the code. There is no compilation error in the plugin and it builds fine, but when I launch the runtime workbench to test the plugin, I get the NoClassDefFoundError. I have tried the following: 1. Adding the xbean.jar and jsr173_1.0_api.jar to the build path 2. adding the extension org.eclipse.ant.core.extraClasspathEntries 3. setting the java CLASSPATH variable with xbean.jar But nothing seems to be working... Anyone know why this problem would occur? Am I missing any required JAR at runtime that is somehow present during development (compilation)? Anyone with Eclipse plugin development experience encounter this? Thanks a lot! Murali Murali Gunasekaran Software Engineer webMethods Inc. 703.460.6065 ------_=_NextPart_001_01C72660.B4EC3CE2 Content-Type: text/html Content-Transfer-Encoding: quoted-printable

Thanks. Here is the complete stack = trace. Most of it is related to the plugin code. The line where the exception = occurs (getElements) is where the class containing the XMLBeans code is = accessed (is not part of the trace).

 

=

 

=

!ENTRY org.eclipse.ui 4 0 = 2006-12-22 18:37:13.377

!MESSAGE = org/apache/xmlbeans/XmlException

!STACK = 0

java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException

      = ;      at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolder= Dialog$1.getElements(AddEditFolderDialog.java:191)

      = ;      at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredView= er.java:927)

      = ;      at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(Structure= dViewer.java:868)

      = ;      at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredV= iewer.java:984)

      = ;      at org.eclipse.jface.viewers.AbstractListViewer.inputChanged(AbstractListVi= ewer.java:303)

      = ;      at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:250)=

      = ;      at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.jav= a:1542)

      = ;      at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolder= Dialog.createAssetTypeControl(AddEditFolderDialog.java:206)

      = ;      at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolder= Dialog.createDialogArea(AddEditFolderDialog.java:155)<= /font>

      = ;      at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog= .java:165)

      = ;      at org.eclipse.jface.window.Window.create(Window.java:426)

      = ;      at = org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124)

      = ;      at org.eclipse.jface.window.Window.open(Window.java:785)<= /font>

      = ;      at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddEditFolder= Dialog.run(AddEditFolderDialog.java:148)

      = ;      at com.webmethods.sc.metadata.ui.library.searchfolder.actions.AddFolderActi= on.run(AddFolderAction.java:55)

      = ;      at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)=

      = ;      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Ac= tionContributionItem.java:539)

      = ;      at = org.eclipse.jface.action.ActionContributionItem.access$2(ActionContribut= ionItem.java:488)

      = ;      at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionCont= ributionItem.java:441)

      = ;      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)

      = ;      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)

      = ;      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)

      = ;      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)<= /o:p>

      = ;      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)=

      = ;      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)<= /span>

      = ;      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:4= 19)

      = ;      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

      = ;      at = org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)

      = ;      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActiva= tor.java:78)

      = ;      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat= ion(EclipseAppLauncher.java:92)

      = ;      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclip= seAppLauncher.java:68)

      = ;      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:= 400)

      = ;      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:= 177)

      = ;      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:336)=

      = ;      at org.eclipse.core.launcher.Main.basicRun(Main.java:280)=

      = ;      at org.eclipse.core.launcher.Main.run(Main.java:977)

      = ;      at org.eclipse.core.launcher.Main.main(Main.java:952)

 

=

From: = Dhammika [mailto:dhammika@codegen.net]
Sent: Friday, December = 22, 2006 10:56 PM
To: = user@xmlbeans.apache.org
Subject: RE: Eclipse = plugin Exception: java.lang.NoClassDefFoundError: = org/apache/xmlbeans/XmlException

 

Can you please give the complete stack = trace

 

Dhammika

 

---------------------------------------------------= -------------

Hello,

I’m using XMLBeans as part of an Eclipse = plugin project. I have already created a schema and generated the XML types = using scomp separately and am using that JAR in my plugin to write the = code.

 

There is no compilation error in the plugin and it = builds fine, but when I launch the runtime workbench to test the plugin, I get = the NoClassDefFoundError. I have tried the = following:

 

  1. Adding the xbean.jar = and jsr173_1.0_api.jar to the build path
  2. adding the extension = org.eclipse.ant.core.extraClasspathEntries
  3. setting = the java CLASSPATH variable with xbean.jar

 

But nothing seems to be working… Anyone know = why this problem would occur? Am I missing any required JAR at runtime that is somehow = present during development (compilation)? Anyone with Eclipse plugin = development experience encounter this?

 

Thanks a lot!

Murali

 

Murali Gunasekaran

Software Engineer

webMethods Inc.

703.460.6065

 

------_=_NextPart_001_01C72660.B4EC3CE2--