How can I use the below code to unmarshal a XML string an map it to the JAXB object below?
JAXBContext jaxbContext = JAXBContext.newInstance(Person.class); U
There is no unmarshal(String) method. You should use a Reader:
unmarshal(String)
Reader
Person person = (Person) unmarshaller.unmarshal(new StringReader("xml string"));
But usually you are getting that string from somewhere, for example a file. If that's the case, better pass the FileReader itself.
FileReader