facebook

[Closed] JSFLoginDemo : javax.faces cannot be resolved

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

    pondus
    Member

    Hi,

    Having been told that going with MyEclipse will save a lot of time because the documentation is excellent, I went ahead and _carefully_ followed all the install instructions for both the MyEclipse install and the JSFLoginDemo tutorial at http://www.myeclipseide.com/images/tutorials/JSF/SFLoginDemoTutorial.html

    Unfortunately I’m already stuck, because after adding the UserBean.java class, I get “The import javax.faces cannot be resolved”. I’m assuming that the step in the tutorial that adds JSF support should have added all the right jars! The tutorial does seem a bit out of date, because my Eclipse screens look a bit different than the screen shots in the tutorial.

    Please help me have a positive introduction the MyFaces! Thanks,

    pondus 🙂

    P.S. yes, I have tried restarting eclipse. 😐

    #253900 Reply

    Riyad Kalla
    Member

    If you check your project build path (Properties > Java Build Path > Libraries) do you see the JSF Jars listed? If not, click Add…, then drill down to WEB-INF/lib directory, select all your JARs and hit OK.

    #253918 Reply

    pondus
    Member

    @support-rkalla wrote:

    If you check your project build path (Properties > Java Build Path > Libraries) do you see the JSF Jars listed? If not, click Add…, then drill down to WEB-INF/lib directory, select all your JARs and hit OK.

    Thanks for the quick reply. No, the jsf-api.jar and jsf-impl.jar files that I assume are standard for the JSF reference implementation are not present.

    Is this a bug in MyEclipse JSF template? I thought the point of MyEclipse was to automate a lot of these procedures, but I could be wrong.

    How do go about adding these files now, the MyEclipse way?

    Thanks again,

    Pondus

    #253919 Reply

    pondus
    Member

    So sorry, I was being sloppy when reading your reply. I have it working now. Thanks 🙂

    #253921 Reply

    Riyad Kalla
    Member

    No worries, glad it’s working.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] JSFLoginDemo : javax.faces cannot be resolved

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