Sei sulla pagina 1di 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==]
[mail@protected.com] [] 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.bin
q
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 <java version="1.5.0">
2 <object>
3
4

<void property="dataSource">
<string>jdbc/fnblds</string>

5
</void>
6 </object>

7 </java>

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,foundation8.5.3,phones-support-8.5.2,webdemo-8.5.3,ZimbraConnector
6) Iniciamos el servidor e instalamos el mdulo:
001 cari1:~/ZimbraConnector_0.6.02# cd /opt/Funambol
002 cari1:/opt/Funambol# bin/funambol start
003 cari1:/opt/Funambol# bin/install-modules
[echo] Funambol Data Synchronization Server will be installed
004
on the Tomcat 6.0.x application server
005

[echo] Undeploying funambol...


[echo] Pre installation for modules content-provider006 8.5.3,email-connector-8.5.3,foundation-8.5.3,phones-support8.5.2,webdemo-8.5.3,ZimbraConnector
007

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


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

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


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

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


[echo] foundation-8.5.3 pre-installation successfully
012
completed
013

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


[echo] phones-support-8.5.2 pre-installation successfully
014
completed
015
016

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


[echo] webdemo-8.5.3 pre-installation successfully completed

017

[echo] ZimbraConnector pre-installation...


[echo] ZimbraConnector pre-installation successfully
018
completed
019
020

[echo] Copying configuration files

021
[echo] Post installation for modules content-provider022 8.5.3,email-connector-8.5.3,foundation-8.5.3,phones-support8.5.2,webdemo-8.5.3,ZimbraConnector
023
024

[echo] has.install: true


[echo] Starting custom installation...

[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)
025

027
028

[echo] Content Provider installation successfully completed


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

029

[echo] Database installation for module content-provider-8.5.3


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

030
[iterate] The
program can now
[iterate] the
032
8.5.3 (if any is
031

Funambol Data Synchronization Server installation


create
database required by the module content-providerneeded).

[iterate] You can skip this step if you have already a valid
database created
034
[iterate] or the module does not require a database.
033

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]
040 y

(y,n)

[echo] content-provider-8.5.3 installation successfully


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

043
044
045

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


[echo] Deploying deploy.wsdd...
[echo] Database installation for module email-connector-8.5.3
on hypersonic (/opt/Funambol/ds-server)

046
[iterate] The
program can now
[iterate] the
048
8.5.3 (if any is
047

Funambol Data Synchronization Server installation


create
database required by the module email-connectorneeded).

[iterate] You can skip this step if you have already a valid
database created
050
[iterate] or the module does not require a database.
049

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]
056 y

(y,n)

[echo] email-connector-8.5.3 installation successfully


completed
058
[echo] has.install: true
057

059
060

[echo] Starting custom installation...


[echo] Foundation Installation

061
062

[echo] Foundation installation successfully completed


[echo] foundation-8.5.3 installation...

063

[echo] Database installation for module foundation-8.5.3 on


hypersonic (/opt/Funambol/ds-server)

064

[iterate] The Funambol Data Synchronization Server installation


program can now create
[iterate] the database required by the module foundation-8.5.3
066
(if any is needed).
065

[iterate] You can skip this step if you have already a valid
database created
068
[iterate] or the module does not require a database.
067

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]
074 y
075
076

(y,n)

[echo] foundation-8.5.3 installation successfully completed


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

077

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


[echo] Database installation for module phones-support-8.5.2
078
on hypersonic (/opt/Funambol/ds-server)
079
080

[iterate] The Funambol Data Synchronization Server installation


program can now create

[iterate] the database required by the module phones-support8.5.2 (if any is needed).
[iterate] You can skip this step if you have already a valid
082
database created
081

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
088

[iterate] Do you want to recreate the database?


[iterate]
(y,n)

089 y
090
091
092

[echo] phones-support-8.5.2 installation successfully


completed
[echo] has.install: true
[echo] Starting custom installation...

[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)
093

095
096
097

[echo] Web Demo Client installation successfully completed


[echo] webdemo-8.5.3 installation...
[echo] Database installation for module webdemo-8.5.3 on
hypersonic (/opt/Funambol/ds-server)

098
[iterate] The Funambol Data Synchronization Server installation
program can now create
[iterate] the database required by the module webdemo-8.5.3 (if
100
any is needed).
099

[iterate] You can skip this step if you have already a valid
database created
102
[iterate] or the module does not require a database.
101

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]
108 y
109
110

(y,n)

[echo] webdemo-8.5.3 installation successfully completed


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

111

[echo] ZimbraConnector installation...


[echo] Database installation for module ZimbraConnector on
112
hypersonic (/opt/Funambol/ds-server)
113
114

[iterate] The Funambol Data Synchronization Server installation


program can now create

[iterate] the database required by the module ZimbraConnector


