JaxbRepresentation gives error “doesnt contain ObjectFactory.class or jaxb.index”
I am trying to create a sample test application which converts an object to JaxbRepresentation. But when I try to run this, it gives me an error. Main.java file package test_jaxb; import org.restlet.Server; import org.restlet.data.Protocol; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws Exception { Server helloServer = new Server(Protocol.HTTP, 8111, TestResource.class); helloServer.start(); } } TestResource.java file package test_jaxb; import org.restlet.ext.jaxb.JaxbRepresentation; import org.restlet.representation