I am tring to run a server through WSAD 5.0.1, but every time that I try to start the server it errors and my servlet doesn't load. Here is the error portion:
[7/28/05 7:05:03:719 EDT] 5cd985b7 WebGroup E 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 wrong? Also what is a ClassCastException?
Thanks
[7/28/05 7:05:03:719 EDT] 5cd985b7 WebGroup E 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 wrong? Also what is a ClassCastException?
Thanks