• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Error configuring Spring ContextLoader Listener

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I was trying to setup a new project using spring 3.1.0, Eclipse Helios and Tomcat 6. I am not using maven / ant.
I created a dynamic web project in eclipse and added all spring libraries to the project as "external jars".

I have added spring configuration in web.xml as mentioned below.



The project built successfully with all spring classes and when I started tomcat, the below exception is thrown.


I suspect tomcat is not identifying spring libraries.
one solution is already suggested by group members which requires maven.
could somebody just let me know if it is possible to fix this problem without using maven / ant?

Thanks in advance.
Deepa.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, include the Spring jars into your classpath for Tomcat. Either by including them in your war's lib directory, or putting them in your TOmcat lib directory, but I recommend including them in your war.

Mark
 
Deepanjali Reddy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark.
After adding the jars to war , tomcat identified spring libraries and started without errors.

--Deepa.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic