Hi,
I'm currently evaluating jibx and have a problem with the ant task.
My task is defined as follows:
<target name="jibx" depends="build" description="Jibx XML Mappings
generieren">
<taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
classpathref="jibx.lib.path"/>
<!-- Run JiBX binding compiler -->
<bind verbose="true" load="true"
binding="${config.dir}/mappings/jibx-binding.xml">
<classpath path="${application.dir}"/>
</bind>
</target>
${application.dir} ist the root folder of my Java source files.
My mapping file looks like this:
<binding>
<mapping name="DealHead" class="de.ava.kas.model.DealHead">
<value name="id" field="id"/>
</mapping>
<mapping name="SAPDocument" class="de.ava.kas.model.SAPDocument">
<value name="documentNo" field="documentNo"/>
</mapping>
</binding>
Running the ant task shows the following errors:
jibx:
[bind] Using the following paths:
[bind] D:\Projects\KAS_Java\application
[bind] Using the following binding paths:
[bind] config/mappings/jibx-binding.xml
[bind] Running binding compiler version jibx-rc1
[bind] Error: Cannot find information for class de.ava.kas.model.DealHead
for mapping element at (line 2, col 62, in config/mappings/jibx-binding.xml)
[bind] Error: Cannot find information for class
de.ava.kas.model.SAPDocument for mapping element at (line 9, col 68, in
config/mappings/jibx-binding.xml)
[bind] Error running binding compiler
[bind] org.jibx.runtime.JiBXException: Binding
config/mappings/jibx-binding.xml is unusable because of validation errors
[bind] at org.jibx.binding.Utility.loadBinding(Utility.java:360)
[bind] at org.jibx.binding.Utility.loadFileBinding(Utility.java:388)
[bind] at org.jibx.binding.Compile.compile(Compile.java:296)
[bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
[bind] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[bind] at org.apache.tools.ant.Task.perform(Task.java:364)
[bind] at org.apache.tools.ant.Target.execute(Target.java:341)
[bind] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[bind] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:383)
[bind] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:136)
BUILD FAILED: D:\Projects\KAS_Java\build.xml:527: JiBXException in JiBX binding
compilation
I think the compiler does not find my source files but the path is set
correctly.
What have I missed here?
Thanks and regards,
Michael
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users