Hi,

I think I had the same problem using Junit:
When marshalling a class MyClass JiBX tries to load the 
JiBX_MyClass_bindingMyClass_access with the 
Thread.currentThread().getContextClassLoader() classloader and not the application's 
class loader (JUnit uses a specific classloader when used with a graphical testrunner 
-> I just have to use the text testrunner to solve my problem)

Unfortunately I don't have a solution to your problem.

Dennis, can you correct me if I'm wrong :)

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Lukasz Korzeniowski
Envoy� : vendredi 22 octobre 2004 08:59
� : [EMAIL PROTECTED]
Objet : [jibx-users] jibx and weblogic startup class

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


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