I'm developing an Eclipse RCP application and use JiBX to bind incoming
xml messages. The binding seems to go ok: I get no errors and the
JiBX_DataBindingCLASSNAME_acess.class classes are generated. I use the
command line to do the binding: 

java -cp
"c:/java/jibx/lib/jibx-run.jar;c:/java/jibx/lib/jibx-bind.jar;./bin"
org.jibx.binding.Compile DataBinding.xml

But when I debug from inside eclipse I get ClassNotFoundException on the
generated classes.

java.lang.ClassNotFoundException:
com.traficon.xml.binding.JiBX_DataBindingVersionData_access

when I export my eclipse plugins, the generated classes aren't even
added to the jar file. It seems as if eclipse ignores these classes.

I thought everything worked fine with version 3.1M4 and 3.1M5a
(currently I'm using 3.1M6) 

So now I'm downloading 3.1M5a again. And will let you know if this
solves my problem, I doubt it.

Koen Claerhout


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dmitry
Sent: donderdag 7 april 2005 21:27
To: [email protected]
Subject: [jibx-users] Unable to access binding information for class -
error

First, thank you all who answered the question regarding the eclipse
plugin
and ant tasks.. Thanks!!

I have a new problem now. I'm at the point where I'm trying to test if
any
of my mappings will actually work. I've copied the code (modified ..)

IBindingFactory bfact = 
        BindingDirectory.getFactory(HbmIssue.class);

into my project. But when I get to run this line I get this error:


Unable to access binding information for class
com.beacon.secmaster.db.persistent.HbmIssue

Make sure classes generated by the binding compiler are available at
runtime

I do have a new .class file with a long name in my class directory which
was
definitely generated by JiBX.    Is it looking for that file? Why can't
it
find it? It's in the same directory where the HbmIssue is and I can see
that
HbmIssue.class was also modified (cause it's size and timestamp differs
from
the original time/size when it was compiled. (Of course I ran the JiBX
binding compiler after that..)

So anybody seen this error and knows how to fix it?

I'm running Eclipse and I'm running the code from within it. I think
those
filea are in the classpath because they sit in the same package
directory.

BTW, what package name is being assigned to the classes generated by
JiBX
are they the same as the class we are binding? If not, that may explain
why
those classes are not found. But I assume they are the same..

Any help is apreciated




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to