aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ClassPathXmlApplicationContext won't resolve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ClassPathXmlApplicationContext won Watch "ClassPathXmlApplicationContext won New topic
Author

ClassPathXmlApplicationContext won't resolve

matt love
Ranch Hand

Joined: Jan 25, 2010
Posts: 65
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 http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/context/support/ClassPathXmlApplicationContext.html indicates the full name of class ClassPathXmlApplicationContext is org.springframework.context.support.ClassPathXmlApplicationContext. But import org.springframework.context.support.* doesn't help and import org.springframework.context.support.ClassPathXmlApplicationContext doesn't resolve.

Many thanks.

Matt

I have resolved the problem.

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassPathXmlApplicationContext won't resolve
 
Similar Threads
Injecting a Dependency through Spring
Importing a zipped package in Eclipse
batchUpdate problem
Why cannot ApplicationContext find an existing file?
What jar to resolve this import