- This topic has 8 replies, 2 voices, and was last updated 18 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
lagonzeMemberhello,
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.June 14, 2006 at 11:45 am #253476
Riyad KallaMemberDom,
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.July 11, 2006 at 5:25 am #254512
lagonzeMember@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.July 11, 2006 at 6:55 am #254517
Riyad KallaMember1) 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.July 11, 2006 at 7:55 am #254525
lagonzeMemberQuestion 1 : no, no jboss jars in there ????? what can i do ?
Q2: thx, i’ll try that !
dom.July 11, 2006 at 10:23 am #254544
lagonzeMemberhello 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.July 11, 2006 at 12:21 pm #254559
Riyad KallaMemberThat 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.
July 12, 2006 at 5:41 am #254621
lagonzeMemberno, i did not add and remove RI…..
so great to know that it looks fine but……
what do i do next !!!??? 😉
thx, dom.July 12, 2006 at 2:30 pm #254667
Riyad KallaMemberIf 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.
-
AuthorPosts