Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Steps for installing Lookup Service

  1. download packege from http://wiki.perfsonar.net/images/files/perfSONAR-XML-LS-1.1-RC3RC4.tar.gzImage Added
Code Block
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

...

Panel
Wiki Markup
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\]):
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]&nbsp;&nbsp;&nbsp;&nbsp; <Context path='/LookupService' docBase='/usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService'> </Context>

&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] Please, do it now. I will wait for you.
&nbsp;&nbsp;&nbsp; \[input\] Press Return key ...

&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] Execute: sh /usr/tomcat_ls/bin/startup.sh
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] Please, make sure that the Tomcat is running. Use the address [http://aegir:8080] .
&nbsp;&nbsp;&nbsp; \[input\] Press Return key ...


tomcat-start-for-xmlls-false:

tomcat-start-for-xmlls:
Overriding previous definition of reference to classpath

\_deploy-adminclient:

&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] The directory with all required service files has been created.
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] The next step in deploy action is installing the service in Tomcat.
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\] (If you are an expert in Axis and want to install the service other way
&nbsp;&nbsp;&nbsp;&nbsp; \[echo\]&nbsp; than default one use ctrl+c to stop the script in this moment)

&nbsp;&nbsp;&nbsp; \[input\] Press Enter

deploy-adminclient:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\] Processing file /usr/perfSONAR-XML-LS-1.1-RC4/perfsonar/LookupService/wsdd/ls-service-deploy.wsdd
&nbsp;&nbsp;&nbsp;&nbsp; \[java\] Exception: AxisFault
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultCode: 
{http://xml.apache.org/axis/}
HTTP
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultSubcode:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultString: (404)/LookupService/services/AdminService
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultActor:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultNode:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp; faultDetail:
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp;&nbsp;&nbsp;&nbsp; {}:return code:&nbsp; 404
&nbsp;&nbsp;&nbsp;&nbsp; \[java\] &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache<html><head><title>Apache Tomcat/5.5.20 - Error report&lt;/title&gt;&lt;style&gt;&lt;\!report</title><style><\!\--H1 -
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
-&nbsp;-

 -H2 -
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
-&nbsp;-

 -H3 -
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
-&nbsp;-

 -BODY -
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B 
-&nbsp;-

 -B-
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
-&nbsp;-

 -P -
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A 
-&nbsp;-

-A-
{color : black;}
-&nbsp;-

-A.name -
{color : black;}HR 
-&nbsp;-

-HR-
{color : #525D76;}-
-&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 404 - nbsp;-\-></style> </head><body><h1>HTTP Status 404 - /LookupService/services/AdminService&lt;/h1&gt;&lt;HRAdminService</h1><HR size=&quot;1&quot;"1" noshade=&quot;noshade&quot;&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;"noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/LookupService/services/AdminService&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;TheAdminService</u></p><p><b>description</b> <u>The requested resource (/LookupService/services/AdminService) is not available.&lt;/u&gt;&lt;/p&gt;&lt;HR</u></p><HR size=&quot;1&quot;"1" noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache"noshade"><h3>Apache Tomcat/5.5.20&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;20</h3></body></html>
&nbsp;&nbsp;&nbsp;&nbsp; \[java\]&nbsp;&nbsp;&nbsp;&nbsp; 
{http://xml.apache.org/axis/}
HttpErrorCode:404