Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] LS installation issues

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] LS installation issues


Chronological Thread 
  • From: Maciej Glowiak <>
  • To: Vlada Macek <>
  • Cc:
  • Subject: Re: [perfsonar-user] LS installation issues
  • Date: Mon, 05 Feb 2007 16:26:48 +0100
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
  • Organization: Poznan Supercomputing and Networking Center

Hi Vlada,

I tested it mostly as root user, that's right. I made some small fixes and now it should work fine. I didn't encounter your second problem ("Use a fileset"); maybe it's because of ant version? I suppose you have the newest one. I used ant 1.6.5.

It is called "release candidate" because it's still in testing. If everything were ok, it would be called just a "release". Thanks for your comments.

Please download RC2:

http://wiki.perfsonar.net/images/files/perfSONAR-XML-LS-1.1-RC1.tar.gz

I fixed some more problems, so it should be ok now.

Best regards
and thanks for you input,

Maciej Glowiak

ps. See the log below for details:

==================================================================
Environment details
==================================================================

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
ant -version
Apache Ant version 1.6.5 compiled on June 2 2005

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode)

mac@reed:~$
pwd
/home/mac

==================================================================
Unpack tarball
==================================================================

mac@reed:~$
ls
perfSONAR-XML-LS-1.1-RC2.tar.gz

mac@reed:~$
tar -xzf perfSONAR-XML-LS-1.1-RC2.tar.gz
mac@reed:~$
cd perfSONAR-XML-LS-1.1-RC2/perfsonar/ant/

==================================================================
pre-install
==================================================================

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
ant pre-install
Buildfile: build.xml
Overriding previous definition of reference to classpath

init-info:
[echo] Pre-install
[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]
/home/mac/tomcat
[input] Temporary directory [/home/mac/temp]?

[input] Enter webserver hostname (please type your host and domain name - not localhost)
reed.man.poznan.pl
[input] Enter webserver port [8080]

[input] Enter service directory (where to be installed) [/home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar]
/home/mac/ls
[input] Enter service deployment name [LookupService]


