In the process of trying to build an android web service using Spring under Eclipse IDE, I need to create a Dynamic Web Project using Maven. The problem I am facing is an error " Loading descriptor for project has encountered a problem. I don't know how to solve this. Any input on that?
I know this is late but may be useful for others. In web.xml there may be some attribute repated in web-app tag. In my case xmlns="http://java.sun.com/xml/ns/javaee" attribute in repeated in tag web-app.
If you get the following exception:
Loading descriptor for project has encountered a problem. [...] Nullpointerexception
right after creating a project, then there are 2 possible causes (or at least that how it was for me, when I had this issue).
1) A web.xml file is missing in your WebContent/WEB-INF folder or was not created during project creation. (in the last window you have to check option "Generate web.xml deployment descriptor" in eclipse, otherwise eclipse won't generate that file)
If your project is already created, you can still add a web.xml file into your WEB-INF directory. Depending on your servlet version (e.g. 2.5) you have to use a different template which can be found on the net.
2) Your Eclipse does not have all the necessary plugins for Dynamic Web projects.
You need to go to Help >> Install new Software
Select the site which corresponds to your eclipse version. (e.g. Kepler - http://download.eclipse.org/releases/kepler )
Install:
You may also need:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With