Hi Alan, You need to have myfaces-api and myfaces-impl dependencies in your project like this:
<dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-api</artifactId> <version>2.0.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-impl</artifactId> <version>2.0.2</version> <scope>runtime</scope> </dependency> You don't need myfaces-impl-ee6, this one is just an internal helper module which is already included in myfaces-impl. The rest of the configuration (e.g. FacesServlet) is pretty much the same as for Mojarra, though you need some extra configuration to run MyFaces on GlassFish, see [1|. Regards, Jakob [1] http://blogs.sun.com/theaquarium/entry/how_to_use_myfaces_with 2010/10/18 Alan <omegaobj...@gmail.com>: > I have been using GlassFish 3 to host a JSF 2.0 so far with some success, > but with no imported libraries. For some odd reason I can't seem to find > documentation that can get me started with MyFaces. > > I added a Maven dependency as follows: > > <dependency> > <groupId>org.apache.myfaces.core</groupId> > <artifactId>myfaces-impl-ee6</artifactId> > <version>2.0.2</version> > <type>jar</type> > </dependency> > > But I don't know what other steps to take, particularly with regard to > web.xml or faces-config.xml. The documentation I can find all seems > appropriate for MyFaces 1.x -- are all the setups the same? > > Do I need to remove the dependencies on com.sun.faces? What about the > javax.faces.webapp.FacesServlet? Do I still use that or is it optional? > > So far I can't get past the following error from > GlassFish: NoClassDefFoundError: > org/apache/myfaces/shared_impl/webapp/webxml/DelegatedFacesServlet > > Any pointers much appreciated. > > OO. > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at