1 Reply Latest reply: Apr 9, 2013 10:46 AM by gimbal2 RSS

    Error related to Servlet.xml in spring 2.5

    1001994
      Hi,

      I'm new to springs, currently i'm getting the following error; and i'm not able to rectify the same.
      I'm using (Tomcat 6 , springs 2.5, eclipse-galileo)
      Any suggestion would be a great help ...



      Apr 9, 2013 7:17:51 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
      WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWorld' did not find a matching property.
      Apr 9, 2013 7:17:51 PM org.apache.catalina.core.AprLifecycleListener init
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program Files\CA\DCS\CAWIN\;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;D:\WSFTP32
      Apr 9, 2013 7:17:51 PM org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8323
      Apr 9, 2013 7:17:51 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 529 ms
      Apr 9, 2013 7:17:51 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Apr 9, 2013 7:17:51 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
      Apr 9, 2013 7:17:52 PM org.apache.catalina.core.ApplicationContext log
      INFO: Marking servlet dispatcher as unavailable
      Apr 9, 2013 7:17:52 PM org.apache.catalina.core.ApplicationContext log
      SEVERE: Error loading WebappClassLoader
      delegate: false
      repositories:
      */WEB-INF/classes/*
      ----------> Parent Classloader:
      org.apache.catalina.loader.StandardClassLoader@ca2dce
      org.springframework.web.servlet.DispatcherServlet
      java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet*
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:516)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
           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:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Apr 9, 2013 7:17:52 PM org.apache.catalina.core.StandardContext loadOnStartup
      SEVERE: Servlet /HelloWorld threw load() exception
      java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:516)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
           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:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Apr 9, 2013 7:17:52 PM org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8323
      Apr 9, 2013 7:17:52 PM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8123
      Apr 9, 2013 7:17:52 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/27 config=null
      Apr 9, 2013 7:17:52 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 401 ms

      Edited by: 998991 on Apr 9, 2013 7:03 AM
        • 1. Re: Error related to Servlet.xml in spring 2.5
          gimbal2
          java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
          You don't know how to solve class not found errors? That's incredibly basic Java classpath stuff that you not only should know, you MUST know how to handle before you can even think about touching a web environment. You are lacking some really basic core Java knowledge here. Are you perhaps trying to learn Java by diving right into a web application? If so - you can give up now, you have to start from the beginning and that is learn Java. Not only the language, the platform and the tools too.