Re: Conflict When Having Two XMLBean Generated classes for the same Schema...

2011-06-23 Thread Kevin Krouse
If you have schemas that define components in the same namespace you'll need to isolate the generated schema jars using classloaders. The issue is similar to trying to load two different java classes with the same name. Kevin On Thu, Jun 16, 2011 at 7:35 AM, Horst Heistermann

Re: Conflict When Having Two XMLBean Generated classes for the same Schema...

2011-06-23 Thread Cezar Andrei
Best way to avoid this problem is to have different target namespaces for your schemas, or same target namespace but without conflicts. If you can't do that next is to manage the jars/classes in different classloaders like Kevin suggested. If this is not possible, at least use different java

Conflict When Having Two XMLBean Generated classes for the same Schema...

2011-06-16 Thread Horst Heistermann
Hi, I am having an issue in my environment because I have two XMLBean generated classes pointing to the same schema. Sometimes when I use the factory of one class it tries to create an instance of the other XMLBean class (even though I am using the factory of the class I want to create!).