Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)

Subject: perfsonar development work

List archive

Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)


Chronological Thread 
  • From: Roman Lapacz <>
  • To: Stijn Melis <>
  • Cc: Loukik Kudarimoti <>, Szymon Trocha <>,
  • Subject: Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
  • Date: Wed, 19 Dec 2007 16:45:25 +0100

Stijn Melis wrote:
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?

Where exactly you stored metadata conf file in your xml db?

Roman


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






Archive powered by MHonArc 2.6.16.

Top of Page