Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-2009, 12:20 AM
Intermediate Member
 
Posts: 15
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?
Reply With Quote
  #2 (permalink)  
Old 01-12-2009, 12:36 AM
Moderator
 
Posts: 7,928
Default

Why are you building from source when a binary package exists for 5.0.11 on RHEL5 ?
__________________
Reply With Quote
  #3 (permalink)  
Old 01-12-2009, 03:20 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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.
Reply With Quote
  #4 (permalink)  
Old 01-12-2009, 04:08 AM
Intermediate Member
 
Posts: 15
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.