zimbra fun 8

Upload: calibeach2010

Post on 13-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/26/2019 Zimbra Fun 8

    1/7

    Zimbra + Funambol 8.5 sin entorno grfico

    Bueno gente, mi anterior instalacin de funambol (versin 7.X) empez a dar error con

    las modificaciones que se le hizo a la aplicacin del iPhone, por si les sirve el error es

    este:

    .

    [2010-07-21 10:57:51,512] [funambol.transport.http] [ERROR]

    [B190EF60990A956046CB72100C6ABD24] [iph-eTBQtRwEWFu5pP/LHOdmgQ==]

    [[email protected]] [] Error processing the request

    java.lang.ArrayIndexOutOfBoundsException: 8192

    at org.xmlpull.mxp1.MXParser.parseCDSect(MXParser.java:2869)

    at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1189)

    at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100)

    ..

    As que voy a aprovechar para hacerles un howto de como instalar esto, espero les sirva.

    1) descargamos el Zimbra connector y el funambol.

    wget http://download.forge.objectweb.org/sync4j/funambol-8.5.2-x64.bin

    wget

    http://ufpr.dl.sourceforge.net/project/zimbrafunambol/zimbrafunambol/ZimbraConnecto

    r_0.6.02/ZimbraConnector_0.6.02.zip

    2) instalamos Funambol:

    chmod +x funambol-8.5.2-x64.bin

    ./funambol-8.5.2-x64.binq

    yes -> para aceptar la licencia.

    [enter] -> para que se instale en el /opt/

    no -> para no iniciar el servidor

    3) copiamos el ZimbraConnector

    unzip ZimbraConnector_0.6.02.zip

    cd ZimbraConnector_0.6.02

    cp output/ZimbraConnector.s4j /opt/Funambol/ds-server/modules/

    4) creamos el archivo de configuracin:

    mkdir -p /opt/Funambol/ds-server/config/connector/

    y creamos este archivo llamado ZimbraConnector.xml

    1

    2

    3

    4 jdbc/fnblds

    5 6

  • 7/26/2019 Zimbra Fun 8

    2/7

    7

    5) Editamos el archivo /opt/Funambol/ds-server/install.properties y agregamos a la lnea

    72 ,ZimbraConnector al final, la lnea entera les debera quedar algo as:

    modules-to-install=content-provider-8.5.3,email-connector-8.5.3,foundation-8.5.3,phones-support-8.5.2,webdemo-8.5.3,ZimbraConnector

    6) Iniciamos el servidor e instalamos el mdulo:

    001cari1:~/ZimbraConnector_0.6.02# cd /opt/Funambol

    002cari1:/opt/Funambol# bin/funambol start

    003cari1:/opt/Funambol# bin/install-modules

    004[echo] Funambol Data Synchronization Server will be installed

    on the Tomcat 6.0.x application server

    005 [echo] Undeploying funambol...

    006[echo] Pre installation formodules content-provider-

    8.5.3,email-connector-8.5.3,foundation-8.5.3,phones-support-8.5.2,webdemo-8.5.3,ZimbraConnector

    007 [echo] content-provider-8.5.3 pre-installation...

    008[echo] content-provider-8.5.3 pre-installation successfully

    completed

    009 [echo] email-connector-8.5.3 pre-installation...

    010[echo] email-connector-8.5.3 pre-installation successfully

    completed

    011 [echo] foundation-8.5.3 pre-installation...

    012 [echo] foundation-8.5.3 pre-installation successfullycompleted

    013 [echo] phones-support-8.5.2 pre-installation...

    014[echo] phones-support-8.5.2 pre-installation successfully

    completed

    015 [echo] webdemo-8.5.3 pre-installation...

    016 [echo] webdemo-8.5.3 pre-installation successfully completed

    017 [echo] ZimbraConnector pre-installation...

    018[echo] ZimbraConnector pre-installation successfully

    completed

    019

    020 [echo] Copying configuration files

    021

    022[echo] Post installation formodules content-provider-

    8.5.3,email-connector-8.5.3,foundation-8.5.3,phones-support-8.5.2,webdemo-8.5.3,ZimbraConnector

    023 [echo] has.install: true

    024 [echo] Starting custom installation...

    025[echo] Install Funambol Content Provider on Tomcat

    (/opt/Funambol/ds-server/output/content-provider-8.5.3)

    026 [echo] Funambol home: (/opt/Funambol/ds-server)

    027 [echo] Content Provider installation successfully completed028 [echo] content-provider-8.5.3 installation...

  • 7/26/2019 Zimbra Fun 8

    3/7

    029[echo] Database installation formodule content-provider-8.5.3

    on hypersonic (/opt/Funambol/ds-server)

    030

    031[iterate] The Funambol Data Synchronization Server installation

    program can now create

    032 [iterate] the database required by the module content-provider-8.5.3 (ifany is needed).

    033[iterate] You can skip this step ifyou have already a valid

    database created

    034 [iterate] or the module does not require a database.

    035

    036 [iterate] If you choose 'y'your existing data will be deleted.

    037

    038 [iterate] Do you want to recreate the database?

    039 [iterate] (y,n)

    040y

    041[echo] content-provider-8.5.3 installation successfully

    completed

    042 [echo] has.install: ${has.install}

    043 [echo] email-connector-8.5.3 installation...

    044 [echo] Deploying deploy.wsdd...

    045[echo] Database installation formodule email-connector-8.5.3

    on hypersonic (/opt/Funambol/ds-server)

    046

    047[iterate] The Funambol Data Synchronization Server installation

    program can now create

    048[iterate] the database required by the module email-connector-

    8.5.3 (ifany is needed).

    049[iterate] You can skip this step ifyou have already a valid

    database created

    050 [iterate] or the module does not require a database.

    051

    052 [iterate] If you choose 'y'your existing data will be deleted.

    053

    054 [iterate] Do you want to recreate the database?

    055 [iterate] (y,n)

    056y

    057[echo] email-connector-8.5.3 installation successfully

    completed

    058 [echo] has.install: true

    059 [echo] Starting custom installation...

    060 [echo] Foundation Installation

    061 [echo] Foundation installation successfully completed

    062 [echo] foundation-8.5.3 installation...

    063[echo] Database installation formodule foundation-8.5.3 on

    hypersonic (/opt/Funambol/ds-server)

    064

  • 7/26/2019 Zimbra Fun 8

    4/7

    065[iterate] The Funambol Data Synchronization Server installation

    program can now create

    066[iterate] the database required by the module foundation-8.5.3

    (ifany is needed).

    067[iterate] You can skip this step ifyou have already a valid

    database created

    068 [iterate] or the module does not require a database.

    069

    070 [iterate] If you choose 'y'your existing data will be deleted.

    071

    072 [iterate] Do you want to recreate the database?

    073 [iterate] (y,n)

    074y

    075 [echo] foundation-8.5.3 installation successfully completed

    076 [echo] has.install: ${has.install}

    077 [echo] phones-support-8.5.2 installation...

    078[echo] Database installation formodule phones-support-8.5.2

    on hypersonic (/opt/Funambol/ds-server)

    079

    080[iterate] The Funambol Data Synchronization Server installation

    program can now create

    081[iterate] the database required by the module phones-support-

    8.5.2 (ifany is needed).

    082[iterate] You can skip this step ifyou have already a valid

    database created

    083 [iterate] or the module does not require a database.

    084

    085 [iterate] If you choose 'y'your existing data will be deleted.

    086

    087 [iterate] Do you want to recreate the database?

    088 [iterate] (y,n)

    089y

    090[echo] phones-support-8.5.2 installation successfully

    completed

    091 [echo] has.install: true

    092 [echo] Starting custom installation...

    093[echo] Install Funambol Web Demo Client on Tomcat

    (/opt/Funambol/ds-server/output/webdemo-8.5.3)

    094 [echo] Funambol home: (/opt/Funambol/ds-server)

    095 [echo] Web Demo Client installation successfully completed

    096 [echo] webdemo-8.5.3 installation...

    097[echo] Database installation formodule webdemo-8.5.3 on

    hypersonic (/opt/Funambol/ds-server)

    098

    099[iterate] The Funambol Data Synchronization Server installation

    program can now create

    100 [iterate] the database required by the module webdemo-8.5.3 (ifany is needed).

  • 7/26/2019 Zimbra Fun 8

    5/7

    101[iterate] You can skip this step ifyou have already a valid

    database created

    102 [iterate] or the module does not require a database.

    103

    104 [iterate] If you choose 'y'your existing data will be deleted.

    105

    106 [iterate] Do you want to recreate the database?

    107 [iterate] (y,n)

    108y

    109 [echo] webdemo-8.5.3 installation successfully completed

    110 [echo] has.install: ${has.install}

    111 [echo] ZimbraConnector installation...

    112[echo] Database installation formodule ZimbraConnector on

    hypersonic (/opt/Funambol/ds-server)

    113

    114[iterate] The Funambol Data Synchronization Server installation

    program can now create

    115[iterate] the database required by the module ZimbraConnector

    (ifany is needed).

    116[iterate] You can skip this step ifyou have already a valid

    database created

    117 [iterate] or the module does not require a database.

    118

    119 [iterate] If you choose 'y'your existing data will be deleted.

    120

    121 [iterate] Do you want to recreate the database?122 [iterate] (y,n)

    123y

    124 [echo] ZimbraConnector installation successfully completed

    125[war] Warning: selected war files include a WEB-INF/web.xml

    whichwill be ignored (please use webxml attribute to war task)

    126 [echo] Remove output dir

    127

    128BUILD SUCCESSFUL

    129Total time: 1 minute 22 seconds

    7) Ahora tenemos que activar el mdulo ZimbraConnector.

    1cari1:/opt/Funambol# bin/funambol stop

    Reemplazan las siguientes lneas en el archivo

    /opt/Funambol/tools/hypersonic/data/funambol.script:

    01INSERTINTOFNBL_SYNC_SOURCEVALUES('briefcase','foundation/foundation/fs-foundation/BriefcaseSource.xml','briefcase','fs-foundation')

  • 7/26/2019 Zimbra Fun 8

    6/7

    02INSERTINTOFNBL_SYNC_SOURCEVALUES('cal','foundation/foundation/calendar-foundation/VCalendarSource.xml','cal','calendar-foundation')

    03

    INSERTINTOFNBL_SYNC_SOURCEVALUES('card','foundation/foundation/contact-foundation/VCardSource.xml','card','contact-foundation')

    04

    INSERTINTOFNBL_SYNC_SOURCEVALUES('configuration','foundation/foundation/configuration/configuration.xml','configuration','config-foundation')

    05INSERTINTOFNBL_SYNC_SOURCEVALUES('event','foundation/foundation/calendar-foundation/VEventSource.xml','event','calendar-foundation')

    06INSERTINTOFNBL_SYNC_SOURCE VALUES('mail','email/email/email-ss/mail.xml','mail','email-ss')

    07INSERTINTOFNBL_SYNC_SOURCEVALUES('note','foundation/foundation/note-foundation/PlainTextNoteSource.xml','note','note-foundation')

    08INSERTINTOFNBL_SYNC_SOURCEVALUES('scal','foundation/foundation/calendar-foundation/SIFEventSource.xml','scal','calendar-foundation')

    09INSERTINTOFNBL_SYNC_SOURCEVALUES('scard','foundation/foundation/contact-foundation/SIFContactSource.xml','scard','contact-foundation')

    10INSERTINTOFNBL_SYNC_SOURCEVALUES('snote','foundation/foundation/note-foundation/SIFNoteSource.xml','snote','note-foundation')

    11INSERTINTOFNBL_SYNC_SOURCEVALUES('stask','foundation/foundation/calendar-foundation/SIFTaskSource.xml','stask','calendar-foundation')

    12INSERTINTOFNBL_SYNC_SOURCEVALUES('task','foundation/foundation/calendar-foundation/VTodoSource.xml','task','calendar-foundation')

    por estas otras:

    01INSERTINTOFNBL_SYNC_SOURCEVALUES('briefcase','foundation/foundation/fs-foundation/BriefcaseSource.xml','briefcase','fs-foundation')

    02

    INSERTINTOFNBL_SYNC_SOURCEVALUES('cal','zimbra/zimbra/calendarSyncSource/cal.xml','cal','calendarSyncSource')

    03

    INSERTINTOFNBL_SYNC_SOURCEVALUES('card','zimbra/zimbra/contactSyncSource/card.xml','card','contactSyncSource')

    04

    INSERTINTOFNBL_SYNC_SOURCEVALUES('configuration','foundation/foundation/configuration/configuration.xml','configuration','config-foundation')

    05

    INSERTINTOFNBL_SYNC_SOURCEVALUES('event','zimbra/zimbra/calendarSyncSource/event.xml','event','calendarSyncSource')

    06

    INSERTINTOFNBL_SYNC_SOURCE VALUES('mail','email/email/email-ss/mail.xml','mail','email-ss')

    07INSERTINTOFNBL_SYNC_SOURCEVALUES('note','foundation/foundation/note-foundation/PlainTextNoteSource.xml','note','note-foundation')

  • 7/26/2019 Zimbra Fun 8

    7/7

    08

    INSERTINTOFNBL_SYNC_SOURCEVALUES('scal','zimbra/zimbra/calendarSyncSource/scal.xml','scal','calendarSyncSource')

    09

    INSERTINTOFNBL_SYNC_SOURCEVALUES('scard','zimbra/zimbra/contactSyncSource/scard.xml','scard','contactSyncSource')

    10

    INSERTINTOFNBL_SYNC_SOURCEVALUES('snote','foundation/foundation/note-foundation/SIFNoteSource.xml','snote','note-foundation')

    11

    INSERTINTOFNBL_SYNC_SOURCEVALUES('stask','zimbra/zimbra/calendarSyncSource/stask.xml','stask','calendarSyncSource')

    12

    INSERTINTOFNBL_SYNC_SOURCEVALUES('tast','zimbra/zimbra/calendarSyncSource/tast.xml','tast','calendarSyncSource')

    13

    INSERTINTOFNBL_SYNC_SOURCEVALUES('zimbraGalContacts','zimbra/zimbra/galContactSyncSource/zimbraGalContacts.xml','zimbraGalContacts','galContactSyncSource')

    y crean los siguientes archivos:

    a) /opt/Funambol/config/zimbra/zimbra/calendarSyncSource/tast.xml

    b) /opt/Funambol/config/zimbra/zimbra/calendarSyncSource/stask.xml

    c) /opt/Funambol/config/zimbra/zimbra/calendarSyncSource/cal.xml

    d) /opt/Funambol/config/zimbra/zimbra/calendarSyncSource/event.xml

    e) /opt/Funambol/config/zimbra/zimbra/calendarSyncSource/scal.xml

    f) /opt/Funambol/config/zimbra/zimbra/galContactSyncSource/zimbraGalContacts.xml

    g) /opt/Funambol/config/zimbra/zimbra/contactSyncSource/card.xml

    h) /opt/Funambol/config/zimbra/zimbra/contactSyncSource/scard.xml

    A todos estos archivos los pueden encontrar aqu:

    http://solucionesroot.com/descargas/

    Solo deben reemplazar su host en la ltima lnea.

    Iniciamos el servidor:

    1cari1:/opt/Funambol# bin/funambol start

    1En el iPhone, ipad o lo que sean ponen de url:

    1http://host.com:8080/funambol/ds

    2usuario: el correo

    3clave: la clave del correo

    http://host.com:8080/funambol/dshttp://host.com:8080/funambol/dshttp://host.com:8080/funambol/dshttp://host.com:8080/funambol/ds