Open sanjayraja opened 10 years ago
Which ant target did you run? Looks like the parser and resources have not been generated prior to the compilation. Try running simply "ant".
Thanks for responding promptly. You are right - problems generating the parser. Followed your advice & got the following error (after cleaning up some old files).
parser: [javacup] Files are up to date. [javacc] Java Compiler Compiler Version 5.0 (Parser Generator) [javacc](type "javacc" with no arguments for help) [javacc] Reading from file C:\mondrian-3.7\src\main\mondrian\parser\MdxParse .jj . . . [javacc] Note: UNICODE_INPUT option is specified. Please make sure you creat the parser/lexer using a Reader with the correct character encoding. [javacc] File "TokenMgrError.java" does not exist. Will create one. [javacc] File "ParseException.java" does not exist. Will create one. [javacc] File "Token.java" does not exist. Will create one. [javacc] File "SimpleCharStream.java" does not exist. Will create one. [javacc] Parser generated successfully.
generate.resources: [resgen] java.io.IOException: org.eigenbase.xom.XOMException: Error creating parser [resgen] at org.eigenbase.resgen.Util.load(Util.java:58) [resgen] at org.eigenbase.resgen.Util.load(Util.java:44) [resgen] at org.eigenbase.resgen.XmlFileTask.process(XmlFileTask.java:66
[resgen] at org.eigenbase.resgen.ResourceGenTask$Include.process(Resourc GenTask.java:397) [resgen] at org.eigenbase.resgen.ResourceGen.run(ResourceGen.java:95) [resgen] at org.eigenbase.resgen.ResourceGenTask.execute(ResourceGenTask java:178) [resgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j va:292) [resgen] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [resgen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe hodAccessorImpl.java:25) [resgen] at java.lang.reflect.Method.invoke(Method.java:592) [resgen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch tils.java:106) [resgen] at org.apache.tools.ant.Task.perform(Task.java:348) [resgen] at org.apache.tools.ant.Target.execute(Target.java:435) [resgen] at org.apache.tools.ant.Target.performTasks(Target.java:456) [resgen] at org.apache.tools.ant.Project.executeSortedTargets(Project.ja a:1393) [resgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1364
[resgen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D faultExecutor.java:41) [resgen] at org.apache.tools.ant.Project.executeTargets(Project.java:124 ) [resgen] at org.apache.tools.ant.Main.runBuild(Main.java:851) [resgen] at org.apache.tools.ant.Main.startAnt(Main.java:235) [resgen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [resgen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
BUILD FAILED C:\mondrian-3.7\build.xml:544: Failed while processing 'mondrian/resource/Mondr anResource.xml'
Hi, I am trying to build Mondrian 3.7. I have some setup issues which is causing the build to fail. Can you please tell me what am I doing wrong ?
An Excerpt of the error is given below. Kindly shed some light on this. Regards, Sanjay
.properties is up to date
generate.properties: [java] Generating src\main\mondrian\olap\MondrianProperties.java [java] Generating doc\properties.html [java] Generating mondrian.properties.template
def:
set-compile-args:
compileJdk15: [exec] C:\jdk1.7 [exec] Using ANT_HOME: c:\Ant [exec] Using JAVA_HOME: C:\jdk1.7 [exec] Using JAVACMD: C:\jdk1.7\bin\java.exe [exec] Using Ant arguments: -Drequested.java.version=jdk1.5 compile.java [exec] Buildfile: C:\mondrian-3.7\build.xml [exec] [exec] apologise: [exec] [echo] Actual JVM Version (1.7.0_45-b18) does not match [exec] [echo] requested (jdk1.5); skipping compile for this JDK. [exec] [echo] If you wish to build for this JDK, modify C:\mondrian-3. 7/buildOnJdk.sh. [exec] [echo] [exec] [exec] compile.java: [exec] [exec] BUILD SUCCESSFUL [exec] Total time: 0 seconds
compileJdk16: [exec] C:\jdk1.7 [exec] Using ANT_HOME: c:\Ant [exec] Using JAVA_HOME: C:\jdk1.7 [exec] Using JAVACMD: C:\jdk1.7\bin\java.exe [exec] Using Ant arguments: -Drequested.java.version=jdk1.6 compile.java [exec] Buildfile: C:\mondrian-3.7\build.xml [exec] [exec] apologise: [exec] [echo] Actual JVM Version (1.7.0_45-b18) does not match [exec] [echo] requested (jdk1.6); skipping compile for this JDK. [exec] [echo] If you wish to build for this JDK, modify C:\mondrian-3. 7/buildOnJdk.sh. [exec] [echo] [exec] [exec] compile.java: [exec] [exec] BUILD SUCCESSFUL [exec] Total time: 0 seconds
compileJdk17: [exec] C:\jdk1.7 [exec] Using ANT_HOME: c:\Ant [exec] Using JAVA_HOME: C:\jdk1.7 [exec] Using JAVACMD: C:\jdk1.7\bin\java.exe [exec] Using Ant arguments: -Drequested.java.version=jdk1.7 compile.java [exec] Buildfile: C:\mondrian-3.7\build.xml [exec] [exec] apologise: [exec] [exec] compile.java: [exec] [echo] Compiling on JVM Version: 1.7.0_45-b18 [exec] [echo] include.gui=${include.gui} [exec] [javac] Compiling 679 source files to C:\mondrian-3.7\bin\classe s [exec] [javac] C:\mondrian-3.7\src\main\mondrian\calc\impl\AbstractExpC ompiler.java:150: error: cannot find symbol [exec] [javac] throw MondrianResource.instance().NullNotSup ported.ex(); [exec] [javac] ^ [exec] [javac] symbol: method ex() [exec] [javac] location: variable NullNotSupported of type MondrianRe source._Def3 [exec] [javac] C:\mondrian-3.7\src\main\mondrian\calc\impl\AbstractExpC ompiler.java:215: error: cannot find symbol [exec] [javac] .CannotImplicitlyConvertDimensio nToHierarchy.ex( [exec] [javac] ^ [exec] [javac] symbol: method ex(String) [exec] [javac] location: variable CannotImplicitlyConvertDimensionToH ierarchy of type MondrianResource._Def0 [exec] [javac] C:\mondrian-3.7\src\main\mondrian\calc\impl\AbstractExpC ompiler.java:577: error: cannot find symbol [exec] [javac] .CannotImplicitlyConvertDimensionToH ierarchy.ex( [exec] [javac] ^ [exec] [javac] symbol: method ex(String) [exec] [javac] location: variable CannotImplicitlyConvertDimensionToH ierarchy of type MondrianResource._Def0 [exec] [javac] C:\mondrian-3.7\src\main\mondrian\olap\Util.java:817: er ror: cannot find symbol [exec] [javac] throw MondrianResource.instance().Me mberNotFound.ex( [exec] [javac] ^ [exec] [javac] symbol: method ex(String) [exec] [javac] location: variable MemberNotFound of type MondrianReso urce._Def0 [exec] [javac] C:\mondrian-3.7\src\main\mondrian\olap\Util.java:821: er ror: cannot find symbol [exec] [javac] .ex(name.toString(), parent.getQ ualifiedName()); [exec] [javac] ^ [exec] [javac] symbol: method ex(String,String) [exec] [javac] location: variable MdxChildObjectNotFound of type Mond......