title: Error: Wrapper cannot find servlet class VendorRegistration or a class it depends on
body: <p>I'm a newb whose also been searching for a solution to the same problem. I've followed the steps that the Elite Gentleman and Bozho outlined <a href="https://stackoverflow.com/questions/3701118/how-to-rectify-the-following-error-while-using-servlet">here</a>. So first of all, thanks a lot guys. But I still seem to have the same problem. Now as per my understanding and implementation, my situation is as follows:</p>
  
  <p>My servlet class VendorRegistration is available in the folder: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\VendorReg\WEB-INF\classes</p>
  
  <p>My web.xml is present at: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\VendorReg\WEB-INF\</p>
  
  <p>However, I still seem to be getting the error:</p>
  
  <p>****HTTP Status 500 -
  type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class VendorRegistration or a class it depends on****</p>
  
  <p>I have also appended my web.xml file below for your consideration:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     version="2.5"&gt;
  
    &lt;display-name&gt;Welcome to Tomcat&lt;/display-name&gt;
    &lt;description&gt;
       Welcome to Tomcat
    &lt;/description&gt;
    &lt;servlet&gt;
  
      &lt;servlet-name&gt;VendorRegistration&lt;/servlet-name&gt;
      &lt;servlet-class&gt;VendorRegistration&lt;/servlet-class&gt;
  
    &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt; 
      &lt;servlet-name&gt;VendorRegistration&lt;/servlet-name&gt; 
      &lt;url-pattern&gt;/VendorRegistration&lt;/url-pattern&gt; 
      &lt;/servlet-mapping&gt; 
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I am trying to access the servlet through the URL: <a href="http://localhost:8080/VendorReg/VendorRegistration" rel="nofollow noreferrer">http://localhost:8080/VendorReg/VendorRegistration</a>. What am I missing ? I had compiled the .class file sometime before I installed Apache. And hence directly copied pasted the class file in the folder. Could that be a problem ?</p>