OS: Mac OS X 10.6.1 (10A2047)
Kernel: Darwin 10.1.1
Download: http://www.bedework.org/bedework/update.do?artcenterkey=2
Bedework Manual v.3.6 : http://www.bedework.org/bedework/update.do?artcenterkey=22
Run /usr/libexec/java_home to get java home directory:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
export JAVA_HOME=export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
-----------
run server
-----------
Open three terminals:
(1)
cd /Users/peter/workspace/planner/server/quickstart-3.6/
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
./bw -quickstart dirstart
(2)
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
cd /Users/peter/workspace/planner/server/quickstart-3.6/
./startjboss -heap 512M
Caution: It seems we should be waiting until jboss starts exactly then start the next command 'tomcatstart'.
We can find the following information in the terminal when jboss starts exactly. it may take 1 or 2 minutes to start jboss.
09:06:41,291 INFO [TomcatDeployment] deploy, ctxPath=/bedework-common
09:06:41,428 INFO [TomcatDeployment] deploy, ctxPath=/cal
09:06:44,154 INFO [TomcatDeployment] deploy, ctxPath=/caladmin
09:06:44,690 INFO [TomcatDeployment] deploy, ctxPath=/eventsubmit
09:06:46,862 INFO [TomcatDeployment] deploy, ctxPath=/feeder
09:06:47,124 INFO [TomcatDeployment] deploy, ctxPath=/pubcaldav
09:06:47,209 INFO [TomcatDeployment] deploy, ctxPath=/soedept
09:06:47,602 INFO [TomcatDeployment] deploy, ctxPath=/ucal
09:06:49,662 INFO [TomcatDeployment] deploy, ctxPath=/ucaldav
09:06:49,867 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
09:06:49,960 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
09:06:50,007 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 2m:42s:695ms
(3)
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
cd /Users/peter/workspace/planner/server/quickstart-3.6/
./bw -quickstart tomcatstart
------------
Add user
------------
cd /Users/peter/workspace/planner/server/quickstart-3.6/
chmod +x ./bedework/build/quickstart/linux/adduser
./bedework/build/quickstart/linux/adduser test1 peter chen test1@localhost 123456
-------
test with Apple's iCal
-------
5.4 Using Bedework CalDAV with Desktop & Mobile Clients
Using Apple's iCal with Bedework
iCal -> Preferences
Select the Accounts tab, and click the "+" in the bottom left to create 2 new CalDav account.
(1) bedework default account
Type: CavDev
Name: vbede
Passwd: bedework
URL: http://localhost:8080/ucaldav/principals/users/vbede/
(2) the user we added it with adduer command
Type: CavDev
Name: test1
Passwd: 123456
URL: http://localhost:8080/ucaldav/principals/users/test1/
Caution: the last field (after users) in the URL is the user name. and the last forward slash is required.
-------------------
test with libcaldav
-------------------
pkg-config-0.23.tar.gz http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
doxygen-1.6.3.src.tar.gz ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.6.3.src.tar.gz
curl-7.20.0.tar.gz http://curl.haxx.se/download/curl-7.20.0.tar.gz
gettext-0.17.tar.gz http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
libiconv-1.13.1.tar.gz http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
automake-1.11.tar.gz http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz
libtool-2.2.6b.tar.gz http://ftp.gnu.org/gnu/libtool/libtool-2.2.6b.tar.gz
All the packages above can be installed as follow:
gzip -d -c package.tar.gz | tar x
cd package
./configure
make
sudo make install
glib-2.12.13.tar.bz2 ftp://ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/glib/2.12/glib-2.12.13.tar.bz2
tar xjf glib-2.12.13.tar.bz2
cd glib-2.12.13
./configure --with-libiconv=native --enable-iconv-cache=no
vi glib/gconvert.c comment the 48th line
make
make install
libcaldav-0.4.0.tar.gz http://nchc.dl.sourceforge.net/project/libcaldav/libcaldav/libcaldav-0.4/libcaldav-0.4.tar.gz
gzip -d -c libcaldav-0.4.0.tar.gz | tar x
cd libcaldav-0.4.0
unlink ./config.guess
unlink ./config.sub
unlink ./depcomp
unlink ./install-sh
unlink ./missing
unlink ./INSTALL
unlink ./ltmain.sh
ln -s /usr/share/libtool/config/ltmain.sh ltmain.sh
ln -s /usr/local/share/automake-1.11/INSTALL INSTALL
ln -s /usr/local/share/automake-1.11/config.guess config.guess
ln -s /usr/local/share/automake-1.11/config.sub config.sub
ln -s /usr/local/share/automake-1.11/depcomp depcomp
ln -s "/usr/local/share/automake-1.11/install-sh" "install-sh"
ln -s /usr/local/share/automake-1.11/missing missing
./configure /
--disable-doxygen-dot /
--disable-doxygen-man /
--disable-doxygen-rtf /
--disable-doxygen-xml /
--disable-doxygen-chm /
--disable-doxygen-chi /
/
--enable-doxygen-html /
--disable-doxygen-ps /
--disable-doxygen-pdf /
--enable-dependency-tracking /
--enable-caldav
cp /usr/local/bin/libtool ./
make
meet an error:
SRCDIR='.' PROJECT='libcaldav' DOCDIR='doc' VERSION='0.3.0' PERL_PATH='/usr/bin/perl' HAVE_DOT='NO' GENERATE_MAN='NO' GENERATE_RTF='NO' GENERATE_XML='NO' GENERATE_HTMLHELP='NO' GENERATE_CHI='NO' GENERATE_HTML='YES' GENERATE_LATEX='NO' /usr/local/bin/doxygen ./doxygen-api.cfg
Warning: Tag `DETAILS_AT_TOP' at line 34 of file ./doxygen-api.cfg has become obsolete.
To avoid this warning please update your configuration file using "doxygen -u"
make[2]: *** No rule to make target `doc/libcaldav.pdf', needed by `all-am'. Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ignore this error.
sudo make -C src/ install
-----------------
* test bedework
-----------------
./test/src/.libs/caldav-test -d -a "options" -u test1 -p 123456 /
-s 2010/03/01 -e 2020/03/07 /
http://localhost:8080/ucaldav/principals/users/test1/
now, actions: "is-caldav" displayname options are OK. "get" and "get-all" return "The request sent by the client was syntactically incorrect"
usage:
caldav-test [Options] URL
Options:
-a action [is-caldav|add|delete|modify|get|get-all|displayname|options]
-d debug (show request/response)
-e end [yyyy/mm/dd]
-f file. Alternative is to use IO redirection (<)
-p password
-u username
-s start [yyyy/mm/dd]
-h|-? usage
testing badework in MacBook
最新推荐文章于 2024-04-27 09:13:51 发布