HomePage
WikiBlog
RecentChanges
LikePages
BackLinks
FindPage

Blog entries

2010-02-16: RSS-Feeds für ricardo.ch-Suchergebnisse

2010-02-15_spam: Disabling public editing

2010-02-15: Show Processes waiting for I/O in Linux

2010-02-13: Sony Vaio P in der Schweiz...

2009-06-17: Wie man plötzlich zum Mörder wird (weil's einfach besser 'rüberkommt!)

2008-05-18: Recreating SSL keys for stunnel, lighttpd and dovecot following the Debian-OpenSSL debacle

2008-02-12: Patch for aoeserver in Kernel 2.6.24

2008-02-07: Usage of open-iscsi on Linux

2008-02-05: Linux and Windows working in harmony with iSCSI

2008-01-19: Linksys PAP2 FXS Port Impedance

< September, 2010 >
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

sync 4 jweb Installation Guide

How to install Sycn4jWeb

I am glad you are interested in my project. First of all, you don't need to torture yourself with strange ANT errors - everything in the SyncML_application.tar.gz file is already compiled.

Requirements

1. You need Tomcat (http://jakarta.apache.org/tomcat/) for this to run. If you have it installed and up and running, go to the next step.

2. You need as well MySQL.

3. In MySQL, Create one database called "sync4j" and one called "sync4j_local". The schema below needs to be imported in both databases.

 DROP TABLE IF EXISTS `databases`;
 CREATE TABLE `databases` (
   `databaseid` int(11) NOT NULL auto_increment,
   `userid` int(11) NOT NULL default '0',
   `name` varchar(255) NOT NULL default ,
   `description` varchar(255) default NULL,
   `lastsync` varchar(255) NOT NULL default ,
   `nextsync` varchar(255) NOT NULL default ,
   PRIMARY KEY  (`databaseid`),
   UNIQUE KEY `name` (`name`,`userid`)
 ) TYPE=MyISAM;

 DROP TABLE IF EXISTS `mapping`;
 CREATE TABLE `mapping` (
   `localid` int(11) NOT NULL default '0',
   `databaseid` int(11) NOT NULL default '0',
   `remoteid` varchar(255) NOT NULL default ,
   PRIMARY KEY  (`localid`)
 ) TYPE=MyISAM;

 DROP TABLE IF EXISTS `storage`;
 CREATE TABLE `storage` (
   `localid` int(11) NOT NULL auto_increment,
   `databaseid` int(11) NOT NULL default '0',
   `value` text NOT NULL,
   `dirty` tinyint(4) default '1',
   `deleted` tinyint(4) NOT NULL default '0',
   PRIMARY KEY  (`localid`)
 ) TYPE=MyISAM;

 DROP TABLE IF EXISTS `user`;
 CREATE TABLE `user` (
   `userid` int(11) NOT NULL auto_increment,
   `username` varchar(255) NOT NULL default ,
   `password` varchar(255) NOT NULL default ,
   `description` varchar(255) NOT NULL default '',
   PRIMARY KEY  (`userid`)
 ) TYPE=MyISAM;

4. Include these settings in your Tomcat /conf/catalina.policy file and replace {path_to_your_sync4jweb_installation} with the actual path (no curly braces :):

 grant codeBase "file:${catalina.home}/webapps/syncml/-" {
   permission java.security.AllPermission;
 };
 grant codeBase "file:${catalina.home}/webapps/sync4jweb/-" {
   permission java.security.AllPermission;
 };
 grant codeBase "file:{path_to_your_sync4jweb_installation}/sync4jweb/build/-" {
  permission java.security.AllPermission;
 };

5. The file preferences.properties may need some tweaking now (database usernames, passwords etc.). Adapt where you see that the default settings are wrong.

Installation

Installation of Sync4j Server

The Sync4j server is located in the tar.gz file at /sync4j/output/. Copy the contained folder "WEB-INF" to your "syncml" folder (which you have to create beforehand in the tomcat webapps folder). Restart Tomcat.

Installation of Sync4jweb Servlet

In the folder "sync4jweb", run the following command. It will install the sync4jweb servlet into tomcat. No need to restart Tomcat.

 $ ant install

Testing the installation

Sync4j Server

Sync4j server is located per default at http://localhost:8180/syncml/syncWBXML - load this page in your browser, you will only get the following message (which is perfectly normal). This message tells you that the Sync4j WBXML Server is running.

 sync4j WBXML

 This is the sync4j SyncML WBXML implemenation.
 Use a SyncML client to sync with this address.
 Learn more about sync4j at sync4j.sourceforge.net.
 More about SyncML in general: www.syncml.org

Sync4jWeb Servlet

Load http://localhost:8180/sync4jweb/sync4jweb in your browser - you should get the sync4jweb welcome page:

 Welcome to Sync4jWeb!

 This application lets you manage your personal
 contacts and calendar items. It is based on Sync4j,
 an open source SyncML implementation, on an
 improved kXML WBXML parser and on the servlet
 engine Tomcat.

Last edited on 16.03.2004 9:53.


View Source | PageHistory | Diff | PageInfo

© Copyright 2004 - 2006 Nicola Fankhauser. All Rights Reserved.