Monday, December 9, 2013

adding jsf2 facet to eclipse

Ever tried to intall jsf 2 facet in Eclipse and go the following error?

Failed while installing JavaServer Faces 2.0.
org.osgi.service.prefs.BackingStoreException: Resource '/projectName/.settings' does not exist.

Don't give up hope. As you do not have the option to use a better IDE you can still edit the files by hand.

 open the file :  "org.eclipse.wst.common.project.facet.core.xml" located in the .settings directory and add:
 <installed facet="jst.jsf" version="2.0"> </installed>
That should do the trick