Karaf

last modified on Apr 07, 2016

tgsearch deployment

karaf may be used to deploy tgsearch. Here is a quick sequence how to get karaf ready and tgsearch running inside.

$ wget http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.apache.org/dist//karaf/2.2.9/apache-karaf-2.2.9.tar.gz
$ tar -zxvf apache-karaf-2.2.9.tar.gz
$ cd apache-karaf-2.2.9
$ mv etc/jre.properties.cxf etc/jre.properties

add the following lines to etc/org.ops4j.pax.url.mvn.cfg

http://repository.bibforge.org/archiva/repository/snapshots@snapshots, \
http://repository.bibforge.org/archiva/repository/internal

add config for tgsearch in etc/info.textgrid.middleware.tgsearch.public.cfg

wget https://develop.sub.uni-goettingen.de/repos/textgrid/trunk/middleware/tgsearch/tgsearch-service-public/info.textgrid.middleware.tgsearch.public.cfg \
 -O etc/info.textgrid.middleware.tgsearch.public.cfg

start karaf:

$ bin/karaf

in karaf console add feature repo for tgsearch

$ features:addurl mvn:info.textgrid.middleware/tgsearch-karaf-feature/2.1.1-SNAPSHOT/xml/features

install tgsearch-public

$ features:install tgsearch-public

now tgsearch should be up and running on http://localhost:8181/cxf/tgsearch-public/

Useful Commands

list cxf endpoints:

$ cxf:list-endpoints