missing org.modelmapper.internal.cglib.* packages in master

60 views
Skip to first unread message

Christian Eugster

unread,
Jul 24, 2018, 4:05:30 AM7/24/18
to modelmapper
Hi I wanted to use modelmapper (which I did not know until today) in osgi environment (karaf 4.2.0). The docs say that I have to import following packages in my bundle that uses modelmapper:

org.modelmapper.internal.cglib.proxy,
org
.modelmapper.internal.cglib.core,
org
.modelmapper.internal.cglib.transform


when I look into the org.modelmapper.core bundle I do not find any of these packages, nor are the exported. How is it thought to use modelmapper in osgi environment? I appreciate any help!

Jim Rayburn

unread,
Sep 10, 2020, 8:41:27 PM9/10/20
to modelmapper
I'm attempting to integrate modelmapper into my OSGi project. I am developing using bndtools so there are multiple projects in my workspace.

As Christian noted, I cannot find the packages mentioned in 2.3.0 or 2.3.8. 

Using the maven central, I am accessing the bundle on Maven Central at https://search.maven.org/search?q=a:modelmapper

I attempted to move forward not using the integration steps provided for OSGi. I am getting the following stack trace:

Caused by: java.lang.ClassNotFoundException: org.modelmapper.builder.ConfigurableMapExpression not found by modelmapper [18]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1375)
at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1618)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1548)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 109 more

I appreciate any help that anyone can provide.

Thank you,
Jim

Reply all
Reply to author
Forward
0 new messages