Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-07-26T16:28:02Z by MarkN
SystemAdmin
SystemAdmin
153 Posts
ACCEPTED ANSWER

Pinned topic Basic class loader question for OSGi

‏2012-07-16T06:33:41Z |
Hi, I have 2 OCGi projects. Project-A is a Web app and Project-B contains a web-fragment. Project-B's web-fragment.xml declares a ServletListener and the class is also packaged in Project-B. However at server startup, it is Project-A that starts the ServletListener. I am getting java.lang.ClassNotFoundException. I need Project-A to be able to load the class in Project-B but preferably without having to configure a dependency from Project-A to Project-B. Is there some kind of class loader setting for the EBA similar to EAR's where you can tell it to use a single class loader for all modules in the application?

Cheers.
Updated on 2012-07-26T16:28:02Z at 2012-07-26T16:28:02Z by MarkN
  • MarkN
    MarkN
    124 Posts
    ACCEPTED ANSWER

    Re: Basic class loader question for OSGi

    ‏2012-07-26T16:28:02Z  in response to SystemAdmin
    Hi Nebu,
    I'm sorry for the delay in responding to your post. Is project-B a bundle in its own right, or a fragment bundle that attaches to bundle-A?

    Regards,
    Mark