ahh okay. Now it works. thank you

-------- Original-Nachricht --------
> Datum: Wed, 16 Jan 2008 13:50:47 -0900
> Von: Joshua Davies <[EMAIL PROTECTED]>
> An: JiBX users <jibx-users@lists.sourceforge.net>
> Betreff: Re: [jibx-users] Binding binding.xml is unusable because     of      
> validation errors

> Most likely the compiler isn't able to find your target class - remember
> Jibx opens and modifies the .class file itself.  Try this:
> 
> java -classpath lib\jibx-bind.jar;lib\bcel.jar;build\classes
> org.jibx.binding.Compile binding.xml
> 
> (I can't figure out how to augment the classpath when using the "-jar"
> option, but I'm sure there's some way to do it if you for some reason
> really don't want to list org.jibx.binding.Compile directly).
> 
> On Wed, 2008-01-16 at 20:36 +0100, Wolf-Dieter Mische wrote:
> > Hi,
> > 
> > I'm trying to get jibx working, but I always get this exception:
> > "Binding binding.xml is unusable because of validation errors"
> > I think I'm calling the compiler wrong.
> > 
> > I have following directory structure:
> > jibxtest
> >    ├ binding.xml
> >    ├ src             //Directory with java sources
> >    ├ build
> >        ├   classes   //Directory with java classes
> >    ├ data            //Directory with xml file (foo.xml)
> >    ├ lib             //Directory with jibx libs
> > 
> > My basic call was "java -jar .\lib\jibx-bind.jar binding.xml" I tried it
> in several directories, but I always get the exception.
> > 
> > What did I wrong?
> > 
> > The XML file looks like:
> > <foo name="something">
> >   <content>abc</content>
> >   <a><b>as</b></a>
> > </foo> 
> > The destination class looks like:
> > package org.domain;
> > public class Foo {
> >     String content;
> >     String b;
> > } 
> > And the binding.xml like:
> > <binding>
> >   <mapping name="foo" class="org.domain.Foo">
> >     <structure name="a">
> >       <value name="b" field="b"/>
> >     </structure>
> >     <value name="content" field="content"/>
> >   </mapping>
> > </binding>
> > 
> > regards
> > wolle
> 
> -------------------------------------------------------------------------
> 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

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

-------------------------------------------------------------------------
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