Hitachi Vantara Pentaho Community Forums
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Getting started with BA server 4.8.0 and CBF 5.1

  1. #1

    Default Getting started with BA server 4.8.0 and CBF 5.1

    Introduction

    I thought I would post some of the blockers and solutions I came across when trying to get CBF (Community Build Framework) running. It took a while to get CBF running smoothly but in the long run the effort was worth it.

    My client required 3 BA servers (standard setup):
    1. Development
    2. Staging
    3. Production


    They also wanted a white label BA server to run on/with the following:
    • Debian 6
    • PostgreSQL 8.4
    • Custom Login.jsp (not part of this post)
    • Custom theme (not part of this post)
    • No samples (not part of this post)


    There are various threads, blog articles and the CBF website itself which can guide you on your installation/configuration of CBF but here are links which I found the most helpful:


    So lets get started

    Requirements

    You will need to make sure you have the following installed/configured:
    • Oracle (Sun) Java 6
    • Apache Ant (Latest stable release)
    • Apache Ant Ivy (Latest stable release)
    • xmltask.jar
    • Apache Tomcat 6.0.36
    • Subversion (Latest stable release)
    • CBF 5.7


    Oracle (Sun) Java 6
    Code:
    $ sudo vi /etc/apt/sources.list
    # add the line below
    deb http://ftp2.de.debian.org/debian squeeze main non-free
    $ sudo apt-get update
    $ sudo apt-get install sun-java6-bin sun-java6-javadb sun-java6-jdk sun-java6-plugin
    $ java -version
    # output on your java version etc.
    $ export JAVA_HOME=/usr/lib/jvm/java-6-sun
    (Probably best to add your environment variables to your bash script)

    Apache Ant v1.8.4
    Code:
    $ wget http://mirror.ventraip.net.au/apache//ant/binaries/apache-ant-1.8.4-bin.tar.gz
    $ tar -xvf apache-ant-1.8.4-bin.tar.gz
    $ sudo mv apache-ant-1.8.4 /usr/share/
    # create a symbolic link
    $ sudo ln -s /usr/share/ant/bin/ant /usr/bin/ant
    $ ant -version
    # output on your apache ant version etc.
    $ cd /usr/local/ant/
    # grab apache ant dependencies
    $ ant -f fetch.xml -Ddest=user
    $ export ANT_HOME=/usr/share/apache-ant-1.8.4
    (Probably best to add your environment variables to your bash script)

    Apache Ant Ivy v2.3.0 and xmltask.jar
    Code:
    $ wget http://mirror.ventraip.net.au/apache//ant/ivy/2.3.0/apache-ivy-2.3.0-bin.tar.gz
    $ tar -xvf apache-ivy-2.3.0-bin.tar.gz
    $ cd apache-ivy-2.3.0
    $ cp ivy-2.3.0.jar /usr/share/ant/
    $ cd /usr/share/ant/
    $ ant -f fetch.xml -Ddest=user
    $ cd ~/.ant/lib
    # need to get xmltask.jar
    $ wget --no-check-certificate https://sourceforge.net/projects/xmltask/files/xmltask/1.16/xmltask.jar/download
    $ mv download xmltask.jar
    $ cd /usr/share/ant/
    $ ant -f fetch.xml -Ddest=user


    Subversion
    Code:
    $ sudo apt-get install subversion


    Apache Tomcat v6.0.36

    Code:
    $ wget http://apache.mirror.uber.com.au/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz
    $ tar -xvf apache-tomcat-6.0.36.tar.gz
    (Remember this location of Apache Tomcat as we will need to put it into our CBF folder later on.)

    CBF

    Now its time to get started with CBF. The first step is to create the skeleton directory structure, I won't go into too much detail about what each directory does etc. (it is all on the webdetails website). As an example this is what mine looked like:

    Code:
    cbf
      |--build.xml
      |--pentaho-4.8
      |--project-development
      |--tomcat
    Before I look at the project-development directory (where the magic occurs) lets grab some needed files/folders/packages before continuing.

    CBF 5.7
    Code:
    $cd cbf
    $wget --no-check-certificate https://raw.github.com/webdetails/cbf/master/build.xml
    4.8.0-stable
    Code:
    $cd cbf
    $svn co http://source.pentaho.org/svnroot/bi-platform-v2/tags/4.8.0-stable/ ./pentaho-4.8/
    Apache Tomcat
    Code:
    $cd cbf
    $mv ../apache-tomcat-6.0.36 ./tomcat
    project-* (project-development)
    The project-* (in this example project-development) contains your build properties, patches and solutions necessary for your BA server. As I said above I won't go into too much detail but here is what my project-development looks like (I have also attached a copy of it if anyone wants it):

    Code:
    .
    ├── config
    │   ├── build-prashant.properties
    │   └── build.properties
    ├── patches
    │   ├── project-development
    │   │   └── solution
    │   │       └── system
    │   │           ├── applicationContext-spring-security-hibernate.properties
    │   │           ├── applicationContext-spring-security-hibernate.xml
    │   │           ├── hibernate
    │   │           │   ├── hibernate-settings.xml
    │   │           │   └── postgresql.hibernate.cfg.xml
    │   │           ├── quartz
    │   │           │   └── quartz.properties
    │   │           └── simple-jndi
    │   │               └── jdbc.properties
    │   ├── target-build
    │   │   └── bi-platform-assembly
    │   │       └── build-res
    │   │           └── assembly_shared.xml
    │   └── target-dist
    │       ├── administration-console
    │       │   └── jdbc
    │       │       └── postgresql-9.2-1002.jdbc3.jar
    │       └── server
    │           ├── conf
    │           │   └── Catalina
    │           │       └── localhost
    │           │           └── pentaho.xml
    │           ├── lib
    │           │   └── postgresql-9.2-1002.jdbc3.jar
    │           └── webapps
    │               ├── host-manager
    │               ├── manager
    │               └── pentaho
    │                   ├── META-INF
    │                   │   └── context.xml
    │                   └── WEB-INF
    │                       └── web.xml
    └── solution
    So there are some files/folders which aren't part of any of the tutorials that I have seen (maybe someone who uses CBF often can chime in to why or if they have fixes to how I don't need to use them), so here is an explanation as to why I added them in (these are in italics).

    assembly_shared.xml

    I kept getting this error message:

    Code:
    /home/pentaho/work/cbf/build.xml:291: The following error occurred while executing this line:
    /home/pentaho/work/cbf/target-build/bi-platform-assembly/build-res/assembly_shared.xml:19:  !!! Blacklisted class javax.servlet.Servlet found in a retrieved jar .   Assembly cannot proceed !!!
    Apparently this shouldn't be happening but to get around this I added a new file (as a patch - CBF magic!) which had the following argument added (in bold):

    Code:
    <available property="Servlet.class.present" classname="javax.servlet.Servlet" ignoresystemclasses="true">
    host-manager/ and manager/

    For some bizzarre reason when I went to run a new build I received the follow error:

    Code:
    SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base [..]webapps\host-manager does not exist or is not a readable directory
    To fix this I just went ahead and copied the host-manager and manager (not sure if this was needed but did it in case) to the directory listed above as a patch.

    build-prashant.properties

    For those that don't want to download the attachment here is my build-prashant.properties:

    Code:
    javac.path = /usr/lib/jvm/java-6-sun/bin
    project.revision=4.8.0-stable
    solution.path = /home/prashant/cbf/project-development/solution
    copy.pentaho.samples = true
    server.name = tomcat
    tomcat.path = /home/prashant/cbf/tomcat/
    dependency.pentaho-cdf-plugin.revision=TRUNK-SNAPSHOT
    java.opts = -Dfile.encoding=utf-8 -Xmx512m -XX:MaxPermSize=512m -Xrunjdwp:transport=dt_socket,address=8765,server=y,suspend=n
    pentaho.dir = pentaho-4.8/
    pentaho.build.dir = target-build/
    BASE_URL = http://10.0.1.30:8080/pentaho/
    I should have a lot more in here i.e. database connection settings etc. but this was just a quick and dirty to see if I could get this working.

    Finally all you have to do is:

    Code:
    ant -Dproject=development -Denv=prashant dist-clean all run
    I should put this together as a blog post and go through the finer details i.e. database connection variables and changing the theme, login page and removing samples but hopefully this helps a potential CBF'er, I mean Community Build Frameworker :P.

    Prashant

    cbf.zip
    Join ##Pentaho @ irc.freenode.net and start contributing!

    My blog: http://www.prashantraju.com/
    One guide to rule them all: Pentaho BI Server 3.6.0 with Microsoft SQL Server, MySQL, Oracle and PostgreSQL

  2. #2
    Join Date
    Jun 2013
    Posts
    28

    Default Runtime Error

    Quote Originally Posted by pgraju View Post
    Introduction

    I thought I would post some of the blockers and solutions I came across when trying to get CBF (Community Build Framework) running. It took a while to get CBF running smoothly but in the long run the effort was worth it.

    My client required 3 BA servers (standard setup):
    1. Development
    2. Staging
    3. Production


    They also wanted a white label BA server to run on/with the following:
    • Debian 6
    • PostgreSQL 8.4
    • Custom Login.jsp (not part of this post)
    • Custom theme (not part of this post)
    • No samples (not part of this post)


    There are various threads, blog articles and the CBF website itself which can guide you on your installation/configuration of CBF but here are links which I found the most helpful:


    So lets get started

    Requirements

    You will need to make sure you have the following installed/configured:
    • Oracle (Sun) Java 6
    • Apache Ant (Latest stable release)
    • Apache Ant Ivy (Latest stable release)
    • xmltask.jar
    • Apache Tomcat 6.0.36
    • Subversion (Latest stable release)
    • CBF 5.7


    Oracle (Sun) Java 6
    Code:
    $ sudo vi /etc/apt/sources.list
    # add the line below
    deb http://ftp2.de.debian.org/debian squeeze main non-free
    $ sudo apt-get update
    $ sudo apt-get install sun-java6-bin sun-java6-javadb sun-java6-jdk sun-java6-plugin
    $ java -version
    # output on your java version etc.
    $ export JAVA_HOME=/usr/lib/jvm/java-6-sun
    (Probably best to add your environment variables to your bash script)

    Apache Ant v1.8.4
    Code:
    $ wget http://mirror.ventraip.net.au/apache//ant/binaries/apache-ant-1.8.4-bin.tar.gz
    $ tar -xvf apache-ant-1.8.4-bin.tar.gz
    $ sudo mv apache-ant-1.8.4 /usr/share/
    # create a symbolic link
    $ sudo ln -s /usr/share/ant/bin/ant /usr/bin/ant
    $ ant -version
    # output on your apache ant version etc.
    $ cd /usr/local/ant/
    # grab apache ant dependencies
    $ ant -f fetch.xml -Ddest=user
    $ export ANT_HOME=/usr/share/apache-ant-1.8.4
    (Probably best to add your environment variables to your bash script)

    Apache Ant Ivy v2.3.0 and xmltask.jar
    Code:
    $ wget http://mirror.ventraip.net.au/apache//ant/ivy/2.3.0/apache-ivy-2.3.0-bin.tar.gz
    $ tar -xvf apache-ivy-2.3.0-bin.tar.gz
    $ cd apache-ivy-2.3.0
    $ cp ivy-2.3.0.jar /usr/share/ant/
    $ cd /usr/share/ant/
    $ ant -f fetch.xml -Ddest=user
    $ cd ~/.ant/lib
    # need to get xmltask.jar
    $ wget --no-check-certificate https://sourceforge.net/projects/xmltask/files/xmltask/1.16/xmltask.jar/download
    $ mv download xmltask.jar
    $ cd /usr/share/ant/
    $ ant -f fetch.xml -Ddest=user


    Subversion
    Code:
    $ sudo apt-get install subversion


    Apache Tomcat v6.0.36

    Code:
    $ wget http://apache.mirror.uber.com.au/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz
    $ tar -xvf apache-tomcat-6.0.36.tar.gz
    (Remember this location of Apache Tomcat as we will need to put it into our CBF folder later on.)

    CBF

    Now its time to get started with CBF. The first step is to create the skeleton directory structure, I won't go into too much detail about what each directory does etc. (it is all on the webdetails website). As an example this is what mine looked like:

    Code:
    cbf
      |--build.xml
      |--pentaho-4.8
      |--project-development
      |--tomcat
    Before I look at the project-development directory (where the magic occurs) lets grab some needed files/folders/packages before continuing.

    CBF 5.7
    Code:
    $cd cbf
    $wget --no-check-certificate https://raw.github.com/webdetails/cbf/master/build.xml
    4.8.0-stable
    Code:
    $cd cbf
    $svn co http://source.pentaho.org/svnroot/bi-platform-v2/tags/4.8.0-stable/ ./pentaho-4.8/
    Apache Tomcat
    Code:
    $cd cbf
    $mv ../apache-tomcat-6.0.36 ./tomcat
    project-* (project-development)
    The project-* (in this example project-development) contains your build properties, patches and solutions necessary for your BA server. As I said above I won't go into too much detail but here is what my project-development looks like (I have also attached a copy of it if anyone wants it):

    Code:
    .
    ├── config
    │   ├── build-prashant.properties
    │   └── build.properties
    ├── patches
    │   ├── project-development
    │   │   └── solution
    │   │       └── system
    │   │           ├── applicationContext-spring-security-hibernate.properties
    │   │           ├── applicationContext-spring-security-hibernate.xml
    │   │           ├── hibernate
    │   │           │   ├── hibernate-settings.xml
    │   │           │   └── postgresql.hibernate.cfg.xml
    │   │           ├── quartz
    │   │           │   └── quartz.properties
    │   │           └── simple-jndi
    │   │               └── jdbc.properties
    │   ├── target-build
    │   │   └── bi-platform-assembly
    │   │       └── build-res
    │   │           └── assembly_shared.xml
    │   └── target-dist
    │       ├── administration-console
    │       │   └── jdbc
    │       │       └── postgresql-9.2-1002.jdbc3.jar
    │       └── server
    │           ├── conf
    │           │   └── Catalina
    │           │       └── localhost
    │           │           └── pentaho.xml
    │           ├── lib
    │           │   └── postgresql-9.2-1002.jdbc3.jar
    │           └── webapps
    │               ├── host-manager
    │               ├── manager
    │               └── pentaho
    │                   ├── META-INF
    │                   │   └── context.xml
    │                   └── WEB-INF
    │                       └── web.xml
    └── solution
    So there are some files/folders which aren't part of any of the tutorials that I have seen (maybe someone who uses CBF often can chime in to why or if they have fixes to how I don't need to use them), so here is an explanation as to why I added them in (these are in italics).

    assembly_shared.xml

    I kept getting this error message:

    Code:
    /home/pentaho/work/cbf/build.xml:291: The following error occurred while executing this line:
    /home/pentaho/work/cbf/target-build/bi-platform-assembly/build-res/assembly_shared.xml:19:  !!! Blacklisted class javax.servlet.Servlet found in a retrieved jar .   Assembly cannot proceed !!!
    Apparently this shouldn't be happening but to get around this I added a new file (as a patch - CBF magic!) which had the following argument added (in bold):

    Code:
    <available property="Servlet.class.present" classname="javax.servlet.Servlet" ignoresystemclasses="true">
    host-manager/ and manager/

    For some bizzarre reason when I went to run a new build I received the follow error:

    Code:
    SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base [..]webapps\host-manager does not exist or is not a readable directory
    To fix this I just went ahead and copied the host-manager and manager (not sure if this was needed but did it in case) to the directory listed above as a patch.

    build-prashant.properties

    For those that don't want to download the attachment here is my build-prashant.properties:

    Code:
    javac.path = /usr/lib/jvm/java-6-sun/bin
    project.revision=4.8.0-stable
    solution.path = /home/prashant/cbf/project-development/solution
    copy.pentaho.samples = true
    server.name = tomcat
    tomcat.path = /home/prashant/cbf/tomcat/
    dependency.pentaho-cdf-plugin.revision=TRUNK-SNAPSHOT
    java.opts = -Dfile.encoding=utf-8 -Xmx512m -XX:MaxPermSize=512m -Xrunjdwp:transport=dt_socket,address=8765,server=y,suspend=n
    pentaho.dir = pentaho-4.8/
    pentaho.build.dir = target-build/
    BASE_URL = http://10.0.1.30:8080/pentaho/
    I should have a lot more in here i.e. database connection settings etc. but this was just a quick and dirty to see if I could get this working.

    Finally all you have to do is:

    Code:
    ant -Dproject=development -Denv=prashant dist-clean all run
    I should put this together as a blog post and go through the finer details i.e. database connection variables and changing the theme, login page and removing samples but hopefully this helps a potential CBF'er, I mean Community Build Frameworker :P.

    Prashant

    cbf.zip

    Hi pgraju,

    Thank for your post.
    I also develop pentaho by using CBF.
    I have runtime errors in CBF. I can't pass this step. So, if possible help me please.
    I would like you to explain about my CBF process.

    My configuration as following.
    . pentaho4.8.0-stable
    . jdk1.6.0_05
    . apache-ant-1.7.0
    . tomcat6
    . TortoiseSVN
    . Window XP

    When i run the ant job "ant -Dproject=development -Denv=yewin dist-clean all run".
    CBF is successfully builed. But I can't run pentaho in browser. Becacuse of following errors.
    run-tomcat:
    [exec] The JAVA_HOME environment variable is not defined correctly
    [exec] This environment variable is needed to run this program
    [exec] NB: JAVA_HOME should point to a JDK not a JRE.

    My properties file as follow.
    build.yewin.properties
    javac.path = C\:\\Program Files\\Java\\jdk1.6.0_05\\bin\\javac
    project.revision=4.8.0-stable
    copy.pentaho.samples = true
    server.name = tomcat
    tomcat.path = C\:\\apache-tomcat\\
    dependency.pentaho-cdf-plugin.revision=TRUNK-SNAPSHOT
    java.opts = -Dfile.encoding=utf-8 -Xmx512m -XX:MaxPermSize=512m -Xrunjdwp:transport=dt_socket,address=8765,server=y,suspend=n
    pentaho.dir = pentaho-4.8/
    pentaho.build.dir = target-build/
    solution.deploy = D\:\\Java\\PentahoWorkspace\\cbf-quickstart\\project-development\\solution
    BASE_URL = http://127.0.0.1:8080/pentaho/

    I am sure one is I already set JAVA_HOME in myComputer Environment Variables.
    So above error is very conflict for me.
    Let me know your suggestion.

    Thank a lot ^_^
    Last edited by ye win; 07-03-2013 at 04:35 AM.

  3. #3
    Join Date
    Jul 2007
    Posts
    2,497

    Default

    you seem to be using cygwin. Try to redefine JAVA_HOME in your ~/.bashrc
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  4. #4
    Join Date
    Jun 2013
    Posts
    28

    Default

    Quote Originally Posted by pmalves View Post
    you seem to be using cygwin. Try to redefine JAVA_HOME in your ~/.bashrc
    Hi Pedro Alves,

    Thank for your reply. I passed this error smoothly.
    But next runtime errors will be occurs as following.

    [exec] INFO: Deploying configuration descriptor D:\Java\PentahoWrokspace\cbf-qcickstart\target-dist\server\conf\Catalina\localhost\pentaho.xml
    [exec] Jul 4, 2013 3:02:52 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] SEVERE: ContainerBase.addChild: start:
    [exec] org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StarndardHost[localhost].StandardContet[/pentaho]]
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] Caused by: java.lang.NoClassDefFoundError: org/pentaho/platform/api/scheduler/BackgroundExecutionException
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] SEVERE: Error deploying configuration descriptor D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\conf\Catalina\localhost\pentaho.xml
    [exec] java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StarndardEngine[Catalina].StandardHost
    [localhost].StandardContext[/pentaho]]
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] ----------------------------------
    [exec] INFO: Server startup in 4848 ms


    My pentaho.xml and context.xml as follwing.
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/pentaho" >
    <Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource"
    factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5"
    maxWait="10000" username="xxx" password="xxx"
    driverClassName="org.postgresql.Driver" url="jdbcostgresql://localhost:5432/hibernate"
    validationQuery="select 1" />

    <Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource"
    factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="20" maxIdle="5"
    maxWait="10000" username="xxx" password="xxx"
    driverClassName="org.postgresql.Driver" url="jdbcostgresql://localhost:5432/quartz"
    validationQuery="select 1"/>
    </Context>


    I am not sure about hibernate and quartz database.
    In my PostgreSql hibernate and quartz database does not exist.
    So I would like to know how to handle that errors.

    Thank in advance.

  5. #5
    Join Date
    Jul 2007
    Posts
    2,497

    Default

    java.lang.NoClassDefFoundError: org/pentaho/platform/api/scheduler/BackgroundExecutionException


    This is weird... I wasn't expecting this errors. Se if you have some errors on the build. Re the databases, you need to create them. I recommend using the bundled hypersonic that has the correct content
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  6. #6
    Join Date
    Jun 2013
    Posts
    28

    Default

    Quote Originally Posted by pmalves View Post
    java.lang.NoClassDefFoundError: org/pentaho/platform/api/scheduler/BackgroundExecutionException


    This is weird... I wasn't expecting this errors. Se if you have some errors on the build. Re the databases, you need to create them. I recommend using the bundled hypersonic that has the correct content
    Thank for your quick reply. Ok, I will try using the hypersonic for fixed the errors.
    Sorry for your inconvenience.
    By the way, I would like to know can I use CDE in IE8??
    Currently, we can't create dashboard by using CDE via IE8.

    Thank in advance.

  7. #7
    Join Date
    Jul 2007
    Posts
    2,497

    Default

    Trunk version of CDE works with IE

    ... no wonder why you'd do that though
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  8. #8
    Join Date
    Jun 2013
    Posts
    28

    Default

    Quote Originally Posted by pmalves View Post
    Trunk version of CDE works with IE

    ... no wonder why you'd do that though
    Thank you very much!
    We are overcome this problem.
    Now we can use CDE via IE.

  9. #9
    Join Date
    Jun 2013
    Posts
    28

    Default

    Quote Originally Posted by pmalves View Post
    java.lang.NoClassDefFoundError: org/pentaho/platform/api/scheduler/BackgroundExecutionException


    This is weird... I wasn't expecting this errors. Se if you have some errors on the build. Re the databases, you need to create them. I recommend using the bundled hypersonic that has the correct content
    Dear Pedro Alves,

    I overcome this problem refer the link http://www.prashantraju.com/projects/pentaho/.(Windows Postgresql 8.xxx)
    Any errors are not display in console as follow.
    Console
    run-tomcat:
    [exec] Using CATALINA_BASE: "target-dist/server"
    [exec] Using CATALINA_HOME: "target-dist/server"
    [exec] Using CATALINA_TMPDIR: "target-dist/server\temp"
    [exec] Using JRE_HOME: "C:\jre1.6.0_05"
    [exec] Using CLASSPATH: "target-dist/server\bin\bootstrap.jar;target-dist/server\bin\tomcat-juli.jar"
    [exec] Listening for transport dt_socket at address: 8765
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.core.AprLifecycleListener init
    [exec] INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jre1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\jdk1.6.0_05;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\apache-ant-1.7.0\bin;C:\Program Files\OpenVPN\bin;C:\Program Files\PostgreSQL Frontend\bin;C:\Program Files\OpenVPN\bin
    [exec] Jul 8, 2013 5:19:13 PM org.apache.coyote.AbstractProtocol init
    [exec] INFO: Initializing ProtocolHandler ["http-bio-8080"]
    [exec] Jul 8, 2013 5:19:13 PM org.apache.coyote.AbstractProtocol init
    [exec] INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.startup.Catalina load
    [exec] INFO: Initialization processed in 503 ms
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.core.StandardService startInternal
    [exec] INFO: Starting service Catalina
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.core.StandardEngine startInternal
    [exec] INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] INFO: Deploying configuration descriptor D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\conf\Catalina\localhost\host-manager.xml
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] INFO: Deploying configuration descriptor D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\conf\Catalina\localhost\manager.xml
    [exec] Jul 8, 2013 5:19:13 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] INFO: Deploying configuration descriptor D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\conf\Catalina\localhost\pentaho.xml
    [exec] Jul 8, 2013 5:19:22 PM org.apache.catalina.startup.TaglibUriRule body
    [exec] INFO: TLD skipped. URI: http://www.tonbeller.com/wcf is already defined
    [exec] Jul 8, 2013 5:19:22 PM org.apache.catalina.startup.TaglibUriRule body
    [exec] INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    [exec] Jul 8, 2013 5:19:22 PM org.apache.catalina.startup.HostConfig deployDirectory
    [exec] INFO: Deploying web application directory D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\webapps\pentaho-style
    [exec] Jul 8, 2013 5:19:22 PM org.apache.catalina.startup.HostConfig deployDirectory
    [exec] INFO: Deploying web application directory D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\webapps\ROOT
    [exec] Jul 8, 2013 5:19:22 PM org.apache.catalina.startup.HostConfig deployDirectory
    [exec] INFO: Deploying web application directory D:\Java\PentahoWorkspace\cbf-quickstart\target-dist\server\webapps\sw-style
    [exec] Jul 8, 2013 5:19:22 PM org.apache.coyote.AbstractProtocol start
    [exec] INFO: Starting ProtocolHandler ["http-bio-8080"]
    [exec] Jul 8, 2013 5:19:22 PM org.apache.coyote.AbstractProtocol start
    [exec] INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    [exec] Jul 8, 2013 5:19:22 PM org.apache.catalina.startup.Catalina start
    [exec] INFO: Server startup in 8953 ms

    But when I run pentaho(http://localhost:8080/pentaho) in browser, following errors will be occurs.

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: Unable to compile class for JSP:

    An error occurred at line: 14 in the generated java file
    Only a type can be imported. org.pentaho.platform.engine.core.system.PentahoSystem resolves to a package

    An error occurred at line: 15 in the generated java file
    Only a type can be imported. org.pentaho.platform.api.engine.IPentahoSession resolves to a package

    An error occurred at line: 16 in the generated java file
    Only a type can be imported. org.pentaho.platform.api.engine.IPluginManager resolves to a package

    An error occurred at line: 18 in the generated java file
    Only a type can be imported. org.pentaho.platform.web.http.PentahoHttpSessionHelper resolves to a package

    An error occurred at line: 23 in the jsp file: /index.jsp
    IPluginManager cannot be resolved to a type
    20: String ua = request.getHeader("User-Agent").toLowerCase();
    21: if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {
    22: if (ua.contains("ipad") || ua.contains("ipod") || ua.contains("iphone") || ua.contains("android") || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {
    23: IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
    24: List<String> pluginIds = pluginManager.getRegisteredPlugins();
    25: for (String id : pluginIds) {
    26: String mobileRedirect = (String)pluginManager.getPluginSetting(id, "mobile-redirect", null);


    An error occurred at line: 23 in the jsp file: /index.jsp
    PentahoSystem cannot be resolved
    20: String ua = request.getHeader("User-Agent").toLowerCase();
    21: if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {
    22: if (ua.contains("ipad") || ua.contains("ipod") || ua.contains("iphone") || ua.contains("android") || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {
    23: IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
    24: List<String> pluginIds = pluginManager.getRegisteredPlugins();
    25: for (String id : pluginIds) {
    26: String mobileRedirect = (String)pluginManager.getPluginSetting(id, "mobile-redirect", null);


    An error occurred at line: 23 in the jsp file: /index.jsp
    IPluginManager cannot be resolved to a type
    20: String ua = request.getHeader("User-Agent").toLowerCase();
    21: if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {
    22: if (ua.contains("ipad") || ua.contains("ipod") || ua.contains("iphone") || ua.contains("android") || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {
    23: IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
    24: List<String> pluginIds = pluginManager.getRegisteredPlugins();
    25: for (String id : pluginIds) {
    26: String mobileRedirect = (String)pluginManager.getPluginSetting(id, "mobile-redirect", null);


    An error occurred at line: 23 in the jsp file: /index.jsp
    PentahoHttpSessionHelper cannot be resolved
    20: String ua = request.getHeader("User-Agent").toLowerCase();
    21: if (!"desktop".equalsIgnoreCase(request.getParameter("mode"))) {
    22: if (ua.contains("ipad") || ua.contains("ipod") || ua.contains("iphone") || ua.contains("android") || "mobile".equalsIgnoreCase(request.getParameter("mode"))) {
    23: IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class, PentahoHttpSessionHelper.getPentahoSession(request));
    24: List<String> pluginIds = pluginManager.getRegisteredPlugins();
    25: for (String id : pluginIds) {
    26: String mobileRedirect = (String)pluginManager.getPluginSetting(id, "mobile-redirect", null);


    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.27 logs.
    Apache Tomcat/7.0.27


    -------------------------------------------------------------------------------------------------------------------
    I don't know why and no idea for that!!
    Please let me know your opinion!!
    Thank in advance!!!!
    Last edited by ye win; 07-08-2013 at 06:54 AM.

  10. #10
    Join Date
    Jun 2013
    Posts
    28

    Default

    Quote Originally Posted by pmalves View Post
    java.lang.NoClassDefFoundError: org/pentaho/platform/api/scheduler/BackgroundExecutionException


    This is weird... I wasn't expecting this errors. Se if you have some errors on the build. Re the databases, you need to create them. I recommend using the bundled hypersonic that has the correct content
    Hi,
    Sorry for my previous reply!!Finally I got the following errors only.

    run-tomcat:
    [exec] Using CATALINA_BASE: "target-dist/server"
    [exec] Using CATALINA_HOME: "target-dist/server"
    [exec] Using CATALINA_TMPDIR: "target-dist/server\temp"
    [exec] Using JRE_HOME: "C:\jre7"
    [exec] Using CLASSPATH: "target-dist/server\bin\bootstrap.jar"
    [exec] Listening for transport dt_socket at address: 8765
    [exec] Jul 09, 2013 6:12:00 PM org.apache.catalina.core.AprLifecycleListener init
    [exec] INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\jdk1.7.0_25;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\apache-ant-1.7.0\bin;C:\Program Files\OpenVPN\bin;C:\Program Files\PostgreSQL Frontend\bin;C:\Program Files\OpenVPN\bin;.
    [exec] Jul 09, 2013 6:12:00 PM org.apache.coyote.http11.Http11Protocol init
    [exec] INFO: Initializing Coyote HTTP/1.1 on http-8080
    [exec] Jul 09, 2013 6:12:00 PM org.apache.catalina.startup.Catalina load
    [exec] INFO: Initialization processed in 433 ms
    [exec] Jul 09, 2013 6:12:00 PM org.apache.catalina.core.StandardService start
    [exec] INFO: Starting service Catalina
    [exec] Jul 09, 2013 6:12:00 PM org.apache.catalina.core.StandardEngine start
    [exec] INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
    [exec] Jul 09, 2013 6:12:00 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] INFO: Deploying configuration descriptor host-manager.xml
    [exec] Jul 09, 2013 6:12:00 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] INFO: Deploying configuration descriptor manager.xml
    [exec] Jul 09, 2013 6:12:01 PM org.apache.catalina.startup.HostConfig deployDescriptor
    [exec] INFO: Deploying configuration descriptor pentaho.xml
    [exec] Jul 09, 2013 6:12:02 PM org.apache.catalina.core.StandardContext start
    [exec] SEVERE: Error listenerStart
    [exec] Jul 09, 2013 6:12:02 PM org.apache.catalina.core.StandardContext start
    [exec] SEVERE: Context [/pentaho] startup failed due to previous errors

    [exec] Jul 09, 2013 6:12:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    [exec] INFO: Deploying web application directory pentaho-style
    [exec] Jul 09, 2013 6:12:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    [exec] INFO: Deploying web application directory ROOT
    [exec] Jul 09, 2013 6:12:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    [exec] INFO: Deploying web application directory sw-style
    [exec] Jul 09, 2013 6:12:02 PM org.apache.coyote.http11.Http11Protocol start
    [exec] INFO: Starting Coyote HTTP/1.1 on http-8080
    [exec] Jul 09, 2013 6:12:02 PM org.apache.jk.common.ChannelSocket init
    [exec] INFO: JK: ajp13 listening on /0.0.0.0:8009
    [exec] Jul 09, 2013 6:12:02 PM org.apache.jk.server.JkMain start
    [exec] INFO: Jk running ID=0 time=0/16 config=null
    [exec] Jul 09, 2013 6:12:02 PM org.apache.catalina.startup.Catalina start
    [exec] INFO: Server startup in 2188 ms

    Can't find out for the problems.
    If you have any help, please let me know.
    Thank a lot!!
    Attached Files Attached Files
    Last edited by ye win; 07-09-2013 at 08:05 AM.

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.