Hi Kumar,
Problems like this occur is when you have a version of the classes *without* the binding information in your classpath, and that version is getting loaded. Just because you have the version that includes the JiBX binding in your classpath doesn't mean it's always going to be used. Look for another set of classes in the classpath which do not include the binding information and you'll have found your problem.
In the particular situation you're describing, working in an EJB environment, a common cause of this problem is if the EJB ear file includes the unbound classes while a war file or equivalent includes the bound classes. The unbound classes from the ear will be loaded before the bound ones from the war and you'll see this type of issue.
- Dennis
babloosony wrote:
Hi All,
Even though I have ran the jibx binding compiler on my custom types used in a ejb web service and there is exists ***public static final String JiBX_bindingList = "|com.mypackage.JiBX_provider_test_Employee_bindingFactory|*** created in my custom class com.mypackage.EmployeeHistory class, I still get below exception :
org.jibx.runtime.JiBXException: Unable to access binding information for class com.mypackage.data.EmployeeHistory Make sure the binding has been compiled Root cause: java.lang.NoSuchFieldException: JiBX_bindingList at org.jibx.runtime.BindingDirectory.getBindingList(BindingDirectory.java:78) at org.jibx.runtime.BindingDirectory.getFactory(BindingDirectory.java:189)
Can anyone please tell me why is this error occurring ?
Are there any specific guidelines or checklist for packaging the classes along actual ejb bean classes produced after running the jibx binding compiler ?
Thanks & Regards, Kumar.
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
-- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
