Results 1 to 3 of 3

Thread: Duplicate <http> element detected

  1. #1
    Join Date
    Jun 2010
    Posts
    20

    Unhappy Duplicate <http> element detected

    Hello,
    I am trying to import the beans from an another XML in my app-config.xml with the xml entry

    <!-- Importing beans from app-security.xml file -->
    <import resource="app-security.xml"/>

    when I start up the server I see, I am using spring 3.0.2

    2010-06-21 12:49:45,811 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Duplicate <http> element detected
    Offending resource: ServletContext resource [/WEB-INF/config/app-security.xml]
    at org.springframework.beans.factory.parsing.FailFast ProblemReporter.error(FailFastProblemReporter.java :68)
    at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderContext.java:85)

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    So you must have two <http> elements (which isn't allowed in 3.0)?
    Spring - by Pivotal
    twitter @tekul

  3. #3
    Join Date
    Jun 2010
    Posts
    20

    Default No ...

    i dont have 2 tags. I got only one <http> tag in app-security.xml.

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
  •