facebook

how to add JSF 1.2 capability/support in MyEclipse 5.5

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #267297 Reply

    arsal
    Member

    Hi,
    In a web project I can add JSF 1.1 capabilities but actually I wana add JSF 1.2. Could you guide me how to add JSF 1.2 capabilities or support in the project instead of JSF 1.1?
    I have already downloaded JSF 1.2_04 lib and have it in a seperate folder so can I add it as a user library. If so how can I get the view/graphical support for faces-config.xml?
    Regards,
    Arsalan

    #267331 Reply

    Riyad Kalla
    Member

    Arsalan,
    Until we add it officially, my suggestion will be to create a User Library with the JSF 1.2 JARs in it (jsf-api.jar and jsf-impl.jar) and attach them to your project making sure to remove the older ones if they are in there.

    Alternatively, since JSF 1.2 is part of the JEE5 spec, if you are deploying to a JEE5 app server, you can create a User Library for JEE 5 (we will be adding that soon as well) and just attach that to your project and unattach all the JSF and J2EE Libraries from your project instead.

    Also as long as your project still has JSF Capabilities added to it, the tooling will keep working just fine.

    #267733 Reply

    – Create empty web project using myeclipse wizard but don’t add jsf or jstl to it.
    – copy jsf 1.2_04 files into WB-INF\lib folder
    – copy jslt 1.2 folder into WEB-INF\lib
    – replace web.xml with jee 5 compatible
    – create new faces-config.xml

    All required link are in
    http://groups.google.com/group/javaee5/web/setup-enironment-tomcat-6-jsf-1-2-jstl-1-2

    And of course tomcat 6 is required

    Regards,
    Ali Kianzadeh

    @arsal wrote:

    Hi,
    In a web project I can add JSF 1.1 capabilities but actually I wana add JSF 1.2. Could you guide me how to add JSF 1.2 capabilities or support in the project instead of JSF 1.1?
    I have already downloaded JSF 1.2_04 lib and have it in a seperate folder so can I add it as a user library. If so how can I get the view/graphical support for faces-config.xml?
    Regards,
    Arsalan

    #267738 Reply

    Riyad Kalla
    Member

    Ali,
    I appreciate the follow up. I’d like to make the following notes:

    * Tomcat 6 can be used, but isn’t required. If you are using a full JEE5 container like Glassfish, Sun App Server, JBoss 5, etc. you don’t want to add the JARs to your web project, because they will be already in the server’s /lib dir and some servers balk at loading dupe classes.

    But if you are using Tomcat 6, Ali’s suggestion is absolutely right.

    #267960 Reply

    Rocha
    Member

    Hi all,

    I’ve tried it and works but every time I redeploy my app to Tomcat 6 I got some exception and need to restart Tomcat. Anyone got same problem and know any workarround ?

    #267970 Reply

    Scott Anderson
    Participant

    We might be able to help if you could tell us exactly what steps you are performing and exactly what exception is being reported by the server.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: how to add JSF 1.2 capability/support in MyEclipse 5.5

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