aspose file tools*
The moose likes Tomcat and the fly likes 404 error in eclipse after running Spring App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "404 error in eclipse after running Spring App" Watch "404 error in eclipse after running Spring App" New topic
Author

404 error in eclipse after running Spring App

Mayank Kalbhor
Greenhorn

Joined: Feb 26, 2011
Posts: 17
Hi all,

I have this example ( http://www.vaannila.com/spring/spring-hibernate-integration-1.html ) in my eclipse IDE and have Tomcat 7 running on it.
I have followed the exact tutorial still i am getting the irritating 404 file not found error.

The message is : message Servlet dispatcher is not available

and


description The requested resource (Servlet dispatcher is not available) is not available.

.
I dont know why its not finding the dispatcher-servlet.xml......

Thank you

Mayank
Mayank Kalbhor
Greenhorn

Joined: Feb 26, 2011
Posts: 17
hi all,

that error is gone after i imported couple of jar files in the WEB-INF/lib folder...But there is now a new error there. Can you help me in this..?

This is the error i am getting:



Apr 18, 2011 11:10:52 AM 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/Java/jre6/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0\bin;C:\Program Files\Java\jdk1.6.0\bin;.;;C:\Documents and Settings\Mayank Kalbhor\My Documents\Downloads\eclipse-jee-helios-SR2-win32\eclipse;
Apr 18, 2011 11:10:53 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Vanila' did not find a matching property.
Apr 18, 2011 11:10:53 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8181"]
Apr 18, 2011 11:10:53 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 18, 2011 11:10:53 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 772 ms
Apr 18, 2011 11:10:53 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 18, 2011 11:10:53 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.8
Apr 18, 2011 11:10:53 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet dispatcher as unavailable
Apr 18, 2011 11:10:53 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /Vanila threw load() exception
java.lang.ClassNotFoundException: org.springframework.context.ApplicationListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:996)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4834)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5155)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5150)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Apr 18, 2011 11:10:53 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8181"]
Apr 18, 2011 11:10:53 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Apr 18, 2011 11:10:53 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 473 ms
Apr 18, 2011 11:10:54 AM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet dispatcher is currently unavailable
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 515
Hello,
Locate the JAR that contains "org.springframework.context.ApplicationListener" and put it in WEB-INF\lib. This shall resolve your problem.

Regards,
Amit
 
 
subject: 404 error in eclipse after running Spring App