Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: How to make a zimbra developer build?

  1. #1
    agunturu is offline Junior Member
    Join Date
    Jan 2007
    Posts
    7
    Rep Power
    8

    Default How to make a zimbra developer build?

    Hi,
    I am trying to make a Zimbra developer build. I started with the instructions at the following link, but I found that the packages it is using are old and some of the links it points to are broken.
    http://wiki.zimbra.com/index.php?tit...e_5_and_x86_64

    Any help is appreciated.
    Thanks,
    -Anil

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    We have been working on a couple new docs. One for Mac and one for Win32. I'll attach them for now but soon they will be in SVN. Please let us know if you have any suggestions to improve or find errors.

    Thanks to our intern Melih for the heavy lifting by writing and testing these docs.
    Attached Files Attached Files
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    BTW: These docs talk about creating a dev build as if you'll develop on Zimbra. So for server or AJAX dev work. They don't build all the 3rd party code or do any of the pkg'ing..

    We are working on a way to make source builds easier so you can sync to SVN, run a script to pull down the dependencies and then run make for a fully pkg'd installable binary.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  4. #4
    agunturu is offline Junior Member
    Join Date
    Jan 2007
    Posts
    7
    Rep Power
    8

    Default

    My JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_11\bin. But I still have trouble building the image.
    Buildfile: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build.xml
    clean:
    [delete] Deleting directory C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build
    build-init:
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\class es
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\gener ated\src\java
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\wiki
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\data
    make-dirs:
    [echo] Creating dirs under C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ openldap
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ openldap\etc\schema
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ bin
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ conf\msgs
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ db
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ lib\ext
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ lib\jars
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ libexec
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ tomcat\common\endorsed
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ tomcat\common\lib
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ tomcat\conf
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ tomcat\webapps
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\dist\ wiki
    compile:
    build-init:
    compile:
    jar:
    build-init:
    compile:
    jar:
    [javac] Compiling 1035 source files to C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\class es

    BUILD FAILED
    C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build.xml:2 72: Error running javac.exe compiler

    Total time: 3 seconds

  5. #5
    agunturu is offline Junior Member
    Join Date
    Jan 2007
    Posts
    7
    Rep Power
    8

    Default

    In addition to JAVA_HOME, I needed to set my PATH variable. But now I run into the following error:
    generate-ldap-config:
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\attrs
    [copy] Copying 2 files to C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\attrs
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\ldap-config
    [java] [] WARN: local config file `\opt\zimbra\conf\localconfig.xml' is not readable
    [java] [] WARN: while loading attrs, ignoring not .xml file: C:\Documents\versions-init.sql
    [java] Exception in thread "main" java.io.FileNotFoundException: C:\Documents (Access is denied)
    [java] at java.io.FileOutputStream.open(Native Method)
    [java] at java.io.FileOutputStream.<init>(Unknown Source)
    [java] at java.io.FileOutputStream.<init>(Unknown Source)
    [java] at com.zimbra.cs.account.AttributeManager.main(Attrib uteManager.java:625)

    Any help is appreciated.
    Thanks,
    -Anil

  6. #6
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by KevinH View Post
    BTW: These docs talk about creating a dev build as if you'll develop on Zimbra. So for server or AJAX dev work. They don't build all the 3rd party code or do any of the pkg'ing..

    We are working on a way to make source builds easier so you can sync to SVN, run a script to pull down the dependencies and then run make for a fully pkg'd installable binary.
    Awesome.

    This would be absolutely huge, and I think you will find that there are suddenly a lot more community sponsored builds when that occurs. Thank you also for the new howto, I will test it later on today.

  7. #7
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by agunturu View Post
    In addition to JAVA_HOME, I needed to set my PATH variable. But now I run into the following error:
    generate-ldap-config:
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\attrs
    [copy] Copying 2 files to C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\attrs
    [mkdir] Created dir: C:\Documents and Settings\utm\zimbra\frank\ZimbraServer\build\ldap-config
    [java] [] WARN: local config file `\opt\zimbra\conf\localconfig.xml' is not readable
    [java] [] WARN: while loading attrs, ignoring not .xml file: C:\Documents\versions-init.sql
    [java] Exception in thread "main" java.io.FileNotFoundException: C:\Documents (Access is denied)
    [java] at java.io.FileOutputStream.open(Native Method)
    [java] at java.io.FileOutputStream.<init>(Unknown Source)
    [java] at java.io.FileOutputStream.<init>(Unknown Source)
    [java] at com.zimbra.cs.account.AttributeManager.main(Attrib uteManager.java:625)

    Any help is appreciated.
    Thanks,
    -Anil
    I believe the problem here is that the code isn't smart enough to actually handle the space. The two possible ways to fix this are: a) Don't use a directory with a space in it, or b) Windows allows you to refer to "long" paths (ie, c:\documents and settings) via a 8.3 name. In my case, "c:\documents and settings" can also be refered to as "c:\docume~1"

  8. #8
    agunturu is offline Junior Member
    Join Date
    Jan 2007
    Posts
    7
    Rep Power
    8

    Default

    Thanks. After changing the directory name it seem to compile. I am able to access http://localhost:7070/zimbra, but I still have trouble accessing https://localhost:7071/zimbraAdmin. Do I need to configure something else for admin console?
    Thanks,
    -Anil

  9. #9
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    When I checkout FRANK, and run reset-the-world I get the following error:
    I am going to try and compile head and see if it works any better:

    Code:
     [javac] Compiling 371 source files to H:\projects\ZimbraIM\build\classes
        [javac] H:\projects\ZimbraIM\src\java\org\jivesoftware\database\AbstractConnection.java:23: org.jivesoftware.database.AbstractConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection
        [javac] public class AbstractConnection implements Connection {
        [javac] ^
        [javac] H:\projects\ZimbraIM\src\java\org\jivesoftware\database\ProfiledConnection.java:631: org.jivesoftware.database.ProfiledConnection.TimedStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement
        [javac] class TimedStatement extends StatementWrapper {
        [javac] ^
        [javac] H:\projects\ZimbraIM\src\java\org\jivesoftware\database\ProfiledConnection.java:719: org.jivesoftware.database.ProfiledConnection.TimedPreparedStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement
        [javac] class TimedPreparedStatement extends PreparedStatementWrapper {
        [javac] ^
        [javac] H:\projects\ZimbraIM\src\java\org\jivesoftware\database\ProfiledConnection.java:924: org.jivesoftware.database.ProfiledConnection.TimedCallableStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement
        [javac] class TimedCallableStatement extends CallableStatementWrapper {
        [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] 4 errors
    
    BUILD FAILED
    H:\projects\ZimbraServer\build.xml:271: The following error occurred while executing this line:
    H:\projects\ZimbraIM\build.xml:54: Compile failed; see the compiler error output for details.
    Edit: I did a check out of HEAD, and it still occurs there. Anyone have any ideas?
    Hmm. This might be due to the JVM version being used
    Last edited by JoshuaPrismon; 02-13-2007 at 02:25 PM.

  10. #10
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Hmm. This might be due to the JVM version being used[/QUOTE]


    That was the problem.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. upgrade woes -made into new thread
    By JustinHarlow in forum Installation
    Replies: 18
    Last Post: 06-08-2007, 12:11 PM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  3. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 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
  •