-
Aug 30th, 2011, 03:42 AM
#1
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>
-
Aug 30th, 2011, 04:51 AM
#2
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules