Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

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

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

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


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.

Posts: 1682
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!