Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1

Subject: perfsonar development work

List archive

Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1


Chronological Thread 
  • From: Michael Michalis <>
  • To: Stijn Melis <>
  • Cc: Loukik Kudarimoti <>, "" <>
  • Subject: Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1
  • Date: Tue, 29 Jan 2008 18:06:22 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stijn Melis wrote:
| Hello,
|
Hi Stijn,
| I am trying to implement the action for storing the metadata file into the eXist database, but I keep getting errors.
|
| I'd like the metadata file to be located into the root of the eXist, e.g. when I log in to xmldb:exist://127.0.0.1:8680/exist/xmlrpc I see the following:
|
| rss collection
| system collection
| sshtelnetmetadata.xml
|
| I used the RRDMAHandler as a template, but this does not seem to do what I want it to do. I attached the corresponding method to the mail.
|
| It gets to the part where the xmlDbManager is created, but then generates an Exception. This is the output I get:
|
| adminPass: admin
| newAdminPass: admin
| key: component.mp.xmldb.metadata_file_name
| value: sshtelnetmetadata.xml
| key: component.mp.xmldb.db_uri
| value: xmldb:exist://127.0.0.1:8680/exist/xmlrpc/db
| key: component.mp.xmldb.db_username
| value: sshtelnet
| key: component.mp.xmldb.db_password
| value: sshtelnet
| key: component.mp.xmldb.db_adminpassword
| value: admin
| creating eXist stuff
| existURI: 127.0.0.1:8680/exist/xmlrpc
| username: admin
| pass: admin
| org.xmldb.api.base.XMLDBException:
| at org.xmldb.api.DatabaseManager.getDatabase(Unknown Source)
| at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
| at perfSONARWebAdmin.auxiliary.xmlDB.xmlDBManagerImpl.<init>(xmlDBManagerImpl.java:57)
| at org.perfsonar.service.measurementPoint.webAdmin.SSHTelnetHandler.existActions(Unknown Source)
| at org.perfsonar.service.measurementPoint.webAdmin.SSHTelnetHandler.handleExist(Unknown Source)
| ...
|
| I tried it with the URI equal to xmldb:exist://127.0.0.1:8680/exist/xmlrpc/db and also with 127.0.0.1:8680/exist/xmlrpc/db, but this doesn't seem to work either.
|
You don't need to add the /db at the end of the URI. The manager by default is connected to the root of the eXist. Omitting "/db" will probably solve the problem. To get the root colection use manager.getCollection(null); I hope this helps. Buzz if you have any more problems


Michalis
| Does anyone know what I'm doing wrong here?
|
| thanks in advance,
|
| Stijn

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHn07+oEWq51/Q/40RAqIKAKCozTMgZvdlOWD2igVo2k0fR0zgwQCeMmiZ
FxrgE9kpH86oFjo0KwnEZaQ=
=4j0V
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.16.

Top of Page