perfsonar-dev - Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
Subject: perfsonar development work
List archive
- From: Stijn Melis <>
- To: Roman Lapacz <>
- Cc: Loukik Kudarimoti <>, Szymon Trocha <>,
- Subject: Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
- Date: Wed, 19 Dec 2007 16:36:31 +0100
It says this in the catalina.out file:
db_access: xmlrpc
XmlDataRepositoryUri : xmldb:exist://localhost:8680/exist/xmlrpc
XmlDataRepositoryPassword: sshtelnet
XmlDataRepositoryUsername: sshtelnet
XmlDataRepositoryType : http://exist-db.org/xmlrpc
This is the same url I use to log in to the db manually, this is correct right?
I've attached my service.properties file as well. Maybe there's something wrong in there.
Regards,
Stijn
Roman Lapacz wrote:
Are you sure you use correct db URI ?
Roman
Stijn Melis wrote:
Hi,
I created a class which will be handling all communication between the
MP and the metadata, which is contained in a eXist database. I based my
code loosely on the RRD MA. I use the same method to connect to the
xmldb, yet because I only need one class which creates the queries, this
is also handled in the same class.
I tried to test my implementation yesterday, and I am having problems
connecting to the db. At the moment I use the same principle as in the RRD MA, meaning that I create a getStoragemanager to get the XmlDbStorageManager, and then I use this to fetch the data. I attached the DbMetadataConfiguration class which is used to do this. All classes using it first call the constructor, and then immediately call the initStorage method.
When I run this and try to query the db, I get an error. I also attached the logs.
I also tried to run the ExistDbXmlrpcXmlStorageManager.java class as a standalone application to see if that one can connect to the xmldb, and that one doesn't work either. I also attached that one. I get a NullPointerException at line 317, being:
ExistDbXmlrpcXmlDataRepository dataRepository = new ExistDbXmlrpcXmlDataRepository();
The credentials I use to connect to the xmldb using the client GUI are the following:
username: sshtelnet
password: sshtelnet
url: xmldb:exist://localhost:8680/exist/xmlrpc
This works perfectly.
Does anyone has any clues as to what I am doing wrong?
Best regards and thanks in advance,
Stijn
#Wed Dec 19 10:44:44 CET 2007
service.r.service_type=mp
service.r.service_description=perfSONAR service
component.mp.xmldb.db_username=sshtelnet
service.log.log4j.config=/20071218/webapps/JAVA-SSHTELNET-MP-1.2.1/WEB-INF/classes/perfsonar/conf/log4j.properties
service.r.ls_url=
service.r.type=mp
service.as.point=http\://homer.rediris.es\:8080/perfSONAR-AS/services/AuthService
component.registrator.scheduler_component=scheduler
component.mp.xmldb.metadata_file_name=metadata.xml
component.registrator.interval=30000
service.mp.class_name=org.perfsonar.service.measurementPoint.lookingGlassType.engine.adapters.WebserviceEngineAdapter
component.mp.xmldb.db_uri=xmldb\:exist\://localhost\:8680/exist/xmlrpc
service.r.organization_name=
component.mp.xmldb.db_uri.xmlrpc=xmldb\:exist\://localhost\:8680/exist/xmlrpc
service.sax_parser.config=/20071218/webapps/JAVA-SSHTELNET-MP-1.2.1/WEB-INF/classes/perfsonar/conf/objects.config
component.mp.xmldb.db_password=sshtelnet
component.mp.xmldb.db_access=xmlrpc
service.ls.registration_file=
service.r.service_name=JAVA-SSHTELNET-MP
service.as.authn_for_msg_types=SetupDataRequest,MetadataKeyRequest
service.r.service_version=1.2.1
service.as.authn_active=off
service.r.contact_email=
service.mp.message_types=SetupDataRequest,MetadataKeyRequest,EchoRequest
- Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Szymon Trocha, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Michael Michalis, 12/20/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/20/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Stijn Melis, 12/19/2007
- Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb), Roman Lapacz, 12/19/2007
Archive powered by MHonArc 2.6.16.