thanks Brian.. unfortunatelly, I will only be able to check this out
tomorrow, at work, I`m at home now... I will post here the results...

On Wed, Mar 12, 2008 at 7:20 PM, Brian Thompson <[EMAIL PROTECTED]>
wrote:

> Hmm, I just looked at my jibx.xml, and I have it structured a bit
> differently:
>
>     <!-- jibx classpath -->
>     <path id="jibx.classpath">
>         <pathelement location="${coreApp.base
> }/WebContent/WEB-INF/classes"/>
>     </path>
>     <!-- bind as a separate step -->
>     <target name="jibxbind" depends="check-binding">
>         <echo message="Running JiBX binding compiler"/>
>         <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
>           <classpath>
>             <pathelement location="${jibx-home}/lib/jibx-bind.jar"/>
>               <pathelement location="${jibx-home}/lib/jibx-run.jar"/>
>                <pathelement location="${jibx-home}/lib/bcel.jar"/>
>               <pathelement location="${jibx-home}/lib/xpp3.jar"/>
>           </classpath>
>         </taskdef>
>         <bind verbose="false" binding="${basedir}/jibxBinding.xml">
>           <classpath refid="jibx.classpath"/>
>         </bind>
>     </target>
>
> n.b. you can have multiple <pathelement location=""/> elements in the
> <path id="jibx.classpath"> element.
>
> Hope this helps,
>
> -Brian
>
>
> On Wed, Mar 12, 2008 at 4:26 PM, Alberto Ivo <[EMAIL PROTECTED]> wrote:
>
> > Hi Brian,
> >
> > the ${lib.dir} and ${basedir} are pointing to the correct dir.. and the
> > .class are all there... I just checked... I don't know why this error is
> > happening.. I laready lost my mind trying to figure it out.. but I couldn't
> > :-(
> >
> >
> > On Wed, Mar 12, 2008 at 5:56 PM, Brian Thompson <[EMAIL PROTECTED]>
> > wrote:
> >
> > > What happens when you echo ${lib.dir} and ${basedir} just below
> > >
> > >   <echo message="Running JiBX binding compiler" />
> > > ?
> > >
> > > I suspect you have a simple problem with the paths you're handing to
> > > Jibx.
> > >
> > > Another thing you can check is to make sure that your .class files are
> > > actually getting built before the Jibx binding gets started.
> > >
> > > Good luck!
> > >
> > > -Brian
> > >
> > >
> > >
> > > On Wed, Mar 12, 2008 at 3:35 PM, Alberto Ivo <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > Can anyone please send me the ANT task to run jibx. Mine is wrong:
> > > >
> > > >     <target name="jibx-binding" description="criando bindings XML"
> > > > depends="compile">
> > > >         <echo message="Running JiBX binding compiler" />
> > > >         <taskdef name="bind" classname="
> > > > org.jibx.binding.ant.CompileTask">
> > > >             <classpath>
> > > >                 <pathelement location="${lib.dir}/jibx-bind.jar" />
> > > >             </classpath>
> > > >         </taskdef>
> > > >
> > > >         <bind load="true" binding="${basedir}/classes/binding-
> > > > CabecalhoTestAval.xml">
> > > >             <classpath>
> > > >                 <pathelement location="${basedir}/classes" />
> > > >                 <fileset dir="${lib.dir}">
> > > >                     <include name="**/*.jar"/>
> > > >                 </fileset>
> > > >             </classpath>
> > > >         </bind>
> > > >     </target>
> > > >
> > > >
> > > > The error is:
> > > >
> > > > jibx-binding:
> > > >      [echo] Running JiBX binding compiler
> > > >      [bind] Error: Cannot find information for class
> > > > br.com.petrobras.itp.model.CabecalhoTestAval; on mapping element at
> > > > (line 7, col 46, in ITPO/classes/binding-CabecalhoTestAval.xml)
> > > >
> > > >
> > > > and I am sure the class CabecalhoTestAval is in the right place...
> > > > why is this error happening???
> > > >
> > > >
> > > > Thanks in advance!
> > > >
> > > >
> > > > -------------------------------------------------------------------------
> > > > This SF.net email is sponsored by: Microsoft
> > > > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > > _______________________________________________
> > > > jibx-users mailing list
> > > > jibx-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/jibx-users
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > jibx-users mailing list
> > > jibx-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/jibx-users
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > jibx-users mailing list
> > jibx-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jibx-users
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to