confirm-inputs:
[echo] ---------------------------------------------------------------
[echo] Your settings:
[echo] ---------------------------------------------------------------
[echo] Tomcat home directory [/home/mac/tomcat]
[echo] Service address [http://reed.man.poznan.pl:8080/LookupService]
[input] Proceed with these settings? (y,n)
y

get-tomcat:
[echo] Download Tomcat
[mkdir] Created dir: /home/mac/temp
[get] Getting: http://monstera.man.poznan.pl/private/bak/apache-tomcat-5.5.20.tar.gz
[get] To: /home/mac/temp/apache-tomcat-5.5.20.tar.gz
[get] ....................................................

(... dots, dots, and so on ...)

[get] last modified = Thu Sep 28 16:01:58 CEST 2006
[echo] Unpacking Tomcat
[untar] Expanding: /home/mac/temp/apache-tomcat-5.5.20.tar.gz into /home/mac/temp
[delete] Deleting: /home/mac/temp/apache-tomcat-5.5.20.tar.gz
[chmod] Applied chmod to 7 files and 0 directories.

copy-const-properties:
[echo] Create ANT configuration file [/home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant/const.properties]
[copy] Copying 1 file to /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant

pre-install:

BUILD SUCCESSFUL
Total time: 21 seconds


==================================================================
configure
==================================================================

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
ant configure
Buildfile: build.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 [/home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf/log4j.properties]

[input] Enter logs directory [/home/mac/ls/LookupService/log]

[input] Enter path for parser configuration file [/home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf/objects.config]


[echo] 2. Lookup Information configuration
[echo] =====================================

[input] Lookup Information of service -- access point (URL) [http://reed.man.poznan.pl: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)

[input] LS Cleanup -- enable LS Cleanup (removing old entries when TTL exceeded)?(y,n)
n
[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 [/home/mac/tomcat]
[echo] [ ] Service address [http://reed.man.poznan.pl:8080/LookupService]
[echo] [ ] Target path for the application [/home/mac/ls]
[echo] - Properties dir [/home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf]
[echo] - Log config file [/home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf/log4j.properties
[echo] - Logs directory [/home/mac/ls/LookupService/log
[echo] - Parser config file [/home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf/objects.config]
[echo] [ ] Lookup Information
[echo] - LI-access point (URL) [http://reed.man.poznan.pl: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 [/home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/conf/components.properties]
[copy] Copying 1 file to /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/conf

copy-service-properties:
[echo] Create SERVICE configuration file [/home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/conf/service.properties]
[copy] Copying 1 file to /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/conf

copy-log4j-properties:
[echo] Create log4j configuration file [/home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/conf/log4j.properties]
[copy] Copying 1 file to /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/conf

configure:

BUILD SUCCESSFUL
Total time: 24 seconds

==================================================================
deploy
==================================================================


mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
ant deploy
Buildfile: build.xml
Overriding previous definition of reference to classpath

does-jar-generic-exist:

copy-generic-jar:
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib

create-deploy-root:
[mkdir] Created dir: /home/mac/ls/LookupService/wsdd
[mkdir] Created dir: /home/mac/ls/LookupService/WEB-INF/classes
[mkdir] Created dir: /home/mac/ls/LookupService/WEB-INF/classes/perfsonar
[mkdir] Created dir: /home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf

copy-axis-for-service:
[copy] Copying 1 file to /home/mac/ls/LookupService
[copy] Copying 1 file to /home/mac/ls/LookupService
[copy] Copying 1 file to /home/mac/ls/LookupService
[copy] Copying 1 file to /home/mac/ls/LookupService
[copy] Copying 1 file to /home/mac/ls/LookupService
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/classes
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf

copy-jars-for-service:
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib

copy-jars-for-xmlls:
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib
[copy] Copying 1 file to /home/mac/ls/LookupService/wsdd
[copy] Copying 1 file to /home/mac/ls/LookupService/wsdd

does-jar-xmlls-exist:

copy-xmlls-jar:
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/lib

copy-other-files:
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF/classes/perfsonar/conf
[mkdir] Created dir: /home/mac/ls/LookupService/log

add-context-listener:
[copy] Copying 1 file to /home/mac/ls/LookupService/WEB-INF
[style] Processing /home/mac/ls/LookupService/WEB-INF/web.xml to /home/mac/ls/LookupService/WEB-INF/web.xml.out
[style] Loading stylesheet /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant/add-context-listener.xsl
[copy] Copying 1 file to /home/mac/ls/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] (/home/mac/tomcat/conf/server.xml)
[echo] inside existing xml tag 'Host':

[echo] (You may copy XML part (without [echo]):
[echo] <Context path='/LookupService' docBase='/home/mac/ls/LookupService'> </Context>

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

[echo] Execute: sh /home/mac/tomcat/bin/startup.sh
[echo] Please, make sure that the Tomcat is running. Use the address http://reed.man.poznan.pl: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 Return key ...


deploy-adminclient:
[java] Processing file /home/mac/ls/LookupService/wsdd/ls-service-deploy.wsdd
[java] <Admin>Done processing</Admin>

BUILD SUCCESSFUL
Total time: 1 minute 29 seconds




==================================================================
test
==================================================================

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
ant test
Buildfile: build.xml
Overriding previous definition of reference to classpath

test:
[echo] For testing web service please run:

[echo] ant -f build-xmlls.xml client-register
[echo] ant -f build-xmlls.xml client-query
[echo] ant -f build-xmlls.xml client-keepalive
[echo] ant -f build-xmlls.xml client-deregister

[echo] For testing service without Tomcat (just service functionality) please run:

[echo] ant -f build-xmlls.xml test-register
[echo] ant -f build-xmlls.xml test-query
[echo] ant -f build-xmlls.xml test-keepalive
[echo] ant -f build-xmlls.xml test-deregister

BUILD SUCCESSFUL
Total time: 1 second


==================================================================
run selected test
==================================================================

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$ ant -f build-xmlls.xml client-register
Buildfile: build-xmlls.xml
Overriding previous definition of reference to classpath

client-register:
[java] End point: http://reed.man.poznan.pl:8080/LookupService/services/LookupService
[java] Request file: /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/schema/example-instances/perfSONAR/LS/test/LSRegisterRequest.xml
[java] Response file: /home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/schema/example-instances/perfSONAR/LS/test/LSRegisterResponse.xml
[java] time taken :0.757 secs
[java] Client exiting

BUILD SUCCESSFUL
Total time: 3 seconds

==================================================================
see the results
(I tested it without running eXist XML DB, so there is an error,
but the service works in fact, but it returns error code)
==================================================================

mac@reed:~/perfSONAR-XML-LS-1.1-RC2/perfsonar/ant$
cat
/home/mac/perfSONAR-XML-LS-1.1-RC2/perfsonar/schema/example-instances/perfSONAR/LS/test/LSRegisterResponse.xml

<?xml version="1.0" encoding="UTF-8"?>
<nmwg:message id="msg1_resp" messageIdRef="msg1"
type="LSRegisterResponse" xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
<nmwg:metadata id="resultCodeMetadata">
<nmwg:eventType>error.common.storage.xmldb.open</nmwg:eventType>
</nmwg:metadata>
<nmwg:data id="resultDescriptionData_for_resultCodeMetadata" metadataIdRef="resultCodeMetadata">
<nmwgr:datum xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>XQuery by HTTP failed. Could not connect to eXist via pure http, nested exception was: class java.net.ConnectException : Connection refused</nmwgr:datum>
</nmwg:data>
</nmwg:message>

==================================================================
END
==================================================================










Vlada Macek wrote:
Hi,

I'm about to write a C client using the LookupService. I thought it's
best to install the service on my workstation (Debian Linux Sarge with
sun-j2sdk1.5).

In case there is some running LS instance out there that I could use as
a sandbox for client development, please let me know.

I'm not familiar with Ant and Tomcat and run into the installation problem.

I followed
http://wiki.perfsonar.net/jra1-wiki/index.php/Installation_LS_1.1, just
not as root. I found no 'root required' in the doc and I didn't see the
reason why it must be root in these first stages.

cd /home/tuttle/tuttle/tmp
wget
http://wiki.perfsonar.net/images/files/perfSONAR-XML-LS-1.1-RC1.tar.gz
tar -xzf perfSONAR-XML-LS-1.1-RC1.tar.gz
cd perfSONAR-XML-LS-1.1-RC1/ant
ant -f build-xmlls.xml pre-install

... some lines omitted ...
confirm-inputs:
[echo]
---------------------------------------------------------------
[echo] Your settings:
[echo]
---------------------------------------------------------------
[echo] Tomcat home directory [/home/tuttle/tmp/tomcat_ls]
[echo] Service address [http://puk.doma.cz:8080/LookupService]
[input] Proceed with these settings? (y,n)
y

At first it fails when there is no /tmp/temp. Why it is not created
automatically? Manual mkdir fixes it. When I rerun pre-install, it fails
again. The output tail:


[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] .............................................
[get] last modified = Thu Sep 28 16:01:58 CEST 2006
[echo] Unpacking Tomcat
[untar] Expanding: /tmp/temp/apache-tomcat-5.5.20.tar.gz into
/tmp/temp
[delete] Deleting: /tmp/temp/apache-tomcat-5.5.20.tar.gz

BUILD FAILED

/home/tuttle/tmp/perfSONAR-XML-LS-1.1-RC1/ant/xmlls/pre-install-targets.xml:113:
Use a fileset to copy directories.

Total time: 3 minutes 14 seconds


What can I do with it, please? If the problems are in the package, then
I'm surprised it's called a Release Candidate.

Please tell me how to fix it. Thanks in advance.



--

--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|

Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================



Archive powered by MHonArc 2.6.16.

Top of Page