我在我的centos中安装了mondrian。
http://localhost:8080/mondrian/
是节目
蒙德里安的例子:
JPivot pivot table
JPivot pivot table by XMLA
JPivot with 4 hierarchies
JPivot with role 'California Manager' set
JPivot with arrows
JPivot with colors
Various queries formatted using the Mondrian tag-library
Basic interface for ad hoc queries
XML for Analysis tester
其他链接:
Mondrian home page
Mondrian project page
JPivot home page
JPivot project page
所有链接都可以正常工作,除了
XMLA的JPivot数据透视表
点击此链接时出错..
org.apache.jasper.JasperException:处理发生异常 第44行的JSP页面/testpage.jsp
41: 42: 43: <%-- include query and title, so this jsp may be used with different queries --%> 44: 45: 46: 47:
堆栈跟踪:
在 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:574) 在 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:461) 在 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) 在org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:729)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 com.tonbeller.wcf.controller.RequestFilter $ MyHandler.normalRequest(RequestFilter.java:139) 在 com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:264) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) 在 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) 在 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) 在 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) 在 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 在 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617) 在 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) 在 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518) 在 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091) 在 org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:668) 在 org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1521) 在 org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.run(NioEndpoint.java:1478) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 在 java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:617) 在 org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61) 在java.lang.Thread.run(Thread.java:745)引起: javax.servlet.ServletException:javax.servlet.jsp.JspException: org.apache.jasper.JasperException:javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:无效 内容类型:text / html的。这是一条错误消息而不是SOAP 响应?在 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:904) 在 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:837) 在org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java:290)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)at at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438) ... 28更多引起:org.apache.jasper.JasperException: javax.servlet.ServletException:javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:无效 内容类型:text / html的。这是一条错误消息而不是SOAP 响应?在 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:591) 在 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:461) 在 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) 在org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:729)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) 在 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) 在 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:523) 在com.tonbeller.wcf.utils.IncludeTag.doStartTag(IncludeTag.java:59) 在 org.apache.jsp.testpage_jsp._jspx_meth_wcf_005finclude_005f0(testpage_jsp.java:314) 在org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java:164) ... 31更多引起:javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:无效 内容类型:text / html的。这是一条错误消息而不是SOAP 响应?在 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:904) 在 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:837) 在 org.apache.jsp.WEB_002dINF.queries.xmla_jsp._jspService(xmla_jsp.java:130) 在org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:729)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438) ... 42更多引起:com.tonbeller.jpivot.olap.model.OlapException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:无效 内容类型:text / html的。这是一条错误消息而不是SOAP 响应?在 com.tonbeller.jpivot.xmla.XMLA_SOAP.discover(XMLA_SOAP.java:1453)at at com.tonbeller.jpivot.xmla.XMLA_SOAP.discoverDim(XMLA_SOAP.java:342) 在 com.tonbeller.jpivot.xmla.XMLA_Model.initCubeMetaData(XMLA_Model.java:737) 在 com.tonbeller.jpivot.xmla.XMLA_Model.initialize(XMLA_Model.java:173) 在 com.tonbeller.jpivot.olap.model.OlapModelDecorator.initialize(OlapModelDecorator.java:132) 在 com.tonbeller.jpivot.tags.OlapModelProxy $ MyState.initialize(OlapModelProxy.java:77) 在 com.tonbeller.jpivot.tags.StackStateManager.initializeAndShow(StackStateManager.java:76) 在 com.tonbeller.jpivot.tags.OlapModelProxy.initializeAndShow(OlapModelProxy.java:160) 在 com.tonbeller.jpivot.tags.OlapModelTag.doEndTag(OlapModelTag.java:81) 在 org.apache.jsp.WEB_002dINF.queries.xmla_jsp._jspx_meth_jp_005fxmlaQuery_005f0(xmla_jsp.java:176) 在 org.apache.jsp.WEB_002dINF.queries.xmla_jsp._jspService(xmla_jsp.java:112) ... 45更多引起: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:无效 内容类型:text / html的。这是一条错误消息而不是SOAP 响应?在 com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:149) 在com.tonbeller.jpivot.xmla.XMLA_SOAP.discover(XMLA_SOAP.java:1429) ... 55更多引起: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:无效 内容类型:text / html的。这是一条错误消息而不是SOAP 响应?在 com.sun.xml.internal.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:655) 在 com.sun.xml.internal.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:85) 在 com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:332) 在 com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:145) ......还有56个
请帮我解决此错误。
答案 0 :(得分:0)
使用 web.xml 文件中datasources.xml文件的完整文件路径,例如与蒙德里安3.4.1分布,
<servlet>
<servlet-name>MondrianXmlaServlet</servlet-name>
<servlet-class>mondrian.xmla.impl.DynamicDatasourceXmlaServlet</servlet-class>
<init-param>
<param-name>DataSourcesConfig</param-name>
<param-value>file:///c:/tomcat/webapps/mondrian/WEB-INF/datasources.xml</param-value>
</init-param>
<!--
This is an example of how to add a callback to the XML/A servlet.
It must implement mondrian.xmla.XmlaRequestCallback.
<init-param>
<param-name>Callbacks</param-name>
<param-value>com.example.MyCallbackClass;com.example.SomeOtherCallback</param-value>
</init-param>
-->
</servlet>