File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Unexpected element " {antlib:org:apache:tools:ant}beans Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Unexpected element &quot {antlib:org:apache:tools:ant}beans Error " Watch "Unexpected element &quot {antlib:org:apache:tools:ant}beans Error " New topic
Author

Unexpected element &quot {antlib:org:apache:tools:ant}beans Error

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 268

Hello,

I'm using the Spring framework 3.0.5 and have a user library consisting of all the spring jars created in Eclipse.

I had created a project earlier and had a configuration file called 'spring.xml' defined in it.
The project ran fine.
Today, I changed the unzipped folder location of spring and then created the user library again based on new location.
But now as I create a configuration file using the same steps I had last week, I get the error "Unexpected element " {antlib:org:apache:tools:ant}beans."



I get the error before </beans> tag.
It means the tag <beans> is not valid, I also tried out changing the location of the config file , moved it in and out of the classpath but didn't help.

Please advise.

Thanks,
Pramod
 
 
subject: Unexpected element &quot {antlib:org:apache:tools:ant}beans Error
 
Threads others viewed
XML name space error in Spring data JPA hibernate applicationContext.xml
javax.xml.bind.annotation.XmlSchemaType missing
How to add a new tag in XML configuration file.
Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'
Cannot find the declaration of element 'beans' -- application context invalid?
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture