facebook

Internal error encountered with JSF Config Editor

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #250274 Reply

    Jon Ericson
    Member

    1. Configuration summary is posted at end of this message.

    2. Background: Instead of faces-config.xml, the JSF configuration file is specified as examples-config.xml in the web.xml file.

    3. When clicking on the examples-config.xml in order to edit it, the following error occurs:

    Unable to create this part due to an internal error. Reason for the failure: Project ‘MojoClient’ is not configured as a MyEclipse Web-JSF Project. Therefore the MyEclipse JSF Config Editor may not be used with examples-config.xml. The default XML Editor has been used to open the file instead.

    The log spew is:

    org.eclipse.ui.PartInitException: Project ‘MojoClient’ is not configured as a MyEclipse Web-JSF Project. Therefore the MyEclipse JSF Config Editor may not be used with examples-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:158)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2362)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
    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)
    :
    etc.

    4. When I right click on the project -> myEclipse to add JSF capabilities, the menu item to add the JSF capabilities is not there. There are other frameworks to add (Spring, Hibernate, etc.) but not JSF.

    5. Just for fun, I created a bogus project, right clicked on it, then myEclipse, and the JSF capabilities are there to add for this project.

    6. This project was created by another developer that is no longer here. I don’t believe the developer used myEclipse to set this up. How do I repair?

    ===== CONFIGURATION SUMMRY =====

    *** Date: Tue Apr 11 07:53:47 GMT-08:00 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_05

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060309-4.1.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Platform

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse RCP

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Java Development Tools

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Plug-in Development Environment

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Project SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\JavaSystem\eclipse\eclipse3_1\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    c50_4c
    -vm
    C:\Program Files\Java\jdk1.5.0_05\bin\javaw.exe

    #250302 Reply

    Riyad Kalla
    Member

    Thank you for the detailed post.

    First let me say that it’s possible this project isn’t even a web project. Right click on it and look under MyEclipse, do you see “Add Web Capabilities”? If so, that is the first step, then you will be able to add JSF capabilities.

    #250311 Reply

    Jon Ericson
    Member

    Hello –

    When you say “Add Web Capabilities”, do you mean “WebProject Capabilities”?

    When I right click on the project, then click on MyEclipse, this is all that I see:

    Add and Remove Project Deployments

    Add Spring Capabilities
    Add WebProject Capabilities
    Add Hibernate Capabilities

    Run XDoclet

    Open in Explorer

    Run Validation
    Remove All Validation Markers

    Thank you for your timely response.

    #250315 Reply

    Riyad Kalla
    Member

    When you say “Add Web Capabilities”, do you mean “WebProject Capabilities”?

    Yes that’s exactly right, I typed it wrong. You need to add those first.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Internal error encountered with JSF Config Editor

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