I suspect your timer jar includes the data classes that are used by the binding, since it would need these classes in order to communicate with the EJBs. It sounds like Weblogic plays some games with the classloading for the timer and gets the class files from different places depending on where things are started. You probably need to package the JiBX-processed versions of the classes for the timer, which means you'll also need to include the JiBX runtime.

 - Dennis

Lukasz Korzeniowski wrote:

Hello,
I've recently encountered a problem regarding using JiBX under Weblogic 8.1
app server. The situation looks like this: I've a number of EJBs that use
JiBX to process incoming XML messages. I've also a Timer service which
activates certain EJBs according to its configuration. Finally, there is a
JSP page which allows to activate certain EJB "manually" (bypassing the
timer service). The timer service is implemented via Weblogic startup class
which is packed into seperate jar only with classes it depends on (no JiBX
processing happens in this classes). EJB jars include all required JiBX
classes. The problem is that when the timer executes an EJB and the EJB
starts JiBX marshalling it throws an exception:
JiBXException >>>>>Unable to create marshaller of class
types.JiBX_MyClass_bindingMyClass_access
When the same EJB is executed via web page (from the same application) the
exception is not thrown. It seems like Weblogic took some classes from
classpath (during Timer service startup) and some classes from EJB jars. But
the funniest thing is that only JiBX classes are "unrecognized" by
classloader. I mean, all other classes in the same package (types) are
loaded without any problem.
Any idea what could be wrong?

-------------
BezXywek
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to