aspose file tools*
The moose likes Spring and the fly likes Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext." Watch "Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext." New topic
Author

Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.

Saravanakumar Jeyavel
Greenhorn

Joined: Aug 20, 2012
Posts: 6
Hi ,

I am getting the below error when i start up the jboss server. i have the following jars in my lib folder

spring-context-3.2.0.M1
spring-core-3.2.0.M1
spring-aspects-3.2.0.M1
spring-aop-3.2.0.M1
spring-web-3.2.0.M1
spring-beans-3.2.0.M1
spring-webmvc-3.2.0.M1

this is all happening when i have the following code in my applicationContext.xml

schema definition in my application context is,

i am trying to solve this problem since y'day...but i don't have an idea how to solve it. any help is really appreciated.

Thanks
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1666
    
    7

Sounds like a class loader issue. Do a mvn dependency:tree first and make sure that you are not pulling in multiple versions of your Spring jars. Also make sure that your application server if applicable is set to load parent-last


Couple other points you are using Spring 3.2 but you namespaces are 3.0 (this will not fix your problem but will cause issues if you need to use features defined in the newer schema)


Also I think it is a bad idea to set lazy-init to true on a container wide basis. Do it at the bean level if it is necessary at all and 99% of the time it is not.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.