"java.lang.ClassNotFoundException: com.example.model.SampleModel not found by net.sf.dozer.dozer-osgi" occurs
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.