Hi guys,
I am trying to get a simple precompiled binding (using ant) to work.
This is the binding that is being called (precompiledBindings.xml)
<binding package="com.mycompany.precompiled">
 <mapping...>
</binding>

This is the binding that is using the precompiled binding (bindings.xml)
<binding package="com.mycompany.usingprecompiled">
  <include path="precompiledBindings.xml" precompiled="true"/> 
 <mapping...>
</binding>

Here is the exception:
 [bind] *** Error during code generation for file 'bindings.xml' -
please enter a bug report for this error in Jira if the problem is not
listed as fixed on the online status page ***
     [bind] org.jibx.runtime.JiBXException: Classloader conflict for
binding 'precompiledBindings' - factory does not implement required
interface
     [bind]     at
org.jibx.runtime.BindingDirectory.getFactory(BindingDirectory.java:269)
     [bind]     at
org.jibx.binding.def.BindingBuilder.unmarshalInclude(BindingBuilder.java
:2002)
     [bind]     at
org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBu
ilder.java:2099)
     [bind]     at
org.jibx.binding.Utility.loadBinding(Utility.java:314)
     [bind]     at
org.jibx.binding.Utility.loadFileBinding(Utility.java:431)
     [bind]     at org.jibx.binding.Compile.compile(Compile.java:212)
     [bind]     at
org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
     [bind]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [bind]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown
Source)
     [bind]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     [bind]     at java.lang.reflect.Method.invoke(Method.java:585)
     [bind]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
05)
     [bind]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [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(SingleChe
ckExecutor.java:38)
     [bind]     at
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.execut
eTargets(EclipseSingleCheckExecutor.java:30)
     [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.UnknownElement.execute(UnknownElement.java:288)
     [bind]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [bind]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
     [bind]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     [bind]     at java.lang.reflect.Method.invoke(Method.java:585)
     [bind]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
05)
     [bind]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [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(SingleChe
ckExecutor.java:38)
     [bind]     at
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.execut
eTargets(EclipseSingleCheckExecutor.java:30)
     [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:288)
     [bind]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [bind]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
     [bind]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     [bind]     at java.lang.reflect.Method.invoke(Method.java:585)
     [bind]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
05)
     [bind]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [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(SingleChe
ckExecutor.java:38)
     [bind]     at
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.execut
eTargets(EclipseSingleCheckExecutor.java:30)
     [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.UnknownElement.execute(UnknownElement.java:288)
     [bind]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [bind]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
     [bind]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
     [bind]     at java.lang.reflect.Method.invoke(Method.java:585)
     [bind]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
05)
     [bind]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [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:1298)
     [bind]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:41)
     [bind]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTar
gets(EclipseDefaultExecutor.java:32)
     [bind]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [bind]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAnt
Runner.java:423)
     [bind]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAn
tRunner.java:137)

I'm sure its something silly.  Can someone give me a hand?
Thanks,
Lenny
_______________________________________________

This e-mail may contain information that is confidential, privileged or 
otherwise protected from disclosure. If you are not an intended recipient of 
this e-mail, do not duplicate or redistribute it by any means. Please delete it 
and any attachments and notify the sender that you have received it in error. 
Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays. Any views or opinions presented are solely 
those of the author and do not necessarily represent those of Barclays. This 
e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the 
foregoing.  Barclays Capital is the investment banking division of Barclays 
Bank PLC, a company registered in England (number 1026167) with its registered 
office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be 
sent from other members of the Barclays Group.
_______________________________________________

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to