Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassPathXmlApplicationContext won't resolve  RSS feed

matt love
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"com/springinaction/springidol/spring-idol.xml") won't resolve in Eclipse.

I used the shotgun approach so my eclipse build path contains the 20 jar files which downloaded with spring-framework-3.1.0.M2.

How do I determine what to import so ClassPathXmlApplicationContext resolves?

The javadocs at indicates the full name of class ClassPathXmlApplicationContext is But import* doesn't help and import doesn't resolve.

Many thanks.


I have resolved the problem.

I was attaching the build path jar files from the src directory and not the dist directory.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!