This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
That sun-web.xml file is critical. Without it, the JSF2 classes built into Glassfish are likely to collide with the JSF1 libraries in the WAR.
Incidentally, it's not that difficult to migrate a JSF1 webapp to JSF2, and JSF2 has been out long enough it's a good idea to do so.
An IDE is no substitute for an Intelligent Developer.
Joined: May 10, 2011
I have a big project with RichFaces 3 (JSF 1) and to migrate RF 3 to 4 its not easy, that's why I need keep project with JSF 1.
But I don't want to get any kind of trouble with that configuration. I'll make some tests to ensure that configuration will work fine.
Do you have some experience with sun-web.xml file?
I know because the migration to RF 4 is going to KILL me, but that doesn't mean I want to lose the amenities that JSF2 offers in the mean time. So I'm running JSF2+RF3. Not everything works (for example, the f:ajax tag). but the important stuff does.
I'm also using RichFaces 3 (3.3.3) with JSF 2, and it's working fine. As Tim mentioned, RichFaces 3 doesn't support 100% of JSF 2's capabilities, but it does support a lot of them. I also tried to upgrade to RichFaces 4, but found it to be too different from RF3, and just plain missing stuff from RF3 that I need. I hope they work out those issues. RF4 has some great capabilities that I'd like to be using.
I am greatly annoyed with the RF4 migration requirements. It's roughly the same amount of trauma as was required to go from VB6 to VB.Net.
We expect Microsoft to break things. In the Java world, the norm is to provide backwards compatibility and deprecation mechanisms. One of the primary differences between professional Enterprise-grade and kitchen-table hacker products.