#195 MappingUtils.loadClass breaks in OSGi environment

Dozer v5.1
closed-fixed
5
2009-08-02
2009-05-16
No

When using Dozer as OSGi-bundle the loadClass method of class MappingUtils breaks.

instead of
ClassUtils.getClass(name);

this should be used
Class caller = Reflection.getCallerClass(3);
result = ClassUtils.getClass(caller.getClassLoader(), name);

Discussion

  • dmitry (lv)

    dmitry (lv) - 2009-06-02

    Hi Markus,

    The existing fix for OSGi is only a temporary solution.
    You have made a dependency to Sun JDK, which is not good.
    We need a different way to address that. What if Dozer runs under WebSphere IBM JDK ?

    Dmitry

     
  • dmitry (lv)

    dmitry (lv) - 2009-08-02

    Framework now provides pluggable Class Loader approach. It is possible to replace default one using properties configuration. Will be described in documentation.

     
  • dmitry (lv)

    dmitry (lv) - 2009-08-02
    • milestone: 888640 --> Dozer v5.1
    • assigned_to: nobody --> buzdin
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks