Results 1 to 2 of 2

Thread: Invalid content was found starting with element 'job'

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Default Invalid content was found starting with element 'job'

    I tried to run my unitTest but encountered the following exception:

    nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'job'. One of '{"http://www.springframework.org/schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.

    The header of the XML is the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/batch"
    xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/batch
    http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

    Anyone has the idea? Thx!

    dchoi007

  2. #2
    Join Date
    Feb 2011
    Posts
    2

    Default

    Found it caused by a hard-to-catch whitespace character ~

Posting Permissions

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