facebook

attempted jsf tutorial

💡
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 IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #228361 Reply

    cts
    Member

    Attempting the jsf small tutorial demo:
    I note lots of passive voice, which is not appropriate for a tutorial
    … If I dont do it, it wont get done.. so no passive voice please…

    Problems:
    6 Create the message Bundle
    step 2 create a new Java package
    Error message: Package already exists
    (???)
    so I name it com.jsfdemox (???)

    7 Connecting..through faces-config.xml
    its not clear how to edit this:
    When I click on it I get
    “Editor could not be initialized”

    what should I do?
    this is a show-stopper, ie I am not sending money until its cleared up
    cheers
    cts

    #228362

    cts
    Member

    so I try to use the existing demo project, which I downloaded into
    D:\a\proj\JSFLoginDemo
    but when I try to set the location to D:\a\proj\JSFLoginDemo
    I get error message
    D:\a\proj\ and D:\a\proj\JSFLoginDemo overlap
    What could this mean??

    If I set the location to D:\a\proj\
    I get error message
    D:\a\proj\ and D:\a\proj\ overlap
    which has a nice truistic ring to it, but what does it mean?

    #228382

    Riyad Kalla
    Member

    7 Connecting..through faces-config.xml
    its not clear how to edit this:
    When I click on it I get
    “Editor could not be initialized”

    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? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    but when I try to set the location to D:\a\proj\JSFLoginDemo

    You need to clarify what you mean “try to SET the location”, are you creating a new project? Are you editing your .project file and changing it’s location? Are you trying to import a project? Are you trying to create a new workspace?

    #228449

    cts
    Member

    What operating system and version are you running?
    MicrosoftWindows2000 Ver 5.0 Build 2195 Service PAck 3
    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.0.1 Build id: 200409161125

    – Was Eclipse freshly installed for MyEclipse?
    No
    Is this 1)essential 2)desirable 3) contra-indicated?

    – If not, was it upgraded to its current version using the update manager?
    No
    – Are any other external plugins installed?
    No
    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    8
    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    3.8.4
    What JDK version are you using to run Eclipse? (java -version)
    n “1.5.0_02”
    What JDK version are you using to launch your application server?
    n “1.5.0_02”
    What steps did you take that resulted in the issue?
    tried the JSFLoginDemo
    What application server are you using?
    Apache Tomcat 5.5.7 Server –
    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
    – a bunch, see below for edited list
    ____________________
    1) How to Import an existing project
    I found the “Import” (r click in PackageExplorer)
    and attempted to import the downloaded project
    but again I got the error message
    D:/a/proj and D:/a/proj/JSFLoginDemo overlap
    why is “overlap” a fatal error
    How do I import a project that I have downloaded?
    >>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>

    edited list of .log fro 20Aprol
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
    !STACK 0
    java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;
    ..
    !MESSAGE Unhandled Exception

    !MESSAGE Unable to execute early startup code for an extension
    !STACK 0
    java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;
    …!SESSION Apr 20, 2005 15:55:21.367 ———————————————
    eclipse.buildId=M200409161125
    java.version=1.5.0_02
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

    !MESSAGE The content type with id “org.eclipse.wst.dtd.core.dtdsource” specified in the extension point does not exist.
    ….

    \!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
    !STACK 0
    java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;

    \!MESSAGE Unhandled Exception

    !MESSAGE Unable to execute early startup code for an extension
    !STACK 0
    java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;

    !MESSAGE Could not load user items
    !STACK 0
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    ..
    !MESSAGE Installed snippet library: D:\Progf\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.4\snippets\css_snippets.xml

    !MESSAGE Could not load user items
    !STACK 0
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    ..
    !MESSAGE Installed snippet library: D:\Progf\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.4\snippets\forms_lists_snippets.xml

    !MESSAGE Could not load user items
    !STACK 0
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    ..
    !MESSAGE Installed snippet library: D:\Progf\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.4\snippets\htmlform_snippets.xml

    !MESSAGE Could not load user items
    !STACK 0
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    ..
    !ENTRY com.genuitec.eclipse.wizards 1 1 Apr 20, 2005 16:01:52.429
    !MESSAGE Installed snippet library: D:\Progf\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.4\snippets\html_snippets.xml

    !ENTRY com.ibm.sse.snippets 4 4 Apr 20, 2005 16:01:52.609
    !MESSAGE Could not load user items
    !STACK 0
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    ..
    !ENTRY com.genuitec.eclipse.wizards 1 1 Apr 20, 2005 16:01:52.619
    !MESSAGE Installed snippet library: D:\Progf\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_3.8.4\snippets\javascript_snippets.xml

    .java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;
    ..
    java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;

    +++++++++++++++++
    So My questions are
    1) how do I Import an exixting project without getting teh “overlap” error
    2) how do I edit the faces-config.xml
    3) In the demo tutorial section 6 part 2 how do I get around trh “Package already exists” error

    #228450

    Riyad Kalla
    Member

    1) How to Import an existing project
    I found the “Import” (r click in PackageExplorer)
    and attempted to import the downloaded project
    but again I got the error message
    D:/a/proj and D:/a/proj/JSFLoginDemo overlap
    why is “overlap” a fatal error
    How do I import a project that I have downloaded?

    This is an Eclipse constraint. I think what might have happened is that you unzipped the project into your workspace and then tried to import it. Instead, try unzipping it to your Desktop, and then use File > Import to import it.

    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.runtime”.
    !STACK 0
    java.lang.NoSuchMethodError: org.eclipse.core.runtime.IConfigurationElement.getNamespace()Ljava/lang/String;

    Any time you see errors like this, it means you are running incompatible versions of Eclipse and whatever plugin you are using… in this case MyEclipse. I think you may be using eiher a nightly build of Eclipse or M-build of the 3.0.x series OR you could be running the 3.8.4 BETA version for Eclipse 3.1.

    Alternatively this could be caused by out of date plugin cache in your workspace, I would highly suggest that you edit your shortcut that you use to start Eclipse and add -clean to the end of it then start it up atleast once, then you can remove -clena. This will allow Eclipse to rebuild it’s plugin cache fresh.

    1) how do I Import an exixting project without getting teh “overlap” error

    See my comment above.

    2) how do I edit the faces-config.xml

    Double click on it, this will open the XML Editor so you can edit the source code. Maek sure the file is opened with the “MyEclipse XML Editor”.

    3) In the demo tutorial section 6 part 2 how do I get around trh “Package already exists” error

    The same way you would in a normal Java program, stop trying to create a package that already exists.

    #242830

    puffyelms
    Member

    3) In the demo tutorial section 6 part 2 how do I get around trh “Package already exists” error

    The same way you would in a normal Java program, stop trying to create a package that already exists.

    Old post, but ran into this error.
    The tutorial instructs you to create the package “com.jsfdemo.bean” then instructs you to create “com.jsfdemo” which gives you this error.
    Just ignore the 2nd package creation and add the message file in the “com.jsfdemo” package dir.

    #243248

    Scott Anderson
    Participant

    Good news! We’ve just updated the JSF tutorial in the Documentation section to be much more clear (we hope). Please give that a go nad see if it helps when you have time.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: attempted jsf tutorial

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