Description
Using Netbeans 6.5.1 and Sun Java System Web Server 7.0 plugin, after adding Web Server 7.0 to the NetBeans Servers tab, and then trying to deploy a JSF application to Web Server, there is an error resolving the javax.faces.FacesException package.
The problem is that the jsf-impl.jar and jsf-api.jar are not being loaded by the plugin. The Web Server plugin for NetBeans does not support the loading of these classes.
Solution
Choose GlassFish v2 as the target server in the NetBeans Servers tab and build the application against GlassFish rather than Web Server. After building the application, do not deploy it through NetBeans, but instead deploy it manually to Web Server using the wadm CLI or the Web Server admin console.