Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

maven import project error

when i import the maven projet to eclipse mars with tomcat 8 on windows laptop getting below errors

Description      Resource      Path      Location      Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jaxws:server'.      cxf-servlet.xml      /javafirstws/src/main/webapp/WEB-INF      line 9      XML Problem


Description      Resource      Path      Location      Type
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path      index.jsp      /javafirstws/src/main/webapp      line 1      JSP Problem


please advise
ASKER CERTIFIED SOLUTION
Avatar of gurpsbassi
gurpsbassi
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

i right clicked on the project from eclipse and did run as maven clean then maven install as attached.
mven-clean.png
do from command line
Avatar of gudii9

ASKER

actually below helped in fixing issue
http://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build

Add a runtime first and select project properties then check server name from 'Runtimes' tab as shown in image.
Avatar of gudii9

ASKER

while choosing tomcat i have to hange the jre drop down selection to 1.8 instead of the default first option it showed as attahed.
JRE1.8.png
Avatar of gudii9

ASKER

what it means by default workbench jre 1.8 as attached which i have not selected to avoid trouble. But i t alwasy comes by default
workbenchDefault.png
what it means by default workbench jre 1.8

I believe you have already posted a separate question related to this.
No need to duplicate here.