Please try putting all your code in the method into try -catch clause:
@Path("/myPath")
@Produces("application/xml")
public MyClass myFunction(){
try{
//your code
}catch(Exception e){
e.printstackTrace();
}
}
RESTEasy swollows lot of exceptions and creates response with various HTTP error headers. Using method described above you will now what might have gone wrong.