JBoss で Mondrian をセットアップしましたが、Olap4J API を介して MDX ステートメントを実行すると正常に動作します。しかし、Mondrian を XML/A サーバーとしてセットアップすると、URL を使用して Warehouse Explorer (別名 Rex) に接続しようとすると、(サーバー コンソールで) 以下の例外が発生します http://localhost:8080/olap/xmla
。
レックスのエラーは次のとおりです。
これは私のdatasources.xmlです
<DataSource>
<DataSourceName>Mondrian</DataSourceName>
<DataSourceDescription>Mondrian XMLA</DataSourceDescription>
<URL>http://localhost:8080/olap/xmla</URL>
<DataSourceInfo>Provider=mondrian;Jdbc=jdbc:mysql://localhost:3306/foodmart;JdbcUser=uuuuu;JdbcPassword=pppp;JdbcDrivers=com.mysql.jdbc.Driver;</DataSourceInfo>
<ProviderName>Mondrian</ProviderName>
<ProviderType>MDP</ProviderType>
<AuthenticationMode>Unauthenticated</AuthenticationMode>
<Catalogs>
<Catalog name="FoodMart">
<Definition>/WEB-INF/FoodMart.xml</Definition>
</Catalog>
</Catalogs>
</DataSource>
そして、これは例外です:
mondrian.olap.MondrianException:モンドリアン エラー: 接続文字列には、プロパティ 'Catalog' またはプロパティ 'CatalogContent' が含まれている必要があります mondrian.resource.MondrianResource$_Def1.ex(MondrianResource.java:994) [mondrian-3.9.0.0-213.jar:] mondrian.rolap.RolapSchemaPool.getSchemaContent(RolapSchemaPool.java:268) [mondrian-3.9.0.0 -213.jar:] mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:135) で [mondrian-3.9.0.0-213.jar:] mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:67) で [mondrian -3.9.0.0-213.jar:] mondrian.rolap.RolapConnection.(RolapConnection.java:161) で [mondrian-3.9.0.0-213.jar:] mondrian.rolap.RolapConnection.(RolapConnection.java:91) で[mondrian-3.9.0.0-213.jar:] mondrian.olap.DriverManager.getConnection(DriverManager.java:113) で [mondrian-3.9.0.0-213.jar:3.9.0.0-213] mondrian.olap.DriverManager で.getConnection(DriverManager.java:69) [mondrian-3.9.0.0-213.jar:3.9.0.0-213] mondrian.olap4j で。MondrianOlap4jConnection.(MondrianOlap4jConnection.java:162) [mondrian-3.9.0.0-213.jar:] で mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.(FactoryJdbc4Plus.java:323) [mondrian-3.9.0.0-213.jar:] でmondrian.olap4j.FactoryJdbc41Impl$MondrianOlap4jConnectionJdbc41.(FactoryJdbc41Impl.java:118) [mondrian-3.9.0.0-213.jar:] mondrian.olap4j.FactoryJdbc41Impl.newConnection(FactoryJdbc41Impl.java:32) で [mondrian-3.9.0.0-213 .jar:] mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:134) で [mondrian-3.9.0.0-213.jar:] java.sql.DriverManager.getConnection(DriverManager.java:571) で [rt.jar :1.7.0_71] で java.sql.DriverManager.getConnection(DriverManager.java:187) [rt.jar:1.7.0_71] mondrian.server.FileRepository.getConnection(FileRepository.java:178) で [mondrian-3.9.0.0 -213.jar:3.9.0.0-213] モンドリアンで。server.FileRepository.getConnection(FileRepository.java:129) [mondrian-3.9.0.0-213.jar:3.9.0.0-213] mondrian.server.MondrianServerImpl.getConnection(MondrianServerImpl.java:264) [mondrian-3.9.0.0] -213.jar:3.9.0.0-213] mondrian.xmla.XmlaHandler.getConnection(XmlaHandler.java:2945) [mondrian-3.9.0.0-213.jar:] mondrian.xmla.XmlaHandler.getConnection(XmlaHandler.java) :177) [mondrian-3.9.0.0-213.jar:] at mondrian.xmla.Rowset.populate(Rowset.java:219) [mondrian-3.9.0.0-213.jar:] at mondrian.xmla.Rowset.unparse (Rowset.java:194) [mondrian-3.9.0.0-213.jar:] mondrian.xmla.XmlaHandler.discover(XmlaHandler.java:2867) [mondrian-3.9.0.0-213.jar:] mondrian.xmla .XmlaHandler.process(XmlaHandler.java:671) [mondrian-3.9.0.0-213.jar:] mondrian.xmla.impl.DefaultXmlaServlet.handleSoapBody(DefaultXmlaServlet.java:507) [mondrian-3.9.0.0-213.jar:] mondrian.xmla.XmlaServlet.doPost(XmlaServlet.java:318) で [mondrian-3.9.0.0-213.jar:] javax.servlet.http.HttpServlet で。サービス(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss -servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar :] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) で [jbossweb-7.0.13.Final.jar:] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 275) [jbossweb-7.0.13.Final.jar:] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.apache.catalina.core. StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final. jar:] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) で [jbossweb-7.0.13.Final.jar:] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java で) :368) [jbossweb-7.0.13.Final.jar:] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:] org. apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:] java.lang.Thread.run(Thread.java:745) [rt. jar:1.7.0_71]
11:34:33,441 ERROR [mondrian.xmla.XmlaServlet] (http-localhost-127.0.0.1-8080-1) XML/A メッセージ処理時のエラー: mondrian.xmla.XmlaException: Mondrian エラー:XMLA Discover unparse results エラー mondrian.xmla.XmlaHandler.discover(XmlaHandler.java:2873) で [mondrian-3.9.0.0-213.jar:] mondrian.xmla.XmlaHandler.process(XmlaHandler.java:671) で [mondrian-3.9.0.0-213 .jar:] mondrian.xmla.impl.DefaultXmlaServlet.handleSoapBody(DefaultXmlaServlet.java:507) で [mondrian-3.9.0.0-213.jar:] mondrian.xmla.XmlaServlet.doPost(XmlaServlet.java:318) で [mondrian -3.9.0.0-213.jar:] javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] で org.apache.catalina.core.ApplicationFilterChain .internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:] ] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:] org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java) :50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as- web-7.1.1.Final.jar:7.1.1.Final] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:] at org. apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0. 13.Final.jar:] org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) で [jbossweb-7.0.13.Final.jar:] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler で.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:] org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) で [jbossweb-7.0.13 .Final.jar:] java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71] でhttp11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0. 13.Final.jar:] org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) で [jbossweb-7.0.13.Final.jar:] java.lang.Thread.run で(Thread.java:745) [rt.jar:1.7.0_71]http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:] org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0. 13.Final.jar:] org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) で [jbossweb-7.0.13.Final.jar:] java.lang.Thread.run で(Thread.java:745) [rt.jar:1.7.0_71] 原因: mondrian.olap.MondrianException: モンドリアン エラー: 内部エラー: 適切な接続が見つかりません mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:974) [mondrian-3.9.0.0-213.jar:] で mondrian.olap.Util.newInternal(Util.java:2397) [mondrian-3.9.0.0 -213.jar:3.9.0.0-213] mondrian.olap.Util.newError(Util.java:2412) で [mondrian-3.9.0.0-213.jar:3.9.0.0-213] mondrian.server.FileRepository で。 getConnection(FileRepository.java:143) [mondrian-3.9.0.0-213.jar:3.9.0.0-213] mondrian.server.MondrianServerImpl.getConnection(MondrianServerImpl.java:264) [mondrian-3.9.0.0-213.jar] :3.9.0.0-213] mondrian.xmla.XmlaHandler.getConnection(XmlaHandler.java:2945) [mondrian-3.9.0.0-213.jar:] mondrian.xmla.XmlaHandler.getConnection(XmlaHandler.java:177) [ mondrian-3.9.0.0-213.jar:] mondrian.xmla.Rowset.populate(Rowset.java:219) [mondrian-3.9.0.0-213.jar:] mondrian.xmla.Rowset.unparse(Rowset.java) :194) [mondrian-3.9.0.0-213.jar:] at mondrian.xmla.XmlaHandler.discover(XmlaHandler.java:2867) [mondrian-3.9.0.0-213.jar:] ... 19 もっと見る