perfsonar-dev - Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1
Subject: perfsonar development work
List archive
- 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: Wed, 30 Jan 2008 09:43:08 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stijn Melis wrote:
|>> 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.
|
| bzzz ;)
|
| I tried it again, and this time I get the following output:
|
| adminPass: admin
| newAdminPass: admin
| creating eXist stuff
| existURI to connect to: 127.0.0.1:8680/exist/xmlrpc
| username to use: admin
| password to use: 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)
| ...
|
| It still doesn't seem to connect to the database and I can't really see what is causing the problem.
|
This is likely a problem with the db's URI. I'm using xmldb:exist://127.0.0.1:8680/exist/xmlrpc and it connects successfully. Update the perfsonar-web-admin jar and try running
java -classpath exist-db-1.0rc.jar:exist-xmldb-1.0rc.jar:exist-xmlrpc-1.0rc.jar:perfsonar-web-admin-0.5b.jar:log4j-1.2.9.jar perfSONARWebAdmin.test.ExistTesterXmlRpc xmldb:exist://127.0.0.1:8680/exist/xmlrpc username password
Off course you need to set up the correct classpath for the needed jars and also the right username and password. If connected successfully it will output the list of db users. The test class just initiates
xmlDBManager manager = new xmlDBManagerImpl(argv[0],argv[1],argv[2]);
and then gets the users.
Michalis
|
| Stijn
|
|> Michalis
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHoCqMoEWq51/Q/40RAn4VAJ9KDkkODaS+rWmilRQCiTIxNkWLvwCePDgR
+dmW3bdwKKmy+5JIZef3N98=
=2ojp
-----END PGP SIGNATURE-----
- webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Stijn Melis, 01/29/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Michael Michalis, 01/29/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Stijn Melis, 01/29/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Michael Michalis, 01/30/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Stijn Melis, 01/30/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Michael Michalis, 01/30/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Stijn Melis, 01/29/2008
- Re: [pS-dev] webadmin eXist db connection for creation of SSHTELNET MP 3.0-RC1, Michael Michalis, 01/29/2008
Archive powered by MHonArc 2.6.16.