java - Cleaning Tomcat server causes 500 error -


For some strange errors was a service I was going well, I was looking for space (this servlet area New) and chose to clean the server (not the project). After doing this, I get the following error:

where others get this error because Servlet does not have a package defined, but this Servlet was working and I have never changed the servlet code

what does it do Can be cleaned? I am using Eclipse Kepler to run this environment.

Enter image details here

Stack trace:

  Apral 24, 2014 07:14:16 org.apache.catalina.core.StandardWrapperValve serious call: servlet MyServ allocate exception java.lang.ClassNotFoundException: org.apache.catalina. loader.WebappClassLoader.loadClass (WebappClassLoader.java:1680) on org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1526) MyServ on org.apache.catalina.core.StandardWrapper. LoadServlet (StandardWrapper.java:1128) org.apache.catalina.core.StandardWrapper.allocate (standardWrapper.java:827) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:129) at org.apache .catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke at (ErrorReportVal ve. Java: 103) org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service (at CoyoteAdapter.java Jay9393) at org.apache.coyote at .http11 .Http11Processor.process (Http11Processor.java:861) org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process at (HTTP11 protocol.Java: 606) at org.apache.tomcat.util.net.JIoEndpoint $ Worker.Run java on .lang.Thread.run (JIoEndpoint.ja Va: 489) (Thread.java:744)   

web.xml:

  & lt;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; web-app xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://java.sun.com/xml/ns/javaee" xsi: schema location = "http : //java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd "id =" WebApp_ID "version =" 2.5 "& gt; & Lt; Display-name & gt; All & lt; / Display-name & gt; & Lt; Welcome-file-list & gt; & Lt; Welcome-file & gt; Index.html & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Index.htm & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Index.jsp & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Default.html & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Default.htm & lt; / Welcome-file & gt; & Lt; Welcome-file & gt; Default.jsp & lt; / Welcome-file & gt; & Lt; / Welcome-file-list & gt; & Lt; Servlet & gt; & Lt; Description & gt; & Lt; / Description & gt; & Lt; Display-name & gt; MyServ & lt; / Display-name & gt; & Lt; Servlet-name & gt; MyServ & lt; / Servlet-name & gt; & Lt; Servlet category & gt; MyServ & lt; / Servlet category & gt; & Lt; / Servlet & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; MyServ & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / MyServ & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; MyServ & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / Logs / * & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; & Lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; MyServ & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / Analyst / * & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; & Lt; / Web application & gt;   

How an image is being shown that an option image details are not entered here

Refresh the servlet by transferring the servlet Java class into a single package and it's fully related to the project related Web.XML. Includes; Tomcat should have servlet class inside Web.xml:

    

Here's where you specify packages in Eclipse < / P>

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -