facebook

Several problems with JSF editing

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #263166 Reply

    Tom Fulton
    Member

    I have gotten several exceptions while creating and editing a JSF application in MyEclipse 5.1.0 GA. The first ones occurred when accessing faces-config.xml:

    java.lang.NoClassDefFoundError: org/eclipse/jst/jsf/core/internal/provisional/jsfappconfig/JSFAppConfigUtils
    at org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$JSPEditorListener.isValidJSPEditor(StartupHandler.java:171)
    at org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$JSPEditorListener.isValidJSPEditor(StartupHandler.java:180)
    at org.eclipse.jst.jsf.designtime.internal.jsp.StartupHandler$JSPEditorListener.partOpened(StartupHandler.java:123)
    at org.eclipse.ui.internal.PartListenerList2$5.run(PartListenerList2.java:128)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)

    Others include Linkage errors:

    java.lang.LinkageError: Class org/eclipse/emf/common/util/EList violates loader constraints
    at org.eclipse.jst.jsf.core.internal.jsflibraryregistry.impl.JSFLibraryRegistryPackageImpl.initializePackageContents(JSFLibraryRegistryPackageImpl.java:395)
    at org.eclipse.jst.jsf.core.internal.jsflibraryregistry.impl.JSFLibraryRegistryPackageImpl.init(JSFLibraryRegistryPackageImpl.java:138)
    at org.eclipse.jst.jsf.core.internal.JSFCorePlugin.loadJSFLibraryRegistry(JSFCorePlugin.java:123)
    at org.eclipse.jst.jsf.core.internal.JSFCorePlugin.start(JSFCorePlugin.java:87)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)
    at java.security.AccessController.doPrivileged(Native Method)

    Finally, when attempting to edit a generated JSP, I get the following:

    org.eclipse.swt.SWTException: Widget is disposed
    at org.eclipse.swt.SWT.error(SWT.java:3374)
    at org.eclipse.swt.SWT.error(SWT.java:3297)
    at org.eclipse.swt.SWT.error(SWT.java:3268)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:435)
    at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:330)
    at org.eclipse.swt.widgets.Control.setLayoutData(Control.java:2386)
    at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.createDesignView(DesignEditSystem.java:73)
    at com.genuitec.eclipse.webdesigner3.WebDesigner3.createDesignView(WebDesigner3.java:74)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createDesignView(WebDesignerMultiPageEditor.java:399)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createDesignPage(WebDesignerMultiPageEditor.java:371)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.createPages(WebDesignerMultiPageEditor.java:293)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2588)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
    at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2478)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:275)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
    at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:267)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:243)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:306)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:651)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:817)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:815)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1069)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1168)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:249)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:243)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:283)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)

    My guess is that you’re going to tell me to download and install the All-in-One installation package. Correct? If so, do I need to uninstall both MyEclipse AND Eclipse 3.2?

    #263195 Reply

    Tom Fulton
    Member

    I tried uninstalling MyEclipse and reinstalling with the All-in-One installation package, without removing Eclipse (I still need to use Eclipse by itself for certain things). The JSP issue was resolved by this, and I am just assuming that the other issues are resolved as well.

    Does anyone know why this occurs? I mean, it seems to be that there is a clear distinction between Eclipse 3.2 and its associated jars, specifically regarding J2EE apps, and MyEclipse. I wouldn’t expect Eclipse to know anything about JSF, therefore all the JSF jars should exist in the MyEclipse distribution, unless I’m missing something.

    #263204 Reply

    Haris Peco
    Member

    TomFulton1953,

    You probably have different incompatible versions of EMF.
    see this thread https://www.genuitec.com/forums/topic/errors-activating-bundle-org-eclipse-jst-j2ee-1255/#post-263200

    Regards,

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Several problems with JSF editing

You must be logged in to post in the forum log in