Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: Building Source Code

  1. #1
    Join Date
    Feb 2012
    Posts
    9

    Default Building Source Code

    Hi,
    I am Rejin and i am new to Business Intelligence and Pentaho. I created a data warehouse in MySQL and done some
    • ETL jobs and transformations and updated the data warehouse using Pentaho data integration 4.2.1.
    • Designed a OLAP cube using schema workbench and published the cube to the bi server.
    • Created some dashboards using pentaho Community Dashboard editor.


    and i am able to analyse the published cube.

    Now i am trying to build the source code of Pentaho BI server 3.9.0 from the SVN repository
    http://source.pentaho.org/svnroot/bi.../3.6.0-stable/.

    on ubuntu 10.04, i am trying to build the source but results in too many errors.I configured all the environmental variables
    such as for JAVA_HOME, ANT and other tools needed for building source based on reference from
    http://wiki.pentaho.com/display/Serv...o+with+Eclipse

    Is repository contains code with errors or we have to manually fix the errors?
    where can i find error free code

    Please help.

    Many Thanks in Advance.

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    The code builds fine on our CI systems - so maybe if you post actual error messages or more details, you may get a sensible answer. Just saying "It does not work" will not give you results. After all, you dont call your doctor and just say "I'm not well" and expect him to give you help without providing details on your actual symptoms, right?

    And btw: You try to build 3.9 and use sources tagged as 3.6? You may want to change that first
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3
    Join Date
    Feb 2012
    Posts
    9

    Default

    sorry i mistyped as 3.6 instead of 3.9. i downloaded from
    http://source.pentaho.org/svnroot/bi...s/3.9.0-stable svn repository
    and i used to build on ubuntu terminal not on eclipse.

    first i made ANT build on bi-platform-build directory, building process takes few minutes and displays the following error

    BUILD FAILED
    /home/bi/Desktop/bi3.9/bi-platform-build/build.xml:66: The following error occurred while executing this line:
    /home/bi/Desktop/bi3.9/bi-platform-build/build.xml:68: The following error occurred while executing this line:
    /home/bi/Desktop/bi3.9/bi-platform-plugin-services/build-res/subfloor.xml:715: impossible to resolve dependencies:
    java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = junit#junit;3.8.1
    at org.apache.ivy.core.resolve.IvyNode.getArtifacts(IvyNode.java:762)
    at org.apache.ivy.core.resolve.IvyNode.getSelectedArtifacts(IvyNode.java:739)
    at org.apache.ivy.core.report.ResolveReport.setDependencies(ResolveReport.java:235)
    at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:238)
    at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:195)
    at org.apache.ivy.Ivy.resolve(Ivy.java:502)
    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:244)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:811)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    Total time: 1 minute 27 seconds

    after that i individually ANT build on these directories

    bi-platform-api,
    bi-platform-util,
    bi-platform-engine-core,
    bi-platform-test-foundation,
    bi-platform-engine-security,
    bi-platform-engine-services,
    bi-platform-repository,
    bi-platform-ui-foundation,
    bi-platform-plugin-services,
    bi-platform-plugin-actions,
    bi-platform-scheduler,
    bi-platform-legacy,
    bi-platform-web,
    bi-platform-web-servlet,
    bi-platform-web-portlet,
    bi-platform-security-userroledao"

    and building process was successfull.

    When i ANT build on mantle directory, about 100 errors are displayed. please see the errors in the file attatched


    please help
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2012
    Posts
    9

    Default

    Hi Taqua,

    Waiting for your help to wade through this. Or are there any other build versions you can reccomend ??
    Thanks

    Rejin

  5. #5
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    seems you have a problem resolving the libraries.

    First, make sure that you actually use the right version of Ivy. Check that your $HOME/.subfloor/ivy/ivy.jar file has the version 2.2.0-final (by checking the manifest). Of if you are lazy, just delete the directory and let the build script download ivy again (this time in the correct version).

    Your error "impossible to get artifacts when data has not been loaded." seems to be caused by an old Ivy bug (IVY-987) , that has been fixed in ivy-2.1.0-final. If you have an old ivy jar sitting around, you are bound to run into such bugs. So upgrade that.

    Then start the master build-file again. It should call "ant resolve" on all sub-projects before calling "ant publish-local" on all sub-projects. If you want to do that manually, make sure you call "ant resolve" *before* you try to compile anything. "resolve" downloads all required libraries and if you dont do it, you get all the errors you see in that attached log file.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  6. #6
    Join Date
    Feb 2012
    Posts
    9

    Default

    as mentioned, i updated ivy to 2.2.0 and after making ant resolve on bi-platform-repository directory, displays following error

    [ivy:resolve] :: problems summary ::
    [ivy:resolve] :::: WARNINGS
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: pentaho-kettle#kettle-engine;4.2.0-stable: configuration not found in pentaho-kettle#kettle-engine;4.2.0-stable: 'master'. It was required from pentaho#pentaho-bi-platform-engine-services;3.9.0-stable default-ext
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve]
    [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

    BUILD FAILED
    /home/bi/Music/3.9/bi-platform-repository/build-res/subfloor.xml:620: impossible to resolve dependencies:
    resolve failed - see output for details
    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:344)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:811)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    Total time: 10 seconds

  7. #7
    Join Date
    Oct 2012
    Posts
    1

    Default build pentaho error

    [javac] D:\4.5.0-stable\bi-platform-web-portlet\src\org\pentaho\platform\web\portal\HtmlPortlet.java:28: ����� javax.portlet ������
    [javac] import javax.portlet.ActionResponse;
    [javac] ^
    [javac] D:\4.5.0-stable\bi-platform-web-portlet\src\org\pentaho\platform\web\portal\HtmlPortlet.java:29: ����� javax.portlet ������
    [javac] import javax.portlet.PortletException;
    [javac] ^
    [javac] D:\4.5.0-stable\bi-platform-web-portlet\src\org\pentaho\platform\web\portal\HtmlPortlet.java:30: ����� javax.portlet ������
    [javac] import javax.portlet.PortletPreferences;
    [javac] ^
    [javac] D:\4.5.0-stable\bi-platform-web-portlet\src\org\pentaho\platform\web\portal\HtmlPortlet.java:31: ����� javax.portlet ������
    [javac] import javax.portlet.RenderRequest;
    [javac] ^
    [javac] ע�⣺ijЩ�����ļ�ʹ����δ�����

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.