"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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.