> FileInputStream fstream = new FileInputStream( > "D:\\Testing\\test.xml");
Apparently the XML you load from the file is broken. I highly recommend to use JAXB to return the response, instead of pumping the XML from the file :) . @GET @Path("/xmlHello") @Produces ( "application/xml" ) public Response sayXMLHello() { ... @XmlRootElement class Response { public String msg = "Hello REST!"; } -- Henryk Konsek http://henryk-konsek.blogspot.com