title: Eclipse Error Loading WebappClassLoader
body: <p>I get this exception in the console when I start tomcat through eclipse. I dont understand what's wrong and can't find any way to fix it.</p>
  
  <pre><code>SEVERE: Error loading WebappClassLoader
    delegate: false
    repositories:
  ----------&gt; Parent Classloader:
  org.apache.catalina.loader.StandardClassLoader@63d6a00c
   bm._.ops.web.DataServlet
  java.lang.ClassNotFoundException: bm._.ops.web.DataServlet
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:634)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:561)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:496)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
  
  Mar 26, 2014 10:34:31 AM org.apache.catalina.core.StandardContext loadOnStartup
  SEVERE: Servlet /ops threw load() exception
  java.lang.ClassNotFoundException: bm._.ops.web.DataServlet
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:634)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:561)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:496)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
  </code></pre>
  
  <p><strong>Edit:</strong>
  web.xml</p>
  
  <pre><code>&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_3_0.xsd"
    version="3.0"
    metadata-complete="true"&gt;
  
      &lt;description&gt;
        OpsTools
      &lt;/description&gt;
      &lt;display-name&gt;OpsTools&lt;/display-name&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;test&lt;/servlet-name&gt;
          &lt;servlet-class&gt; bm._.ops.web.Test&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;test&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/test&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;upload&lt;/servlet-name&gt;
          &lt;servlet-class&gt; bm._.ops.web.FileUploadServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;upload&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/upload&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;fileUpload&lt;/servlet-name&gt;
          &lt;servlet-class&gt; bm._.ops.web.FileUpload&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;fileUpload&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/fileUpload&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;data&lt;/servlet-name&gt;
          &lt;servlet-class&gt; bm._.ops.web.DataServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;propertyFileName&lt;/param-name&gt;
              &lt;param-value&gt;vcaps.properties&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;data&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/data&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  
  &lt;/web-app&gt;
  </code></pre>