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 07-08-2006, 03:31 AM
Project Contributor
 
Posts: 223
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
Reply With Quote
  #2 (permalink)  
Old 07-08-2006, 03:36 AM
Project Contributor
 
Posts: 223
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?
Reply With Quote
  #3 (permalink)  
Old 07-08-2006, 10:07 AM
Project Contributor
 
Posts: 223
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
Reply With Quote
  #4 (permalink)  
Old 07-10-2006, 01:09 PM
Zimbra Employee
 
Posts: 4,792
Default

Running on WinXP right? Do you have ANT installed with Eclipse? Seems it doesn't see the ANT tasks.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #5 (permalink)  
Old 07-10-2006, 01:19 PM
Project Contributor
 
Posts: 223
Default

Quote:
Originally Posted by KevinH
Running on WinXP right?
Yes

Quote:
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.
Reply With Quote
  #6 (permalink)  
Old 07-10-2006, 04:07 PM
Project Contributor
 
Posts: 223
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
Reply With Quote
  #7 (permalink)  
Old 01-02-2008, 03:17 PM
Starter Member
 
Posts: 1
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 !
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.