facebook

[Closed] Unable to add JSF capabilities to a Web Project

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

    Hi

    I’ve added JSF capabilities to my Web Project following the link
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/jsf/index.html’

    However my project layout is different from that in Figure 4.5

    When I created jsp files and use <f:view>, there is no code assist and I got the error message “no tag ‘view’ defined in tag library imported with prefix “f”” when my mouse cursor hovers on the red cross mark.

    The myfaces *.jar are in WebRoot/lib but they’re not shown in the Project build path. I had to add them manually for the completion to work.

    Referring to ‘http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251&#8217; I should not need to add the taglib attribute to my web.xml since the myfaces-all.jar contains the necessary .tld in the MANIFEST directory.

    Is this a known bug?

    Below is the required information:
    1. No relevant error in the log
    2.
    *** Date: Tue Jan 24 15:43:54 SGT 2006

    *** System properties:
    OS=Linux
    OS version=2.6.10
    Java version=1.5.0_02

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.200 M2
    Build id: 20051205-4.1-Milestone2

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse RCP

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -launcher
    /opt/tools/eclipse/eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    3f38001
    -vm
    /opt/sdks/jdk1.5.0_02/bin/java

    #245146 Reply

    Riyad Kalla
    Member

    I’m not sure I follow what you are reporting. It sounds like you did add JSF capabilities, and original the jARs weren’t automounted, but once you added them autocomplete started working as well. Please restate what the exact problem is.

    #245229 Reply

    Hi Riyad

    That’s the problem: I’ve added JSF capabilities but the *.jar files were not auto-mounted. I’ve tried with new projects and on different machines – problem is consistent.

    #245239 Reply

    Riyad Kalla
    Member

    If you navigate to Window > Prefs > MyEclipse > J2EE > Web Project > Build path, is the first option selected? “Automatically add…”

    If not, select it, that’s the problem.

    If it is, open up your log file (<workspace dir>\.metadata\.log) and look near the bottom for exceptions pertaining to JAR files.

    #245268 Reply

    Hi Riyad,

    Thanks for the prompt reply, that’s the cause.

    Now I’ve have these *.jar in both my WEB-INF/lib and WEB-INF/
    commons-beanutils-1.6.1.jar
    commons-codec-1.2.jar
    commons-collections-3.0.jar
    commons-digester-1.5.jar
    commons-el.jar
    commons-fileupload-1.0.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsp-2.0.jar
    jstl.jar
    myfaces-all.jar

    is this the known behavior? this duplication is unnecessary since it won’t happen if I do it manually. Is this potentially a bug or should I move this thread to another forum?

    /Mark

    #245284 Reply

    Riyad Kalla
    Member

    Mark,
    Switch to your navigator view to look at what files are where. The package explorer will display contents depending on what they are, so they make “look” like they are in different locations than they really are.;

    If you do have all those JARs in your WEB-INF directory, you can erase them and just keep the ones in your /lib directory.

    #245391 Reply

    Hi Riyad,

    I’ve removed them. Seems OK. Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: [Closed] Unable to add JSF capabilities to a Web Project

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