Results 1 to 4 of 4

Thread: building zimbra from source

  1. #1
    Join Date
    Nov 2008
    Posts
    15
    Rep Power
    6

    Default building zimbra from source

    Hi,
    I am trying to build zimbra from source on RedHat5. I followed the steps mentioned in Solaris - Build ThirdParty.
    I have compeleted step of ThirdPartyBuild successfully. Now started to build Zimbra source .
    when I executed commnad - ant 'reset the world ' in ZimbraServer directory, I got followng errors -

    ************************************************** *********

    [root@localhost ZimbraServer]# ant reset-the-world
    Buildfile: build.xml

    reset-the-world:

    clean:

    clean:
    [delete] Deleting directory /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraCommon/build

    clean:
    [delete] Deleting directory /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraIM/build
    [delete] Deleting directory /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build

    build-init:
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/classes
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/generated/src/java
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/wiki
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/data
    Trying to override old definition of task deploy

    make-dirs:
    [echo] Creating dirs under /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/conf
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/openldap/etc/openldap/schema
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/bin
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/conf/msgs
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/db
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/lib/ext
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/lib/jars
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/libexec
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/dist/wiki

    compile:

    build-init:
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraCommon/build/classes

    compile:
    [javac] Compiling 122 source files to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraCommon/build/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

    jar:
    [jar] Building jar: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraCommon/build/zimbracommon.jar

    build-init:
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraIM/build/classes

    compile:
    [javac] Compiling 358 source files to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraIM/build/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

    jar:
    [jar] Building jar: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraIM/build/zimbraim.jar
    [javac] Compiling 1418 source files to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/classes
    [javac] /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/src/java/com/zimbra/cs/wiki/Diff.java:29: warning: unmappable character for encoding UTF8
    [javac] * Copyright � 2007, Robert Sedgewick and Kevin Wayne.
    [javac] ^
    [javac] /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/src/java/com/zimbra/qa/unittest/TestAttr.java:327: warning: unmappable character for encoding UTF8
    [javac] // cannot have signature longer than the max�len
    [javac] ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 warnings

    set-buildinfo-vars:
    [echo] Version: 5.0 Date: 20090112-1732

    generate-buildinfo:
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/buildinfo
    [javac] Compiling 1 source file to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/classes

    jar:
    [echo] Hostname: localhost.localdomain
    [jar] Building jar: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/zimbrastore.jar

    set-buildinfo-vars:
    [echo] Version: 5.0 Date: 20090112-1732

    generate-ldap-config:
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/attrs
    [copy] Copying 2 files to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/attrs
    [mkdir] Created dir: /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/ldap-config
    [java] [] WARN: local config file `/opt/zimbra/conf/localconfig.xml' is not readable
    [java] [] WARN: local config file `/opt/zimbra/conf/localconfig.xml' is not readable
    [java] [] WARN: local config file `/opt/zimbra/conf/localconfig.xml' is not readable
    [copy] Copying 1 file to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/ldap-config
    [copy] Copying 1 file to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/ldap-config
    [copy] Copying 1 file to /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build/ldap-config

    stop-webserver:

    stop-jetty-windows:

    stop-jetty-unix:
    [echo] Jetty not installed; skipping jetty stop

    stop-jetty:
    [echo] Waiting for jetty to stop

    stop-ldap-windows:

    stop-ldap-unix:
    [echo] OpenLDAP not installed; skipping OpenLDAP stop

    stop-ldap:

    stop-servers:

    choose-db-schema:
    [echo] Using database schema in src/db

    db-init:

    BUILD FAILED
    /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build.xml:684: The following error occurred while executing this line:
    /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build.xml:861: com.mysql.jdbc.Communication***ception: Communications link failure due to underlying exception:

    ** BEGIN NESTED EXCEPTION **

    java.net.SocketException
    MESSAGE: java.net.ConnectException: Connection refused

    STACKTRACE:

    java.net.SocketException: java.net.ConnectException: Connection refused
    at com.mysql.jdbc.StandardSocketFactory.connect(Stand ardSocketFactory.java:156)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
    at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:2641)
    at com.mysql.jdbc.Connection.<init>(Connection.java:1 531)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:266)
    at org.apache.tools.ant.taskdefs.JDBCTask.getConnecti on(JDBCTask.java:319)
    at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLE xec.java:429)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    at sun.reflect.GeneratedMethodAccessor23.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:35 7)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:385)
    at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1337)
    at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Projec t.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(C allTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:35 7)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:385)
    at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Projec t.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher. java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher .java:104)


    ** END NESTED EXCEPTION **



    Last packet sent to the server was 7 ms ago.

    Total time: 26 seconds

    ************************************************** ********
    Please let me know where is the problem? How can i go ahead?
    can anyone help in letting me know what steps are left?

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Why are you building from source when a binary package exists for 5.0.11 on RHEL5 ?

  3. #3
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    It looks like he's trying to build a dev platform rather than installable binary.

    From this error:
    BUILD FAILED
    /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build.xml:684: The following error occurred while executing this line:
    /root/zimbra/zcs-5.0.11_GA_2699-src/ZimbraServer/build.xml:861: com.mysql.jdbc.Communication***ception: Communications link failure due to underlying exception:

    Looks like your mysql isn't running, or can't be reached (DNS). Check and see if you have mysql started.

    From these errors:
    stop-jetty-unix:
    [echo] Jetty not installed; skipping jetty stop

    stop-ldap-unix:
    [echo] OpenLDAP not installed; skipping OpenLDAP stop

    Looks like it can't find jetty/openldap. I'm not sure how the dev environment picks these up so can't comment, perhaps someone who has done a dev install can pipe up.

  4. #4
    Join Date
    Nov 2008
    Posts
    15
    Rep Power
    6

    Default

    hi dijichi
    u r right. i am creating dev environment.I followed the steps which u mentioned for solaris. In that u didn't mention about starting mysql or any other service. And u also don't talk about jetty in the thirdparty build software.

Similar Threads

  1. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 02:37 AM
  2. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 08:56 PM
  3. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  4. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 09:39 AM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 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
  •