Hi,
My comment inline
On 2011-5-6, at 下午1:16, [email protected] wrote:
Hi Freeman,
Thanks for the suggestion. Service A in Bundle A accesses a static
member of
Class B in Bundle B, which does not export any service. So as you
said,
very likely Class B/Bundle B has not been loaded yet. But Bundle A
has
import for the package from Bundle B, shouldn't that force Bundle B
to be
loaded before Bundle A?
No.
If I restart Karaf, the problem is resolved by itself. Is it
because Karaf
reorganizes the start-up sequence or is it just a coincidence?
It's a timing issue, you can't rely on it.
Freeman
Thanks,
- Triet
--
View this message in context:
http://karaf.922171.n3.nabble.com/ClassNotFoundException-problem-which-resolved-after-restarting-Karaf-tp2906583p2906937.html
Sent from the Karaf - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference