java - server tomcat v8.0 server at localhost failed to start -


i seem have problem web.xml file. every time run apache tomcat 8 server, gives error: server tomcat v8.0 server @ localhost failed start.

when removed servlets of xml file, server worked!! web.xml follow:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">   <display-name>ziyada00191914</display-name>     <servlet>     <servlet-name>registerservlet</servlet-name>     <servlet-class>controllers.registerservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>registerservlet</servlet-name>     <url-pattern>/registerservlet</url-pattern>   </servlet-mapping>    <servlet>     <servlet-name>loginservlet</servlet-name>     <servlet-class>controllers.loginservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>loginservlet</servlet-name>     <url-pattern>/loginservlet</url-pattern>   </servlet-mapping>      <servlet>     <servlet-name>listeventmainservlet</servlet-name>     <servlet-class>controllers.listeventmainservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>listeventmainservlet</servlet-name>     <url-pattern>/listeventmainservlet</url-pattern>   </servlet-mapping>      <servlet>     <servlet-name>listeventbycategory</servlet-name>     <servlet-class>controllers.listeventbycategory</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>listeventbycategory</servlet-name>     <url-pattern>/listeventbycategory</url-pattern>   </servlet-mapping>     <servlet>     <servlet-name>cartservlet</servlet-name>     <servlet-class>controllers.cartservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>cartservlet</servlet-name>     <url-pattern>/cartservlet</url-pattern>   </servlet-mapping>      <servlet>     <servlet-name>orderservlet</servlet-name>     <servlet-class>controllers.orderservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>orderservlet</servlet-name>     <url-pattern>/orderservlet</url-pattern>   </servlet-mapping>    <servlet>     <servlet-name>feedbackservlet</servlet-name>     <servlet-class>controllers.feedbackservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>feedbackservlet</servlet-name>     <url-pattern>/feedbackservlet</url-pattern>   </servlet-mapping>      <servlet>     <servlet-name>shippingservlet</servlet-name>     <servlet-class>controllers.shippingservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>shippingservlet</servlet-name>     <url-pattern>/shippingservlet</url-pattern>   </servlet-mapping>     <servlet>     <servlet-name>logoutservlet</servlet-name>     <servlet-class>controllers.logoutservlet</servlet-class>   </servlet>  <servlet-mapping>     <servlet-name>logoutservlet</servlet-name>     <url-pattern>/logoutservlet</url-pattern>   </servlet-mapping>     <welcome-file-list>     <welcome-file>driver.jsp</welcome-file>     <welcome-file>index.jsp</welcome-file>     <welcome-file>main.jsp</welcome-file>     <welcome-file>listevents.jsp</welcome-file>   </welcome-file-list> </web-app> 

any suggestion working without removing code of xml file ?

thanks in advance guys.

one reason problem problems in web.xml file...

i got problem, resolved it.

step resolve problem:

1- check every servlet class name correct(fully qualified class name )

2- checking correct class name go on class name press ctrl , move pointer on class name if class name giving hyperlink class name correct otherwise have change appropriate class name.

3- check jar added in project correct , working

4- after changes refresh project , run it..

it works....


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -