I am developing RESTEasy Example. In this example I am using all latest dependencies and deploying om tomcat 8.x version. I can successfully deploy the applicat
For me it was about trying to serialize the array to XML. If you would like that it would need a wrapper class like this for movies:
@XmlRootElement(name = "movies")
@XmlAccessorType(XmlAccessType.FIELD)
public class Movies
{
@XmlElement(name = "movie")
private List movies;
public List getMovies() {
return movies;
}
public void setMovies(List movies) {
this.movies = movies;
}
}
This way it can be serialized under the root object.