Running JSF examples from SUN

Find no way to get the SUN's examples of JSF working. Tried on SUN's app server,

on tomcat 5.0, on tomcat 5.5, on special (!) tomcat5.0-jwsdp from sun

nothing work as explained on various java-sites.

last try : install latest Java EE 5 SDK., got latest J EE tutorial and:

From the JEE tutorial :

cd javaeetutorial5/examples/web/guessNumber/

ant

BUILD FAILED

Buildfile: build.xmlexamples/bp-project/main.xml:20: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

any idea ?

PS: myfaces examples worked out-of-the-box on tomcat 5.5 !!

[640 byte] By [Michel_Vayssadea] at [2007-10-3 11:20:31]
# 1

I ran into something similar. I think the latest J2EE distribution contains version 1.2 of JSF. If you look at the release notes in the download pack, it has a specific list of required software, including Sun Java System Application Server, ver. 9 It does not appear compatible with any current version of Tomcat 5.5 or Tomcat 6 at the present time. I fell back to JSF 1.1. You will have to remove the reference to the 1.2 type-listeners in web.xml if you put them in.

bayareadavea at 2007-7-15 13:45:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...