当前位置: 代码迷 >> 数据仓库 >> Virtual file is not readable 异常解决?多谢了
  详细解决方案

Virtual file is not readable 异常解决?多谢了

热度:292   发布时间:2016-05-05 16:16:17.0
Virtual file is not readable 错误解决???谢谢了
用的是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


------解决方案--------------------
顶上去
  相关解决方案