facebook

4.0 GA MyEclipse Web-JSF Project Config [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Paul Smiley
    Member

    I have configured my project to add JSF capabilities and to be a web project. It deploys and all just fine. When I try to use the editor for the faces-config.xml file I get the error :

    “Project ‘xyz’ is not configured as a MyEclipse Web-JSF Project. Therefore the MyEclipse JSF Config Editor may not be used with faces-config.xml. The default XML Editor has been used to open the file instead.”

    Why is MyEclipse not recognizing my project as a JSF project???

    #236531

    Scott Anderson
    Participant

    I just did the following trying to replicate this problem:
    1) Created a new MyEclipse Web Project accepting all the defaults
    2) Added JSF capabilities and accepted all the defaults

    The JSF editor performed as expected. Can you try this and see if it works in your install? If it does, can you tell us what you did that differed from the steps above to get this error? And, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum?

    #236764

    Paul Smiley
    Member

    What operating system and version are you running?
    Windows XP Pro

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    3.1.0 BuildId: I20050627-1435

    – Was Eclipse freshly installed for MyEclipse?
    Yes

    – Are any other external plugins installed?
    No

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.* 4

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    4.0.0 GA BuildId 20050829-4.0.0-GA

    What JDK version are you using to run Eclipse? (java -version)
    jdk1.5.0_04

    What JDK version are you using to launch your application server?
    jdk1.5.0_04

    What steps did you take that resulted in the issue?
    As above

    What application server are you using?
    JBoss 4.0.2

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)

    !ENTRY org.eclipse.ui 4 0 2005-09-02 11:33:27.196
    !MESSAGE Unable to create editor ID com.genuitec.eclipse.jsf.editor.multipage.jsfconfigeditor: Project ‘xyz’ is not configured as a MyEclipse Web-JSF Project. Therefore the MyEclipse JSF Config Editor may not be used with faces-config.xml. The default XML Editor has been used to open the file instead.
    !STACK 1
    org.eclipse.ui.PartInitException: Project ‘xyz’ is not configured as a MyEclipse Web-JSF Project. Therefore the MyEclipse JSF Config Editor may not be used with faces-config.xml. The default XML Editor has been used to open the file instead.
    at com.genuitec.eclipse.jsf.editor.multipage.JSFConfigEditor.init(JSFConfigEditor.java:156)
    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.EditorReference.getEditor(EditorReference.java:214)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2325)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2258)
    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2250)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2236)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2231)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2212)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:251)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:131)
    at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:169)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:153)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:222)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:198)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:296)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:869)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    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)
    !SUBENTRY 1 org.eclipse.ui 4 0 2005-09-02 11:33:27.196
    !MESSAGE Project ‘xyz’ is not configured as a MyEclipse Web-JSF Project. Therefore the MyEclipse JSF Config Editor may not be used with faces-config.xml. The default XML Editor has been used to open the file instead.
    !SESSION 2005-09-06 08:53:34.991 ———————————————–
    eclipse.buildId=I20050627-1435
    java.version=1.5.0_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    AND

    !ENTRY com.ibm.etools.validation 4 0 2005-09-06 08:54:24.07
    !MESSAGE
    *** ERROR ***: Tue Sep 06 08:54:24 EDT 2005 java.lang.ExceptionInInitializerError
    !SESSION 2005-09-07 08:13:04.701 ———————————————–
    eclipse.buildId=I20050627-1435
    java.version=1.5.0_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    AND just this morning:

    !ENTRY org.eclipse.ui 4 0 2005-09-07 08:26:50.816
    !MESSAGE Warning: Detected recursive attempt by part org.xmen.ui.text.XMLTextEditor to create itself (this is probably, but not necessarily, a bug)
    !STACK 1
    org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part org.xmen.ui.text.XMLTextEditor to create itself (this is probably, but not necessarily, a bug)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:543)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
    at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:477)
    at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:402)
    at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:372)
    at org.eclipse.ui.internal.WorkbenchPage.findEditor(WorkbenchPage.java:1772)
    at com.genuitec.eclipse.core.util.EditorUtil.getEditorForInput(Unknown Source)
    at com.genuitec.eclipse.core.util.EditorUtil.checkConflictingEditor(Unknown Source)
    at com.ibm.xmleditor.internal.XMLMultiPageEditorPart.init(XMLMultiPageEditorPart.java:568)
    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.setVisible(PartPane.java:283)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
    at org.eclipse.ui.internal.PartStack.handleDeferredEvents(PartStack.java:1066)
    at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:402)
    at org.eclipse.ui.internal.PartSashContainer.handleDeferredEvents(PartSashContainer.java:1304)
    at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:402)
    at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1253)
    at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1243)
    at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1217)
    at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1272)
    at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:54)
    at org.eclipse.ui.internal.PartStack.close(PartStack.java:495)
    at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:197)
    at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:102)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:81)
    at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
    at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
    at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
    at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:67)
    at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:563)
    at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:190)
    at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2075)
    at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:292)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    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)
    !SUBENTRY 1 org.eclipse.ui 4 0 2005-09-07 08:26:50.816
    !MESSAGE Warning: Detected recursive attempt by part org.xmen.ui.text.XMLTextEditor to create itself (this is probably, but not necessarily, a bug)

    #236774

    Riyad Kalla
    Member

    psmiley,
    Did you try Scott’s suggestion of creating a new Web Project, then adding JSF Capabilities to it?

    #236782

    Paul Smiley
    Member

    Got an warning dialog when creating the new JSF project:

    JAR Installation

    “Library install profile includes the J2EE 1.3 jsp-2.0.jar file. It is required for the projects that will be deployed to the containers that do not support JSP 2.0 specification. It is not recommended to add this jar to a J2EE 1.4 web project as it may result in undefined runtime behavior. install jsp-2.0.jar?”

    I replied No. The new faces-config.xml came up properly.

    I noticed that a .faces-config.mex file was created for the new project – on was not created in my existing project. Is this related?

    I am using MyFaces as well. I cannot use the designer on those jsp pages either.

    #236783

    Paul Smiley
    Member

    @support-rkalla wrote:

    psmiley,
    Did you try Scott’s suggestion of creating a new Web Project, then adding JSF Capabilities to it?

    Also:

    !ENTRY org.eclipse.ui 4 0 2005-09-07 08:26:50.816
    !MESSAGE Warning: Detected recursive attempt by part org.xmen.ui.text.XMLTextEditor to create itself (this is probably, but not necessarily, a bug)
    !STACK 1
    org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part org.xmen.ui.text.XMLTextEditor to create itself (this is probably, but not necessarily, a bug)

    This is not our code.

    Don’t know where it came from then. I did a fresh install of Eclipse and MyEclipse.

    #236791

    Scott Anderson
    Participant

    Actually, it *is* our code; the editor id mentioned simply confused the issue a bit. That post was in error.

    However, this really looks like a problem installation that I’d suggest trying to salvage by restarting eclipse with -clean (eclipse.exe -clean). If the problem persists, could you try installing a separate instance of Eclipse 3.1 and MyEclipse 4.0GA and testing with that? Since there was no way to upgrade from a 4.0 milestone build to GA, some users uninstalled and then reinstalled on the same Eclipse instance. However, that too has been known to fail due to the reasons mentioned in this post (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8782.html) and detailed in this one (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8781.html). A separate, clean installation of both 3.1 and 4.0GA will resolve the issue.

    #236797

    Paul Smiley
    Member

    @support-scott wrote:

    However, this really looks like a problem installation that I’d suggest trying to salvage by restarting eclipse with -clean (eclipse.exe -clean). If the problem persists, could you try installing a separate instance of Eclipse 3.1 and MyEclipse 4.0GA and testing with that? Since there was no way to upgrade from a 4.0 milestone build to GA, some users uninstalled and then reinstalled on the same Eclipse instance. However, that too has been known to fail due to the reasons mentioned in this post (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8782.html) and detailed in this one (http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8781.html). A separate, clean installation of both 3.1 and 4.0GA will resolve the issue.

    I did the clean switch – no difference.

    I installed this all fresh – fresh download of Eclipse and MyEclipse. Full install of both. The only thing that is not fresh is the source file from CVS – we did store .project files so maybe there are compatibily issues between the versions? When setting up a project as a JSF MyEclipse Web project, where does that configuration go? Can I edit a property file to achieve this?

    #236798

    Scott Anderson
    Participant

    I noticed that a .faces-config.mex file was created for the new project – on was not created in my existing project. Is this related?

    The .mex file simply maintains the layout information for the visual editor since that can’t be saved in the xml file.

    The only thing that is not fresh is the source file from CVS – we did store .project files so maybe there are compatibily issues between the versions? When setting up a project as a JSF MyEclipse Web project, where does that configuration go? Can I edit a property file to achieve this?

    What likely happened is that while you did add JSP capabilities to the project, someone else overwrote those changes in the .project file. If that is indeed the case, you should be able to select “Add JSF capabilities…” again and let the wizard reconfigure the project as it did before or use Replace With > Local History… to find the version that did have the jsf nature and validator in the .project file.

    #236800

    Paul Smiley
    Member

    I added the following to my .project file:

    <buildCommand>
    <name>com.genuitec.eclipse.jsf.configValidator</name>
    <arguments>
    </arguments>
    </buildCommand>

    and

    <nature>com.genuitec.eclipse.jsf.jsfnature</nature>

    And it came up fine with the designer.

    #236802

    Paul Smiley
    Member

    Thank you for your help.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: 4.0 GA MyEclipse Web-JSF Project Config [Closed]

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