[Attempto] A RESTful api for AceWiki
Kaarel Kaljurand
kaljurand at gmail.com
Fri Dec 9 17:47:40 CET 2011
Hi,
On Fri, Dec 9, 2011 at 11:57, Changyuan Yu <reivzy at gmail.com> wrote:
> On Thu, Dec 8, 2011 at 10:16 PM, Kaarel Kaljurand <kaljurand at gmail.com> wrote:
>>
>> Can you post some instructions on how to best launch the apache-karaf?
> Apache-karaf is very easy to use, for both Linux and Windows(I only
> test under cygwin for win32).
> 1. Download apache-karaf.
> Goto http://karaf.apache.org/index/community/download.html ,
> download binary distribution of apache-karaf, as I can not access to
> window machine now, I assume the later step are all under Linux
> environment.
> 2. Unpack
> Use tar to unpack apache-karaf-2.2.4.tar.gz, after unpack, a
> directory "apache-karaf-2.2.4" will be created. In following commands,
> I will refer this directory as $KARAF
> 3. Run karaf
> The most easiest way to run karaf is run command "$KARAF/bin/karaf",
> then you will see below message:
> __ __ ____
> / //_/____ __________ _/ __/
> / ,< / __ `/ ___/ __ `/ /_
> / /| |/ /_/ / / / /_/ / __/
> /_/ |_|\__,_/_/ \__,_/_/
>
> Apache Karaf (2.2.4)
>
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.
>
> karaf at root>
>
> 4. Install war feature
> Run command "features:install war" under karaf shell (NOTE: not
> regular shell), and wait some minutes for download and install finish.
> Now you can using "list" command under karaf shell to see many bundles
> with name "jetty" are active. And "curl localhost:8181" will get a 404
> error (you should open another terminal and not shutdown karaf).
>
> 5. Deploy acewiki.war
> Just copy acewiki.war to $KARAF/deploy. After a while, you will see
> a lot of warning in karaf shell, which because some files are not
> exist, and also some message like "get backend
> ch.uzh.ifi.attempto.acewiki.api.Backend at 7f5c693a". And run "list"
> command line in karaf shell now, you will see "AceWiki" is active.
>
> 6. Test servlet
> Open "http://localhost:8181/acewiki/acewiki/" in browser of run
> "curl localhost:8181/acewiki/api/" in linux shell to test the new
> deployed servlet.
Thanks for the detailed instructions. I could successfully run the API
calls now on my Ubuntu 11.04 laptop.
Best regards,
Kaarel
More information about the attempto
mailing list