I am trying to retrieve a jrxml file in a relative path using the following java code:
String jasperFileName = \"/web/WEB-INF/reports/MemberOrderListReport.jrxm
String jasperFileName = "/web/WEB-INF/reports/MemberOrderListReport.jrxml";
Simple. You don't have a /web/WEB-INF/reports/MemoberOrderListReport.jrxml file on your computer.
You are clearly executing in a web-app environment and expecting the system to automatically resolve that in the context of the web-app container. It doesn't. That's what getRealPath()
and friends are for.