"java.lang.ClassNotFoundException: com.example.model.SampleModel not found by net.sf.dozer.dozer-osgi" occurs

Solution In Progress - Updated -

Issue

  • "java.lang.ClassNotFoundException: com.example.model.SampleModel not found by net.sf.dozer.dozer-osgi" occurs. It seems like dozer cannot found the classes specified like below:
        BeanMappingBuilder builder = new BeanMappingBuilder() {
            protected void configure() {
                mapping(SampleModel.class, SampleTargetModel.class)
                    .fields("sampleField1", "sampleTargetField1")
                    .fields("sampleField2", "sampleTargetField2")
                    .fields("sampleField3", "sampleTargetField3");
            }
        };
}

Environment

  • Red Hat Fuse 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content