Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » JSF Facet(JSF 2.0 Facet exception )
JSF Facet [message #662105] Tue, 29 March 2011 10:46 Go to next message
Ahmed Al Kahky is currently offline Ahmed Al Kahky
Messages: 6
Registered: July 2009
Junior Member
I have a maven project when I try to add JSF 2.0 facet to that project I always get a null pointer exception as following:

java.lang.NullPointerException
at org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInst allDelegate.resolveConfigPath(JSFFacetInstallDelegate.java:2 96)
at org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInst allDelegate.createConfigFile(JSFFacetInstallDelegate.java:31 3)
at org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInst allDelegate.execute(JSFFacetInstallDelegate.java:124)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr oject.callDelegate(FacetedProject.java:1478)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr oject.modifyInternal(FacetedProject.java:442)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr oject.mergeChangesInternal(FacetedProject.java:1182)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr oject.access$2(FacetedProject.java:1118)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr oject$5.run(FacetedProject.java:1100)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr oject.mergeChanges(FacetedProject.java:1110)
at org.eclipse.wst.common.project.facet.core.internal.FacetedPr ojectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.jav a:2020)
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPrope rtyPage$4.run(FacetsPropertyPage.java:232)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1975)
at org.eclipse.wst.common.project.facet.ui.internal.FacetsPrope rtyPage$5.run(FacetsPropertyPage.java:246)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
Re: JSF Facet [message #663887 is a reply to message #662105] Wed, 06 April 2011 17:38 Go to previous message
Ian Trimble is currently offline Ian Trimble
Messages: 137
Registered: July 2009
Senior Member
Have you added the web facet to the project? The code that is failing is having trouble resolving the "web content" folder (WTP concept), which leads me to believe either the web facet is not configured for the project, or "web content" is set at the project root (corrected in recent Indigo builds of WTP).
Previous Topic:Support for beans in faces-config.xml outside WebContent
Next Topic:Referencing Bean values in JSF page
Goto Forum:
  


Current Time: Wed Sep 03 02:19:43 GMT 2014

Powered by FUDForum. Page generated in 0.15981 seconds