用的是mondrian做的OLAP工具
这是前端的jsp页面 (简单的例子)
-------------------------------------------------------
montext.jsp
<%@ page import="mondrian.olap.*"%>
<%
Connection connection = DriverManager.getConnection("Provider=mondrian;"+
"Jdbc=jdbc:mysql://localhost:3306/test?user=root&password=123qwe;"+
"jdbcUser=root;"+
"jdbcPassword=123qwe;"+
"Catalog=file:///D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/test/WEB-INF/montest.xml;"+
"JdbcDrivers=com.mysql.jdbc.Driver;",null);
String queryStr="select {[Measures].[Salary]} ON COLUMNS,{[Employee].[employeeId].Members} ON ROWS from CubeTest ";
Query query =connection.parseQuery(queryStr);
Result result = connection.execute(query);
out.println("get result");
%>
Tomcat运行正常
但是我在地址栏输入:http://localhost:8080/test/montext.jsp
报以下错:
mondrian.olap.MondrianException: Mondrian Error:Internal error: Virtual file is not readable: ///D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/test/WEB-INF/montest.xml
------解决方案--------------------
顶上去