NanoContainer
  1. NanoContainer
  2. NANO-134

Classloader problem when a nanocontainer with the xml scripting builder runs in a eclipse rcp client

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: xml
    • Labels:
      None
    • Environment:
      Eclipse RCP 3.0, Nanocontainer snapshot (12-april-2005)
    • Number of attachments :
      1

      Description

      If the nanocontainer with the XMLContainerBuilder runs in the eclipse RCP environment, it gives classloader problems. In the method createComponentInstanceFactory(String factoryClass) a new DefaultNanoContainer is instantiated with the empty constructor. The DefaultNanoContainer tries to load the xxxComponentInstanceFactory first from an url and then it tries from the parent classloader. But in the parent classloader are only three eclipse classes. If the DefaultNanoContainer is instantiated with the classloader from the parent container, then it is configurable.

      Please verify if this is correct. Maybe there was reason why the DefaultNanoContainer in the createComponentInstanceFactory method was instantiated without the classloader.

      In the attachement is the XMLContainerBuilder class with the patch.

      Thanks
      Reto

        Activity

        Jörg Schaible made changes -
        Field Original Value New Value
        Component/s eclipse [ 10687 ]
        Component/s core [ 10193 ]
        Mauro Talevi made changes -
        Component/s core [ 10193 ]
        Component/s xml [ 11632 ]
        Jörg Schaible made changes -
        Assignee Joerg Schaible [ joehni ]
        Hide
        Jörg Schaible added a comment -

        Hi Reto, thanks for the description. Please attach next time a patch/diff, that will help to integrate small changes much faster. You may close this issue, if it works now for you. Regards, Jörg

        Show
        Jörg Schaible added a comment - Hi Reto, thanks for the description. Please attach next time a patch/diff, that will help to integrate small changes much faster. You may close this issue, if it works now for you. Regards, Jörg
        Jörg Schaible made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.0 [ 10148 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Reto Breitenmoser made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Reto Breitenmoser
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: