Steps for installing Lookup Service
- download packege from http://wiki.perfsonar.net/images/files/perfSONAR-XML-LS-1.1-RC4.tar.gz
mak@aegir $ java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
mak@aegir $ ant -version
Apache Ant version 1.6.5 compiled on June 2 2005
mak@aegir $ echo $JAVA_HOME
/jdkmak@aegir $ tar -zxf perfSONAR-XML-LS-1.1-RC4.tar.gz
mak@aegir $ ln -s perfSONAR-XML-LS-1.1-RC4 lookupmak@aegir $ cd lookup/perfsonar/ant/mak@aegir $ ant -f build-xmlls.xml pre-install
Buildfile: build-xmlls.xml
Overriding previous definition of reference to classpath
show-info:
[echo] Pre-install
[echo] ---- Welcome in perfSONAR LookupService installation script ----
[echo] You're about to install LookupService that may be also called LS during the installation process. The installation guide is accessible on http://wiki.perfsonar.net/jra1-wiki/index.php/Installation_LS_1.1#Lookup_service_installation web page
[echo] Requirements:
[echo] 1. Java 1.5.x
[echo] 2. Ant 1.6.x (we're sure you've already got it installed as you run the installation process)
[echo] 3. eXist DB XML - see Exist DB Installation Guide for LS:
[echo] http://wiki.perfsonar.net/jra1-wiki/index.php/Exist_DB_Installation_Guide_for_LS
[echo] 4. JAVA_HOME environment variable set to your Java directory
[input] Do you want to proceed? Just press ENTER to continue. Otherwise CTRL-C stops the process immediately
[echo] Preparing the installation of XML Lookup Service...
[echo] Answer to all questions. If you go wrong, cancel (ctrl-c) and start again.
get-inputs:
[input] Do you want to install Tomcat webserver?(y,n)
y
[input] Enter webserver home directory [/usr/local/tomcat_ls]
/usr/tomcat_ls
[input] Temporary directory [/tmp]?
[input] Enter webserver hostname (please type your host and domain name - not localhost)
aegir
[input] Enter webserver port [8080]
[input] Enter service directory (where to be installed) [/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar]
[input] Enter service deployment name [LookupService]
confirm-inputs:
[echo] ---------------------------------------------------------------
[echo] Your settings:
[echo] ---------------------------------------------------------------
[echo] Tomcat home directory [/usr/tomcat_ls]
[echo] Service address [http://aegir:8080/LookupService]
[input] Proceed with these settings? (y,n)
y
get-tomcat:
[echo] Download Tomcat
[get] Getting: http://monstera.man.poznan.pl/private/bak/apache-tomcat-5.5.20.tar.gz
[get] To: /tmp/apache-tomcat-5.5.20.tar.gz
[get] ...................................................
[get] ...............
[get] last modified = Thu Sep 28 07:01:58 PDT 2006
[echo] Unpacking Tomcat
[untar] Expanding: /tmp/apache-tomcat-5.5.20.tar.gz into /tmp
[delete] Deleting: /tmp/apache-tomcat-5.5.20.tar.gz
[move] Moving 832 files to /usr
[move] Moved 174 empty directories to 9 empty directories under /usr
[chmod] Applied chmod to 7 files and 0 directories.
copy-const-properties:
[echo] Create ANT configuration file [/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/ant/const.properties]
[copy] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/ant
pre-install:
BUILD SUCCESSFUL
Total time: 52 seconds
mak@aegir $ ant \-f build-xmlls.xml configure
Buildfile: build-xmlls.xml
Overriding previous definition of reference to classpath
load-const-properties:
configure-ask-for-values:
\[echo\] \--------------------------------------------------------------\-
\[echo\] Enter your settings. Set at least \[base path\] and \[host name\],
\[echo\] other may remain default (default values may be accepted just
\[echo\] by pressing ENTER)
\[echo\] \--------------------------------------------------------------\-
\[echo\] 1. Service configuration
\[echo\] ==========================
\[input\] Enter log configuration file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf/log4j.properties\]
\[input\] Enter logs directory \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/log\]
\[input\] Enter path for parser configuration file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf/objects.config\]
\[echo\] 2. Lookup Information configuration
\[echo\] =====================================
\[input\] Lookup Information of service \-\- access point (URL) \[http://aegir:8080/LookupService\]
\[input\] Lookup Information of service \-\- service name \[Test Lookup Service\]
\[input\] Lookup Information of service \-\- service type \[LS\]
\[input\] Lookup Information of service \-\- service description \[Test Lookup Service, perfSONAR\]
\[echo\] 3. LS Storage
\[echo\] =====================================
\[input\] LS Storage \-\- XML database type (preferred one is HTTP, because it's much faster)(http,xmlrpc)
http
\[input\] LS Storage \-\- XML database collection \[http://localhost:8680/exist/rest/db/ls\]
\[input\] LS Storage \-\- XML database username \[lookupservice\]
\[input\] LS Storage \-\- XML database password \[sonar\]
\[echo\] 4. LS Cleanup
\[echo\] =====================================
\[input\] LS Cleanup \-\- enable LS Cleanup (removing old entries when TTL exceeded)?(y,n)
y
\[input\] LS Cleanup \-\- cleanup interval: how often to search old entries in DB \[300\] (seconds)
\[input\] LS Cleanup \-\- TTL of lookup information \[3600\] (seconds)
configure-show-values:
\[echo\] \--------------------------------------------------------------\-
\[echo\] Your settings:
\[echo\] \--------------------------------------------------------------\-
\[echo\] \[ \] Tomcat directory \[/usr/tomcat_ls\]
\[echo\] \[ \] Service address \[http://aegir:8080/LookupService\]
\[echo\] \[ \] Target path for the application \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar\]
\[echo\] - Properties dir \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf\]
\[echo\] - Log config file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf/log4j.properties
\[echo\] - Logs directory \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/log
\[echo\] - Parser config file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf/objects.config\]
\[echo\] \[ \] Lookup Information
\[echo\] - LI-access point (URL) \[http://aegir:8080/LookupService\]
\[echo\] - LI-service name \[Test Lookup Service\]
\[echo\] - LI-service type \[LS\]
\[echo\] - LI-service description \[Test Lookup Service, perfSONAR\]
\[echo\] \[ \] Lookup Storage
\[echo\] - XML database type \[http\]
\[echo\] - XML database collection \[http://localhost:8680/exist/rest/db/ls\]
\[echo\] - XML database username \[lookupservice\]
\[echo\] - XML database password \[sonar\]
\[echo\] \[ \] LS Cleanup
\[echo\] - Cleanup interval \[300\] seconds
\[echo\] - Cleanup TTL \[3600\] seconds
\[echo\] \--------------------------------------------------------------\-
configure-confirm-values:
\[input\] Proceed with these settings? (y,n)
y
copy-components-properties:
\[echo\] Create COMPONENTS configuration file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/conf/components.properties\]
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/conf
copy-service-properties:
\[echo\] Create SERVICE configuration file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/conf/service.properties\]
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/conf
copy-log4j-properties:
\[echo\] Create log4j configuration file \[/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/conf/log4j.properties\]
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/conf
configure:
BUILD SUCCESSFUL
Total time: 54 seconds
mak@aegir $ ant \-f build-xmlls.xml deploy
Buildfile: build-xmlls.xml
Overriding previous definition of reference to classpath
does-jar-generic-exist:
copy-generic-jar:
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
create-deploy-root:
\[mkdir\] Created dir: /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/wsdd
\[mkdir\] Created dir: /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/logs
\[mkdir\] Created dir: /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes
\[mkdir\] Created dir: /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar
\[mkdir\] Created dir: /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf
copy-axis-for-service:
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/classes/perfsonar/conf
copy-jars-for-service:
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
copy-jars-for-xmlls:
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/wsdd
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/wsdd
does-jar-xmlls-exist:
copy-xmlls-jar:
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/lib
copy-other-files:
\[mkdir\] Created dir: /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/log
add-context-listener:
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF
\[style\] Processing /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/web.xml to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF/web.xml.out
\[style\] Loading stylesheet /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/ant/add-context-listener.xsl
\[copy\] Copying 1 file to /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/WEB-INF
deploy:
\[echo\] Deploying the service...
Overriding previous definition of reference to classpath
tomcat-start-question:
\[input\] Do you want me to start the application server Tomcat for you? (y,n)y
tomcat-start-for-xmlls-true:
\[echo\] Please, insert now the following xml tag 'Context'
\[echo\] into Tomcat configuration file server.xml
\[echo\] (/usr/tomcat_ls/conf/server.xml)
\[echo\] inside existing xml tag 'Host':
\[echo\] (You may copy XML part (without \[echo\]):
\[echo\] <Context path='/LookupService' docBase='/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService'> </Context>
\[echo\] Please, do it now. I will wait for you.
\[input\] Press Return key ...
\[echo\] Execute: sh /usr/tomcat_ls/bin/startup.sh
\[echo\] Please, make sure that the Tomcat is running. Use the address [http://aegir:8080] .
\[input\] Press Return key ...
tomcat-start-for-xmlls-false:
tomcat-start-for-xmlls:
Overriding previous definition of reference to classpath
\_deploy-adminclient:
\[echo\] The directory with all required service files has been created.
\[echo\] The next step in deploy action is installing the service in Tomcat.
\[echo\] (If you are an expert in Axis and want to install the service other way
\[echo\] than default one use ctrl+c to stop the script in this moment)
\[input\] Press Enter
deploy-adminclient:
\[java\] Processing file /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/wsdd/ls-service-deploy.wsdd
\[java\] Exception: AxisFault
\[java\] faultCode:
\{http://xml.apache.org/axis/\}
HTTP
\[java\] faultSubcode:
\[java\] faultString: (404)/LookupService/services/AdminService
\[java\] faultActor:
\[java\] faultNode:
\[java\] faultDetail:
\[java\] {}:return code: 404
\[java\] <html><head><title>Apache Tomcat/5.5.20 - Error report</title><style><\!\--H1-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
- -
-H2-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
- -
-H3-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
- -
-BODY-
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
- -
-B-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
- -
-P-
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
- -
-A-
{color : black;}
- -
-A.name-
{color : black;}
- -
-HR-
{color : #525D76;}
- -\-></style> </head><body><h1>HTTP Status 404 - /LookupService/services/AdminService</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/LookupService/services/AdminService</u></p><p><b>description</b> <u>The requested resource (/LookupService/services/AdminService) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.20</h3></body></html>
\[java\]
{http://xml.apache.org/axis/}
HttpErrorCode:404