Re: Class loading problem

2006-05-02 Thread Hossam Karim
IL PROTECTED]> wrote: > > > So if I am loading some beans XML source that comes with the component > > > installation artifact, is it expected that Spring can normally load the > > > beans, or should a special procedure be taken according to your > >

RE: Class loading problem

2006-05-02 Thread Hossam Karim
d.java:595) -Original Message- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 5:39 PM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem If the class is extended by the component, you should be able to use getClass().getClassLoader() which sho

Re: Class loading problem

2006-05-02 Thread Guillaume Nodet
ent: Tuesday, May 02, 2006 1:10 AM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem You may try the following things: * set the thread classloader to the classloader of the component (though this should have already been done by ServiceMix) * change the classloa

RE: Class loading problem

2006-05-02 Thread Hossam Karim
0 AM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem You may try the following things: * set the thread classloader to the classloader of the component (though this should have already been done by ServiceMix) * change the classloader so that it delegates to the component

Re: Class loading problem

2006-05-02 Thread Guillaume Nodet
OTECTED] > Sent: Monday, May 01, 2006 2:22 PM > To: servicemix-users@geronimo.apache.org > Subject: Re: Class loading problem > > You should include the jars where the beans are in the component classpath. > If you want to do that at bootstrap time, you need to include them in > t

Re: Class loading problem

2006-05-01 Thread Guillaume Nodet
es although they are in the components class path, and the loading takes place in the 'init' method -Original Message- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 2:22 PM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem Y

RE: Class loading problem

2006-05-01 Thread Hossam Karim
ervicemix-users@geronimo.apache.org Subject: Re: Class loading problem You should include the jars where the beans are in the component classpath. If you want to do that at bootstrap time, you need to include them in the bootstrap classloader that you define in your jbi descriptor. This classloader has servi

Re: Class loading problem

2006-05-01 Thread Guillaume Nodet
llaume Nodet [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 10:07 AM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem ServiceMix has the spring jars inside its classpath, so it is also available to the components. But if you want your component to be container indep

RE: Class loading problem

2006-05-01 Thread Hossam Karim
Nodet [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 10:07 AM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem ServiceMix has the spring jars inside its classpath, so it is also available to the components. But if you want your component to be container independant

Re: Class loading problem

2006-05-01 Thread Guillaume Nodet
Nodet [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 11:03 PM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem Did you put your jar in the bootstrap class loader (in your jbi descriptor) ? Not only in the runtime class loader ? Cheers, Guillaume Nodet On 4/28/06,

RE: Class loading problem

2006-04-28 Thread Hossam Karim
Message- From: Guillaume Nodet [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 11:03 PM To: servicemix-users@geronimo.apache.org Subject: Re: Class loading problem Did you put your jar in the bootstrap class loader (in your jbi descriptor) ? Not only in the runtime class loader ? Cheers

Re: Class loading problem

2006-04-28 Thread Guillaume Nodet
Did you put your jar in the bootstrap class loader (in your jbi descriptor) ? Not only in the runtime class loader ? Cheers, Guillaume Nodet On 4/28/06, Hossam Karim <[EMAIL PROTECTED]> wrote: > BTW, I set the bean reader to use the component's class loader, but still > Spring can't find the clas

Re: Class loading problem

2006-04-28 Thread Hossam Karim
BTW, I set the bean reader to use the component's class loader, but still Spring can't find the class. On 4/28/06, Hossam Karim <[EMAIL PROTECTED]> wrote: Thanks Guillaume and congratulations, OK, then. I am not going to argue about why this is not the case in the JBoss environment since it is

Re: Class loading problem

2006-04-28 Thread Hossam Karim
Thanks Guillaume and congratulations, OK, then. I am not going to argue about why this is not the case in the JBoss environment since it is not supported. Now I moved the shared code to the lib directory, so the Bootstrap is initialized. The component implementation base class is also in this sha

Re: Class loading problem

2006-04-28 Thread Guillaume Nodet
AFAIK, this is not JBI compliant. See section 7.3 of the jbi spec. Cheers, Guillaume Nodet On 4/28/06, Hossam Karim <[EMAIL PROTECTED]> wrote: > Hi All, > I have a class loading problem that is only happening when running SM in > standalone mode. When SM is hosted inside JBoss, there is no prob