The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

HuubS (3) [Avatar] Offline
#1
Hi,

I get the following error:

C:osesbinactionworkspaceworkspace-mulemule esourceschapter4>ant -f ch4-examples.xml messageflow-mule
Buildfile: ch4-examples.xml
Trying to override old definition of task urn:contrib-ant:for

gn:init:
[echo] Mule home is set to C:osesbinactionesbmule-2.0.2.
[echo] Workspace home is set to C:osesbinactionworkspaceworkspace-mule.

messageflow-mule:
[echo] Deploying the messageflow example of chapter 4 to Mule
Trying to override old definition of task urn:contrib-ant:for
Trying to override old definition of task urn:contrib-ant:for

gn:init:
[echo] Mule home is set to C:osesbinactionesbmule-2.0.2.
[echo] Workspace home is set to C:osesbinactionworkspaceworkspace-mule.

gn:compile-classes:
[javac] Compiling 15 source files to C:osesbinactionworkspaceworkspace-mulemuleclasses
Trying to override old definition of task urn:contrib-ant:for
Trying to override old definition of task urn:contrib-ant:for

gn:init:
[echo] Mule home is set to C:osesbinactionesbmule-2.0.2.
[echo] Workspace home is set to C:osesbinactionworkspaceworkspace-mule.

gn:jibx-classes:
[bind] Error running binding compiler
[bind] java.lang.IncompatibleClassChangeError
[bind] at org.jibx.binding.classes.ClassFile.<init>(ClassFile.java:247)
[bind] at org.jibx.binding.classes.ClassCache.getClassFileImpl(ClassCache.java:13smilie
[bind] at org.jibx.binding.classes.ClassCache.getClassFile(ClassCache.java:17smilie
[bind] at org.jibx.binding.classes.ClassItem.findStaticMethod(ClassItem.java:523)
[bind] at org.jibx.binding.def.StringConversion.setSerializer(StringConversion.java:386)
[bind] at org.jibx.binding.def.PrimitiveStringConversion.setSerializer(PrimitiveStringConversion.java:460)
[bind] at org.jibx.binding.def.StringConversion.<init>(StringConversion.java:14smilie
[bind] at org.jibx.binding.def.PrimitiveStringConversion.<init>(PrimitiveStringConversion.java:146)
[bind] at org.jibx.binding.def.BindingDefinition.<clinit>(BindingDefinition.java:89)
[bind] at org.jibx.binding.Compile.compile(Compile.java:289)
[bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:24smilie
[bind] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:28smilie
[bind] at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
[bind] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[bind] at java.lang.reflect.Method.invoke(Method.java:585)
[bind] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[bind] at org.apache.tools.ant.Task.perform(Task.java:34smilie
[bind] at org.apache.tools.ant.Target.execute(Target.java:357)
[bind] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[bind] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[bind] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3smilie
[bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[bind] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[bind] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[bind] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:28smilie
[bind] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[bind] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[bind] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[bind] at java.lang.reflect.Method.invoke(Method.java:585)
[bind] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[bind] at org.apache.tools.ant.Task.perform(Task.java:34smilie
[bind] at org.apache.tools.ant.Target.execute(Target.java:357)
[bind] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[bind] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[bind] at org.apache.tools.ant.Project.executeTarget(Project.java:129smilie
[bind] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[bind] at org.apache.tools.ant.Main.runBuild(Main.java:69smilie
[bind] at org.apache.tools.ant.Main.startAnt(Main.java:199)
[bind] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[bind] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[bind]

BUILD FAILED
C:osesbinactionworkspaceworkspace-mulemule esourceschapter4ch4-examples.xml:89: The following error occurred while executing this line:
C:osesbinactionworkspaceworkspace-mulemulescriptsantmule-general.xml:202: JiBXException in JiBX binding compilation

Any ideas?

Greetings
Huub
HuubS (3) [Avatar] Offline
#2
Re: Error running chapter4 messageflow example
Huub,

I have found the solution.

Greetings,
Huub
tijs.rademakers (494) [Avatar] Offline
#3
Re: Error running chapter4 messageflow example
Hi Huub,

Okay great, I just ran the Ant command and it worked fine for me. Could you share the solution?

Best regards,

Tijs