Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-175

"cron" attribute not allowed in "poller" element error when using 1.3.0.M1 snapshot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: Manager
    • Labels:
      None

      Description

      I'm converting from using spring batch 2.1.9 to 2.2.1 and read that I have to convert to the snapshot of spring-batch-admin so I downloaded 1.3.0.M1.zip. However when I start it under tomcat, I get a the following:

      2013-09-10 13:02:52,159 ERROR context.ContextLoader [localhost-startStop-1] - : -Context initialization failed
      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:/org/springframework/batch/admin/web/resources/webapp-config.xml]
      Offending resource: class path resource [batch.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:/META-INF/spring/batch/bootstrap/**/*.xml]
      Offending resource: URL [jar:file:/Users/bikehead/Git/dataplatform/dp-batch/target/dpbatch/WEB-INF/lib/spring-batch-admin-resources-1.3.0.M1.jar!/org/springframework/batch/admin/web/resources/webapp-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 38 in XML document from URL [jar:file:/Users/bikehead/Git/dataplatform/dp-batch/target/dpbatch/WEB-INF/lib/spring-batch-admin-manager-1.3.0.M1.jar!/META-INF/spring/batch/bootstrap/integration/configuration-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 38; columnNumber: 60; cvc-complex-type.3.2.2: Attribute 'cron' is not allowed to appear in element 'poller'.

      The XSD declaration for webapp-config.xml is specified as "http://www.springframework.org/schema/integration/spring-integration.xsd" and when I go to that URL sure enough "cron" is not specified. However in a later schema "http://www.springframework.org/schema/integration/spring-integration-2.2.xsd" it is specified. Shouldn't the xml specify the minimum version of XSD it needs?

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bikehead Brian Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: