Results 1 to 2 of 2

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

  1. #1
    Join Date
    Aug 2011
    Posts
    5

    Default Invalid content was found starting with element 'job'.

    I am getting a SAXParserException that <job> tag is invalid.

    Below is my configuration file:

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:batch="http://www.springframework.org/schema/batch"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd">

    Can anyone suggest me where I am going wrong.
    I am writing my <job> tag under <beans></beans>

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    I suggest a read on xml and particularly namespaces.

    Either write batch:job or switch the root namespace (now http://www.springframework.org/schema/beans) to http://www.springframework.org/schema/batch and add the beans as a separate namespace (instead of the batch one) and write beans:beans...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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