Failed while installing JAX-RS (REST Web Services) 1.1. java.lang.NullPointerException

I have same error i made following changes it work for me Change to

XML File Name "org.eclipse.wst.common.project.facet.core.xml" Path :Eclipse_Project_Home/.settings/org.eclipse.wst.common.project.facet.core.xml

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <installed facet="jst.web" version="3.0"/>
  <installed facet="jst.java" version="1.7"/>
  <installed facet="jst.jaxrs" version="1.1"/>
</faceted-project>

I was having

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <installed facet="jst.web" version="2.3"/>
  <installed facet="jst.java" version="1.7"/>
</faceted-project>