You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I am using Orika in Java EE 6 environment.
I get following exception.
Caused by: java.lang.NoClassDefFoundError: name/of/my/Class
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
at java.lang.Class.getConstructor0(Class.java:2793)
at java.lang.Class.newInstance(Class.java:345)
at ma.glasnost.orika.impl.generator.SourceCodeContext.getInstance(SourceCodeContext.java:266)
at ma.glasnost.orika.impl.generator.MapperGenerator.build(MapperGenerator.java:75)
at ma.glasnost.orika.impl.DefaultMapperFactory.buildMapper(DefaultMapperFactory.java:1372)
at ma.glasnost.orika.impl.DefaultMapperFactory.build(DefaultMapperFactory.java:1199)
at ma.glasnost.orika.impl.DefaultMapperFactory.getMapperFacade(DefaultMapperFactory.java:859)
A similar problem exists and Dozer.
But Dozer allows to replace the default ClassLoader with a custom one.
This workaround solves the problem.
Original issue reported on code.google.com by [email protected] on 19 Jun 2015 at 11:18
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 19 Jun 2015 at 11:18The text was updated successfully, but these errors were encountered: