Results 1 to 1 of 1

Thread: errors "Unable to locate Spring NamespaceHandler"

  1. #1
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default errors "Unable to locate Spring NamespaceHandler"

    I got these errors in STS 2.6.0M2:
    Code:
    Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
    and
    Code:
    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
    complaining about errors in my applicationContext-security.xml file in my Roo 1.1.2 generated main project. I never touched this file and it did validate repeatedly.

    I made another Roo project from scratch with one entity, MVC and security setup, I compared the applicationContext-security file I had in my main project with the fresh one and they were identical in content. I compared the pom's in case there were a difference in versions of the Spring projects used. There were none.
    Finally I copied the fresh applicationContext-security file and replaced my erroneous file in my main project. Problems disappeared.

    Problems of this kind can drive a developer crazy. Am I the only one?
    Last edited by MiB; Mar 9th, 2011 at 07:41 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •