You may encounter an error message that the jaxb object factory was not found. Well, there are several ways to solve this problem, and we will cover them shortly. Why does JAXB not work with POJOs in Java? As @Chris pointed out, JAXB may not work with POJOs, basically schema cannot be mapped to Java….