Java compiling error netbeans
<p>This is an error am getting when compiling my project on netbeans:</p>

<pre><code>Exception while loading the app : java.lang.Exception: java.lang.IllegalStateException:   
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:  
org.apache.catalina.LifecycleException: java.lang.ClassCastException:
core.smd.classes.FormData   
cannot be cast to javax.servlet.Servlet

D:\Users\GHAMKS1C\Documents\NetBeansProjects\SMDApp\nbproject\build-impl.xml:728: 
The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy 
  (Deployment.java:210)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
</code></pre>

<p>Any idea?
Thanks</p>
