I have build a Spring MVC multimodule app using Appfuse. It works fine when ran through MVN Jetty:run. I am able to build and run the app very well through maven. But When I imported all the modules in Eclipse through M2E it is giving me so many errors I am going to copy the errors here can someone please help me resolve them?
I named my project as mynewproject when I built it using Appfuse.
1) I am getting below error :
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
in all the JSP files in base module "mynewproject".
2)I have issues with application-context-dao.xml
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring- context-3.1.xsd', because 1) could not find the document; 2) the document could not be read; the root element of the document is not . - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
3) Multiple errors in applicationContextService.xml for AOP config and above mentioned error for context config again.
4)Sample-data.xsd has content in some different language and it gives error :
Content is not allowed in prolog.
In module mynewproject-core I have following error in pom.xml
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:dbunit-maven-plugin:1.0-beta-3:operation (execution: test-compile, phase: test-compile)
And finally in mynewproject-web has an error :
Syntax error on token "ne", invalid AssignmentOperator
for the line :
Can someone please help with these errors.
Thanks a ton in advance.