Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting external class loader (useful for OSGI environment) #624

Closed
zdanek opened this issue Nov 20, 2014 · 6 comments
Closed

Setting external class loader (useful for OSGI environment) #624

zdanek opened this issue Nov 20, 2014 · 6 comments
Milestone

Comments

@zdanek
Copy link

zdanek commented Nov 20, 2014

Currently there is only simple way to access classloader

Thread.currentThread().getContextClassLoader()

In OSGI env this simply does not work :(

Same as
https://jira.codehaus.org/browse/JACKSON-350

@cowtowncoder
Copy link
Member

I don't use OSGi myself (so am unlikely to know how to fix; or be able to easily test the fix) so I am open to contributions here.

@zdanek
Copy link
Author

zdanek commented Nov 25, 2014

Currently I'm fighting with Jackson se/deserialization in Distributed OSGI. Maybe I will be able to propose some code fixes as soon I will manage to make it all work.
Thanks for response,
Bartek

@cowtowncoder
Copy link
Member

@zdanek Yes I would be interested in improvements to make Jackson work better on OSGi. We have solved some other issues (related to use of Maven shade plug-in for YAML dataformat module f.ex), so I hope we can resolve class loading problems as well.

cowtowncoder added a commit that referenced this issue Jun 30, 2015
issue #624 - adding possibility of using provided ClassLoader on TypeFactory
@cowtowncoder cowtowncoder added this to the 2.6.0-rc2 milestone Jun 30, 2015
@cowtowncoder
Copy link
Member

As per patch #854, it is now possible to construct TypeFactory that uses specified override ClassLoader for findClass() calls, and we made sure core Jackson pieces do resolution through TypeFactory and not old ClassUtil static method.

@cowtowncoder cowtowncoder modified the milestones: 2.6.0-rc2, 2.6.0-rc4 Jun 30, 2015
cowtowncoder added a commit that referenced this issue Jun 30, 2015
@zdanek
Copy link
Author

zdanek commented Jul 1, 2015

Nice!

@larsp
Copy link
Contributor

larsp commented Jul 1, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants