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 <>,
- Subject: Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
- Date: Wed, 19 Dec 2007 17:14:29 +0100
Thanks it now works, I still got some other error now:
[error.common.storage.xmldb.query]: Can't perform XQuery: org.exist.xquery.StaticXQueryException: unexpected token: fn [at line 4, column 1]
but this seems to be something with my query. I'll check into this and hopefully I'll be able to fix this soon.
Thanks for your help,
Stijn
Roman Lapacz wrote:
Stijn Melis wrote:
In the root of my xml db, I've attached a screenshot of the screen I see when I log in with the GUI. Should I place the file elsewhere?
Do not mind the other url that's there, that's because I log in from my desktop. I get the same screen when I log in on the local machine.
Try this:
xmldb:exist://localhost:8680/exist/xmlrpc/db
Roman
Stijn
Roman Lapacz wrote:
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
------------------------------------------------------------------------
- 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.