• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring MVC Startup Problem

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am started learning Spring and I took the step by step MVC application from spring framework site:
http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step-Part-2.html

While I am deploying the application the following error message is printing in the console.. I am not using the ANT, which is followed by the site and I am doing it manually....



I am getting the above error If I am placing the log4j.properties file inside the WEB-INF\classes folder. If i removed that file from WEB-INF\classes, the above error is not coming, but it's not logging..
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
some jar file is missing. Maybe servlet.jar. Please check it.
 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No.. I have the following .jar files in my lib folder:


And also I am having all the required jar files in the JDK\lib folder also and the classpath is set to that:


[Edited to fix line length. -JM]
[ January 28, 2007: Message edited by: Jason Menard ]
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like you're having an issue with the Tomcat configuration. I'm not sure if it will have any effect with this problem, but you should remove servlet-api.jar and jsp-api.jar from your lib directory since Tomcat has already loaded them outside of your webapp.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jason Menard:
It looks like you're having an issue with the Tomcat configuration. I'm not sure if it will have any effect with this problem, but you should remove servlet-api.jar and jsp-api.jar from your lib directory since Tomcat has already loaded them outside of your webapp.



That most defintaly will have an effect. When developing, I always keep 2 lib folders. a Production and a Development lib folder. Everything that goes in WEB-INF/lib is considered Production and everything I simply need to build time goes in Development. Easier to manage that way via Ant when creating the deployment WAR.
reply
    Bookmark Topic Watch Topic
  • New Topic