Thursday, April 28, 2011

Unable to locate Spring NamespaceHandler

Error:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx] Offending resource: class path resource [applicationContext.xml]
Solution: Add spring-tx.jar to WEB-INF/lib

Error:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: class path resource [applicationContext.xml]
Solution: Add spring-core, spring-acl, spring-config, spring-web, spring-taglibs jars to WEB-INF/lib

1 comment:

  1. Uhhhh.... dude. I spent 4 hours of my work time! Until I meet your post. Fantastic job. So many solutions was offered everywhere but when I met your it was WOW. Of course!!!

    Solution: Add spring-tx.jar to WEB-INF/lib

    It is all I need. I added all spring instead this jar, because I did not found it in spring 3.1

    ReplyDelete