Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring 3 Jar files

 
HectorM Rivera
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one last hurdle to climb with getting the error below. Most of what Ihaev fousn on the web stats taht I need a spring-jar 2.5 version.
But i am runnign 3.0. What jar do I need that replaces the 2.5 version? Is there a workign list available that will work in 3.0?

Error:
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1664)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:406)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:388)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:117)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1005)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4529)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:424)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:648)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
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:415)
Dec 13, 2010 7:10:56 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 13, 2010 7:10:56 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 13, 2010 7:10:56 AM org.apache.coyote.ajp.AjpProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Dec 13, 2010 7:10:56 AM org.apache.coyote.ajp.AjpProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Dec 13, 2010 7:10:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4515 ms

Thanks
Hector
 
T. Huy Nguyen
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Inside Spring 3 distribution, there should be a dist folder where you can find all the Spring's component jar files.

org.springframework.web.servlet.DispatcherServlet is inside a jar file with "web" in its name.

If you're not sure which one to use, just put all of them in your WEB-INF/lib folder
 
HectorM Rivera
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
T. Huy Nguyen wrote:Hi,

Inside Spring 3 distribution, there should be a dist folder where you can find all the Spring's component jar files.

org.springframework.web.servlet.DispatcherServlet is inside a jar file with "web" in its name.

If you're not sure which one to use, just put all of them in your WEB-INF/lib folder


I have web-servlet-3.0.1,I have web-3.0.1 and I have web-sources-3.0.1. I don't have an applicationContext.xml file.
Here si come of my code:


Thanks
 
HectorM Rivera
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HectorM Rivera wrote:
T. Huy Nguyen wrote:Hi,

Inside Spring 3 distribution, there should be a dist folder where you can find all the Spring's component jar files.

org.springframework.web.servlet.DispatcherServlet is inside a jar file with "web" in its name.

If you're not sure which one to use, just put all of them in your WEB-INF/lib folder


I have web-servlet-3.0.1,I have web-3.0.1 and I have web-sources-3.0.1. I don't have an applicationContext.xml file.
Here si come of my code:


I finally have it running witout any errors, but when I click the link I get the 4040 error with teh message: that my html is not available.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic