Results 1 to 7 of 7

Thread: Problems with building zimbra source from Eclipse

  1. #1
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default Problems with building zimbra source from Eclipse

    Hi,

    since I can't install the 3.2 beta on my productive server I wanted to run Zimbra out of eclipse to translate and test the newest language files.

    I followed this instructions.
    When downloading Zimbra from CVS I chose the "main" branch.

    When running the "reset-the-world" the build process cancels with the following error:
    Code:
    ldap-load-step1:
    
    BUILD FAILED
    E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build.xml:651: Execute failed: java.io.IOException: CreateProcess: E:\opt\zimbra\openldap\ldapmodify -a -c -w zimbra -D uid=zimbra,cn=admins,cn=zimbra -x -f E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build/ldap-config/zimbra.ldif error=2
    Where is the problem?

    Please help me,
    goetzi


    Maybe it helps, here is the log of the entire build process:
    Code:
    Buildfile: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build.xml
    clean:
       [delete] Deleting directory E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build
    build-init:
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\classes
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\bin
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\libexec
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\conf
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\conf\msgs
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib\jars
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib\ext
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\tomcat\webapps
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\tomcat\conf
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\tomcat\common\lib
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\openldap
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\openldap\etc\openldap
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\openldap\etc\openldap\schema
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\generated\src\java
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\zimlets
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\wiki
    compile:
        [javac] Compiling 1136 source files to E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\classes
        [javac] Note: * uses or overrides 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.
         [echo] Hostname: goetzi
    set-buildinfo-vars:
         [echo] Version: 3.2
    generate-buildinfo:
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\buildinfo
        [javac] Compiling 1 source file to E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\classes
    set-buildinfo-vars:
         [echo] Version: 3.2
    generate-ldap-config:
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
         [java] [] WARN: while loading attrs, ignoring not .xml file: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\conf\attrs\CVS
         [java] [] WARN: while loading attrs, ignoring not .xml file: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\conf\attrs\CVS
         [java] [] WARN: while loading attrs, ignoring not .xml file: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\conf\attrs\CVS
         [copy] Copying 1 file to E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
         [copy] Copying 1 file to E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
         [copy] Copying 1 file to E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
        [mkdir] Created dir: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\conf\attrs
         [copy] Copying 2 files to E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\conf\attrs
    jar:
          [jar] Building jar: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib\jars\zimbrastore.jar
    stop-tomcat-windows:
         [exec] Systemfehler 1060 aufgetreten.
         [exec] Der angegebene Dienst ist kein installierter Dienst.
         [exec] Result: 2
         [echo] Waiting for tomcat to stop
    stop-tomcat-unix:
    stop-tomcat:
    stop-ldap-windows:
         [exec] OpenLDAP Directory Service ist nicht gestartet.
         [exec] Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 3521 eingeben.
         [exec] Result: 2
    stop-ldap-unix:
    stop-ldap:
    stop-servers:
    db-init:
          [sql] Executing file: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\src\db\dropdb.sql
          [sql] 101 of 101 SQL statements executed successfully
          [sql] Executing file: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\src\db\db.sql
          [sql] 22 of 22 SQL statements executed successfully
          [sql] Executing file: E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\versions-init.sql
          [sql] 3 of 3 SQL statements executed successfully
    dir-init:
         [echo] If the following deletes fail, wait for your tomcat
         [echo] to stop (or stop your tomcat as the case may be)
         [echo] and try again later.
       [delete] Deleting directory E:\opt\zimbra\db
       [delete] Deleting directory E:\opt\zimbra\store
       [delete] Deleting directory E:\opt\zimbra\index
       [delete] Deleting directory E:\opt\zimbra\redolog
       [delete] Deleting directory E:\opt\zimbra\repl
       [delete] Deleting directory E:\opt\zimbra\backup
       [delete] Deleting directory E:\opt\zimbra\lib\ext
       [delete] Deleting directory E:\opt\zimbra\conf\msgs
       [delete] E:\opt\zimbra\tomcat\logs not found.
        [mkdir] Created dir: E:\opt\zimbra\store
        [mkdir] Created dir: E:\opt\zimbra\index
        [mkdir] Created dir: E:\opt\zimbra\redolog
        [mkdir] Created dir: E:\opt\zimbra\redolog\archive
        [mkdir] Created dir: E:\opt\zimbra\repl
        [mkdir] Created dir: E:\opt\zimbra\backup
        [mkdir] Created dir: E:\opt\zimbra\db
    refresh-opt-zimbra:
         [copy] Copying 1 file to E:\opt\zimbra\conf
         [copy] Copying 1 file to E:\opt\zimbra\conf
         [copy] Copying 46 files to E:\opt\zimbra\db
         [echo] Updating localized message files
         [copy] Copying 1 file to E:\opt\zimbra\conf\msgs
         [copy] Copying 2 files to E:\opt\zimbra\conf\attrs
         [copy] Copying 1 file to E:\opt\zimbra\lib\ext
         [copy] Copying 1 file to E:\opt\zimbra\lib\jars
         [echo] Updating E:\opt\zimbra/conf/log4j.properties; if it fails on windows, try again.
         [copy] Copying 1 file to E:\opt\zimbra\conf
    quick-init:
    ldap-init:
         [copy] Copying 1 file to E:\opt\zimbra\openldap
         [copy] Copying 1 file to E:\opt\zimbra\openldap\etc\schema
         [copy] Copying 1 file to E:\opt\zimbra\openldap\etc\schema
       [delete] Deleting directory E:\opt\zimbra\openldap\var\openldap-data
        [mkdir] Created dir: E:\opt\zimbra\openldap\var\openldap-data
    localhost-ssl-cert:
       [delete] Deleting 1 files from E:\opt\zimbra\tomcat\conf
       [genkey] Generating Key for tomcat
       [genkey] Generating Key for tomcat-dsa
    tomcat-init:
    start-ldap-windows:
         [exec] OpenLDAP Directory Service wird gestartet.
         [exec] OpenLDAP Directory Service wurde erfolgreich gestartet.
    start-ldap-unix:
    start-ldap:
    ldap-load-step1:
    
    BUILD FAILED
    E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build.xml:651: Execute failed: java.io.IOException: CreateProcess: E:\opt\zimbra\openldap\ldapmodify -a -c -w zimbra -D uid=zimbra,cn=admins,cn=zimbra -x -f E:\Programme\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build/ldap-config/zimbra.ldif error=2
    
    Total time: 47 seconds

  2. #2
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default

    Oh, I just saw that it wants to access "E:\opt\zimbra\openldap\ldapmodify" but I have installed all under "E:\Programme\opt\zimbra" so the path had to be "E:\Programme\opt\zimbra\openldap\ldapmodify"

    Where can I correct this path?

  3. #3
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default

    I now reinstalled all things to e:\opt\zimbra but I still have problems.

    Code:
    start-ldap-windows:
         [exec] OpenLDAP Directory Service wird gestartet..
         [exec] OpenLDAP Directory Service konnte nicht gestartet werden.
         [exec] Ein dienstspezifischer Fehler ist aufgetreten: 19.
         [exec] Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 3547 eingeben.
         [exec] Result: 2
    start-ldap-unix:
    start-ldap:
    ldap-load-step1:
         [exec] ldap_bind: Can't contact LDAP server (-1)
    
    BUILD FAILED
    E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build.xml:651: exec returned: 1
    The german errors in the "[exec]"-lines mean:
    Code:
         [exec] OpenLDAP Directory Service is being started..
         [exec] OpenLDAP Directory Service could not be started.
         [exec] A service specific error occured: 19.
         [exec] You get more help when typing in NET HELPMSG 3547.
         [exec] Result: 2
    Does anyone know how to fix this error? I can't even start the OpenLDAP service from the Windows service manager, I also get the code 19 error.

    The hints in this thread didn't help.

    Please help me,
    goetzi

  4. #4
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Running on WinXP right? Do you have ANT installed with Eclipse? Seems it doesn't see the ANT tasks.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  5. #5
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default

    Quote Originally Posted by KevinH
    Running on WinXP right?
    Yes

    Do you have ANT installed with Eclipse? Seems it doesn't see the ANT tasks.
    Since I can switch to the ANT view and start the reset-the-world ant task I think I have it installed.

  6. #6
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default

    It's very strange. If I re-install OpenLDAP I can start the service in the windows service manager.
    If I run the ant script then, this error appears. And after launching the ant script it's not possible to start the service from the services snap-in.

    I am using openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe

    What can it be?
    Here is the whole log of the build process:
    Code:
    Buildfile: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build.xml
    clean:
       [delete] Deleting directory E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build
    build-init:
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\classes
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\bin
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\libexec
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\conf
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\conf\msgs
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib\jars
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib\ext
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\tomcat\webapps
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\tomcat\conf
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\tomcat\common\lib
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\openldap
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\openldap\etc\openldap
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\openldap\etc\openldap\schema
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\generated\src\java
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\zimlets
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\wiki
    compile:
        [javac] Compiling 1136 source files to E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\classes
        [javac] Note: * uses or overrides 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.
         [echo] Hostname: goetzi
    set-buildinfo-vars:
         [echo] Version: 3.2
    generate-buildinfo:
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\buildinfo
        [javac] Compiling 1 source file to E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\classes
    set-buildinfo-vars:
         [echo] Version: 3.2
    generate-ldap-config:
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
         [java] [] WARN: while loading attrs, ignoring not .xml file: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\conf\attrs\CVS
         [java] [] WARN: while loading attrs, ignoring not .xml file: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\conf\attrs\CVS
         [java] [] WARN: while loading attrs, ignoring not .xml file: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\conf\attrs\CVS
         [copy] Copying 1 file to E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
         [copy] Copying 1 file to E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
         [copy] Copying 1 file to E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\ldap-config
        [mkdir] Created dir: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\conf\attrs
         [copy] Copying 2 files to E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\conf\attrs
    jar:
          [jar] Building jar: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\dist\lib\jars\zimbrastore.jar
    stop-tomcat-windows:
         [exec] Apache Tomcat ist nicht gestartet.
         [exec] Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 3521 eingeben.
         [exec] Result: 2
         [echo] Waiting for tomcat to stop
    stop-tomcat-unix:
    stop-tomcat:
    stop-ldap-windows:
         [exec] OpenLDAP Directory Service ist nicht gestartet.
         [exec] Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 3521 eingeben.
         [exec] Result: 2
    stop-ldap-unix:
    stop-ldap:
    stop-servers:
    db-init:
          [sql] Executing file: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\src\db\dropdb.sql
          [sql] 101 of 101 SQL statements executed successfully
          [sql] Executing file: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\src\db\db.sql
          [sql] 22 of 22 SQL statements executed successfully
          [sql] Executing file: E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build\versions-init.sql
          [sql] 3 of 3 SQL statements executed successfully
    dir-init:
         [echo] If the following deletes fail, wait for your tomcat
         [echo] to stop (or stop your tomcat as the case may be)
         [echo] and try again later.
       [delete] Deleting directory E:\opt\zimbra\db
       [delete] Deleting directory E:\opt\zimbra\store
       [delete] Deleting directory E:\opt\zimbra\index
       [delete] Deleting directory E:\opt\zimbra\redolog
       [delete] Deleting directory E:\opt\zimbra\repl
       [delete] Deleting directory E:\opt\zimbra\backup
       [delete] Deleting directory E:\opt\zimbra\lib\ext
       [delete] Deleting directory E:\opt\zimbra\conf\msgs
        [mkdir] Created dir: E:\opt\zimbra\store
        [mkdir] Created dir: E:\opt\zimbra\index
        [mkdir] Created dir: E:\opt\zimbra\redolog
        [mkdir] Created dir: E:\opt\zimbra\redolog\archive
        [mkdir] Created dir: E:\opt\zimbra\repl
        [mkdir] Created dir: E:\opt\zimbra\backup
        [mkdir] Created dir: E:\opt\zimbra\db
    refresh-opt-zimbra:
         [copy] Copying 1 file to E:\opt\zimbra\conf
         [copy] Copying 1 file to E:\opt\zimbra\conf
         [copy] Copying 46 files to E:\opt\zimbra\db
         [echo] Updating localized message files
         [copy] Copying 1 file to E:\opt\zimbra\conf\msgs
         [copy] Copying 2 files to E:\opt\zimbra\conf\attrs
         [copy] Copying 1 file to E:\opt\zimbra\lib\ext
         [copy] Copying 1 file to E:\opt\zimbra\lib\jars
         [echo] Updating E:\opt\zimbra/conf/log4j.properties; if it fails on windows, try again.
         [copy] Copying 1 file to E:\opt\zimbra\conf
    quick-init:
    ldap-init:
         [copy] Copying 1 file to E:\opt\zimbra\openldap
         [copy] Copying 1 file to E:\opt\zimbra\openldap\etc\schema
         [copy] Copying 1 file to E:\opt\zimbra\openldap\etc\schema
        [mkdir] Created dir: E:\opt\zimbra\openldap\var\openldap-data
    localhost-ssl-cert:
       [delete] Deleting 1 files from E:\opt\zimbra\tomcat\conf
       [genkey] Generating Key for tomcat
       [genkey] Generating Key for tomcat-dsa
    tomcat-init:
    start-ldap-windows:
         [exec] OpenLDAP Directory Service wird gestartet..
         [exec] OpenLDAP Directory Service konnte nicht gestartet werden.
         [exec] Ein dienstspezifischer Fehler ist aufgetreten: 19.
         [exec] Sie erhalten weitere Hilfe, wenn Sie NET HELPMSG 3547 eingeben.
         [exec] Result: 2
    start-ldap-unix:
    start-ldap:
    ldap-load-step1:
         [exec] ldap_bind: Can't contact LDAP server (-1)
    
    BUILD FAILED
    E:\opt\zimbra\tomcat\webapps\zimbra\ZimbraServer\build.xml:651: exec returned: 1
    
    Total time: 52 seconds
    goetzi

  7. #7
    Join Date
    Dec 2007
    Location
    California
    Posts
    1
    Rep Power
    7

    Lightbulb

    Hi,

    This happens when the "/zimbraServer/conf/ldap/slapd.win.conf" file does not have the right path for the schema files.

    Change the paths from "/opt/zimbra/openldap/etc/schema/" to "/opt/zimbra/openldap/schema/"

    Hope this helps !

Similar Threads

  1. QUE Failure
    By tbullock in forum Administrators
    Replies: 31
    Last Post: 07-30-2008, 01:17 PM
  2. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 03:30 PM
  3. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 10:19 AM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 12:16 PM
  5. Logger
    By jholder in forum Installation
    Replies: 24
    Last Post: 03-31-2006, 11:50 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
  •