Failed to Load Servlet

I am tring to run a server in WSAD 5.0.1, but when I start the server it errors and doesn't allow the servlet to load. Here is the error message:

[7/28/05 7:20:55:619 EDT] 5cd5c78b WebGroupE SRVE0020E: [Servlet Error]-[log4webservlet]: Failed to load servlet: java.lang.ClassCastException: biz.anand.Log4WebServlet

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:453)

at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1233)

at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273)

at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317)

at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194)

at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:950)

at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133)

at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401)

at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:743)

at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:337)

at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:531)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:232)

at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)

at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)

at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:117)

at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)

at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)

at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)

at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)

at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)

at java.lang.reflect.Method.invoke(Native Method)

at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

What could be causing the servlet not to load? Also what is the ClassCastException? Any help would be greatly appreciated.

Thanks

[2715 byte] By [atp2bdba] at [2007-10-1 19:34:33]
# 1

A ClassCastException is what happens when you try to cast an object to another class or type that you can't cast to. Like this:

String astring = "jdhglfghskjfghslfdgh";

boolean something = (boolean)astring;

sdhafjasdfa at 2007-7-11 15:48:37 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Ok. I understand that now, but why would it not load the servlet?
atp2bdba at 2007-7-11 15:48:37 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...