facebook

myeclipse 4.1.0 with myFaces 1.1.3 ????

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #253455 Reply

    lagonze
    Member

    hello,
    i’d like to know if i can use myFaces 1.1.3. and/or tomahawk 1.1.2
    with myEclipse 4.1.0 and eclipse 3.1.1 ?
    i’m not sure because when i choose “add jsf capabilities”, i only see the Sun implementation plus myFaces 1.0.9 and 1.1.1….????? can i just replace the jars…. or what ?
    in fact the only thing i want to do is be able to use “t:” tags in my jsf pages….
    would tomahawk only, with the current myFaces 1.0.9., be sufficient ?
    please advise, thx,
    dom.

    #253476

    Riyad Kalla
    Member

    Dom,
    If you navigate to Window > Preferences > MyEclipse > Project Capabilities, you can replace the versions of MyFaces JARs that we ship with the 1.1.3 release and even add Tomahawk to them. You will need to create a new project to re-add the capabilities to however.

    #254512

    lagonze
    Member

    @support-rkalla wrote:

    Dom,
    If you navigate to Window > Preferences > MyEclipse > Project Capabilities, you can replace the versions of MyFaces JARs that we ship with the 1.1.3 release and even add Tomahawk to them. You will need to create a new project to re-add the capabilities to however.

    thx but……
    i’m completely mixed up with the different implementations and extensions.
    1. if i just try to create a new web project and add jsf capabilities choosing the SUN implementation, when i start my jboss with jetty 5.1.8 i get the message :
    [jetty] Undeploying on start due to error
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    what am i missing ?
    2. can tomahawk, ADF faces and Jenia be used with MyFaces and/or the SUN RI ? which one do you recommend, and with which implementation (for the ones who are compatible with both) ?
    3. if i do what you suggest, the 1.1.3 jars will be in the 1.1.1 window – should i delete the old ones ? if yes, what happens to my projects already running under 1.1.1 ?
    thx again,
    dom.

    #254517

    Riyad Kalla
    Member

    1) I *think* JBoss might ship JSF JARs, I’m not possitive. Doule check your /lib dir in JBoss to see if any JBoss JARs are in there.

    2) We will support any tag libraries from any of these extensions but Tomahawk and ADF Faces will only work with MyFaces. I believe most JSF developers just use the MyFaces implementation because of all the extensions available.

    3) I was just providing one solution. Another solution would be to create a User Library that you can name anything you want (MyFaces 1.1.3 with Tomahawk) and then just add JSF capabilities to your project, but uncheck the box to add the JARs and TLDs, then afterwards go to the Java Build Path > Libraries menu and click Add Library and add your library.
    ** Note this process is sort of clunky right now and we are in the midst of working on streamlining the capabilities approach.

    #254525

    lagonze
    Member

    Question 1 : no, no jboss jars in there ????? what can i do ?
    Q2: thx, i’ll try that !
    dom.

    #254544

    lagonze
    Member

    hello again,
    with myeclipse 4.1.0, eclipse 3.1.1, jboss 4.0.3 and jetty 1.5.8, after adding to my functioning jsf webapp the tomahawk.jar and the needed stuff in web.xml, i get the following message :
    org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)Z
    java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm(Ljavax/faces/context/FacesContext;)Z
    at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd(ExtensionsPhaseListener.java:110)

    i know this is probably a jar conflict, so let me give you some more info :
    1. i use myFaces 1.1.1, because i don’t dare to switch to 1.1.3 after seeing all the problems on forums, google, etc….
    all i have in my WEB-INF/lib is :
    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.jar
    commons-logging.jar
    commons_validator.jar
    jakarta-oro.jar
    jaxen-full.jar
    jaxp-api.jar
    jstl.jar
    mail.jar
    myfaces.jar
    myfaces-extensions.jar
    myfaces-wap.jar
    myfaces-doclet.jar
    sax.jar, saxpath.jar
    standard.jar
    tomahawk-1.3.3.jar
    xalan.jar
    xercesImpl.jar
    is that ok ?
    and in my jboss/deploy/myapp directory i have nothing else…????
    where else should i check in jboss ?
    please help, i’m stuck !
    thx again,
    dom.

    #254559

    Riyad Kalla
    Member

    That all looks good… is it possible that you added the RI then removed it then added MyFaces? You are right there is osme sort of API conflict here, just wondering which JAR is the problem.

    #254621

    lagonze
    Member

    no, i did not add and remove RI…..
    so great to know that it looks fine but……
    what do i do next !!!??? 😉
    thx, dom.

    #254667

    Riyad Kalla
    Member

    If you are continuing to get the API error I would suggest creating a new Web Project, add JSF capabilities to it then try and deploiy it and see if it works. If it does, slowly copy your old project files over to the new project.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: myeclipse 4.1.0 with myFaces 1.1.3 ????

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