Schema validation for Java EE job descriptors
Hi,
I cannot get the schema validation to work for a Java EE 7 job descriptor.
The xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<job id="ImportPortals" version="1.0" restartable="true"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/jobXML_1_0.xsd">
<step id="FirstImport">
<chunk item-count="3">
<reader ref="myItemReader"/>
<processor ref="myItemProcessor"/>
<writer ref="myItemWriter"/>
</chunk>
</step>
</job>
The problem seems to be:
- The XSD of Java EE share the same namespace. this is http://xmlns.jcp.org/xml/ns/javaee.
- IDEA associates the ee7/javaee_7.xsd with that namespace. (It is shown when pressing Alt-Space.) This XSD does not contain the job specification.
Anyone any hints?
Best,
Torsten
Please sign in to leave a comment.