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: Stijn Melis <>
  • To: Michael Michalis <>
  • Cc: Roman Lapacz <>, Loukik Kudarimoti <>,
  • Subject: Re: [pS-dev] Re: MetadataConfiguration File (connection to xmldb)
  • Date: Thu, 20 Dec 2007 10:24:27 +0100

I checked and noticed I forgot a return statement in my query so it now works.

But thanks anyway,

Stijn

Michael Michalis wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stijn Melis wrote:
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]

Its probably because you have used an xquery function which requires
the "fn" namespace but you forgot to declare it.


Michalis
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


------------------------------------------------------------------------




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHagXYoEWq51/Q/40RAtPbAKCnDRS9dn4hu0y0JkH1g54DmuJbPwCeL+5n
jmewxJ5x2yV2UY7qnnHMcBg=
=Q+Pu
-----END PGP SIGNATURE-----



Archive powered by MHonArc 2.6.16.

Top of Page