(if any is needed).
[iterate] You can skip this step if you have already a valid
116
database created
115

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
122
123 y
124

[iterate] Do you want to recreate the database?


[iterate]
(y,n)
[echo] ZimbraConnector installation successfully completed

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


which will be ignored (please use webxml attribute to war task)
126
[echo] Remove output dir
125

127
128 BUILD SUCCESSFUL
129 Total time: 1 minute 22 seconds

7) Ahora tenemos que activar el mdulo ZimbraConnector.


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

Reemplazan las siguientes lneas en el archivo


/opt/Funambol/tools/hypersonic/data/funambol.script:
INSERT INTO FNBL_SYNC_SOURCE
01 VALUES('briefcase','foundation/foundation/fsfoundation/BriefcaseSource.xml','briefcase','fs-foundation')

INSERT INTO FNBL_SYNC_SOURCE


02 VALUES('cal','foundation/foundation/calendarfoundation/VCalendarSource.xml','cal','calendar-foundation')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('card','foundation/foundation/contact3
foundation/VCardSource.xml','card','contact-foundation')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('configuration','foundation/foundation/configuration/configur
4
ation.xml','configuration','config-foundation')
INSERT INTO FNBL_SYNC_SOURCE
05 VALUES('event','foundation/foundation/calendarfoundation/VEventSource.xml','event','calendar-foundation')
INSERT INTO FNBL_SYNC_SOURCE VALUES('mail','email/email/email06
ss/mail.xml','mail','email-ss')
INSERT INTO FNBL_SYNC_SOURCE
07 VALUES('note','foundation/foundation/notefoundation/PlainTextNoteSource.xml','note','note-foundation')
INSERT INTO FNBL_SYNC_SOURCE
08 VALUES('scal','foundation/foundation/calendarfoundation/SIFEventSource.xml','scal','calendar-foundation')
INSERT INTO FNBL_SYNC_SOURCE
09 VALUES('scard','foundation/foundation/contactfoundation/SIFContactSource.xml','scard','contact-foundation')
INSERT INTO FNBL_SYNC_SOURCE
10 VALUES('snote','foundation/foundation/notefoundation/SIFNoteSource.xml','snote','note-foundation')
INSERT INTO FNBL_SYNC_SOURCE
11 VALUES('stask','foundation/foundation/calendarfoundation/SIFTaskSource.xml','stask','calendar-foundation')
INSERT INTO FNBL_SYNC_SOURCE
12 VALUES('task','foundation/foundation/calendarfoundation/VTodoSource.xml','task','calendar-foundation')

por estas otras:


INSERT INTO FNBL_SYNC_SOURCE
01 VALUES('briefcase','foundation/foundation/fsfoundation/BriefcaseSource.xml','briefcase','fs-foundation')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('cal','zimbra/zimbra/calendarSyncSource/cal.xml','cal','cale
2
ndarSyncSource')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('card','zimbra/zimbra/contactSyncSource/card.xml','card','co
3
ntactSyncSource')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('configuration','foundation/foundation/configuration/configur
4
ation.xml','configuration','config-foundation')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('event','zimbra/zimbra/calendarSyncSource/event.xml','event',
5
'calendarSyncSource')
0 INSERT INTO FNBL_SYNC_SOURCE VALUES('mail','email/email/email6 ss/mail.xml','mail','email-ss')
INSERT INTO FNBL_SYNC_SOURCE
07 VALUES('note','foundation/foundation/notefoundation/PlainTextNoteSource.xml','note','note-foundation')

INSERT INTO FNBL_SYNC_SOURCE


0
VALUES('scal','zimbra/zimbra/calendarSyncSource/scal.xml','scal','ca
8
lendarSyncSource')
INSERT INTO FNBL_SYNC_SOURCE
0
VALUES('scard','zimbra/zimbra/contactSyncSource/scard.xml','scard','
9
contactSyncSource')
INSERT INTO FNBL_SYNC_SOURCE
1
VALUES('snote','foundation/foundation/note0
foundation/SIFNoteSource.xml','snote','note-foundation')
INSERT INTO FNBL_SYNC_SOURCE
1
VALUES('stask','zimbra/zimbra/calendarSyncSource/stask.xml','stask',
1
'calendarSyncSource')
INSERT INTO FNBL_SYNC_SOURCE
1
VALUES('tast','zimbra/zimbra/calendarSyncSource/tast.xml','tast','c
2
alendarSyncSource')
INSERT INTO FNBL_SYNC_SOURCE
1
VALUES('zimbraGalContacts','zimbra/zimbra/galContactSyncSource/zimbr
3
aGalContacts.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:
1 cari1:/opt/Funambol# bin/funambol start
1 En el iPhone, ipad o lo que sean ponen de url:
1 http://host.com:8080/funambol/ds
2 usuario: el correo
3 clave: la clave del correo

Potrebbero piacerti anche