Hi Sonja,

It does look like there is a problem with versions.

Alan has updated the wiki page with the version numbers for Taverna 2.3.0:
http://www.mygrid.org.uk/dev/wiki/display/developer/Maven+module+version+numbers

Alternatively, you could make your plugin inherit from:
http://taverna.googlecode.com/svn/taverna/taverna-parent/tags/taverna-parent-2.3.0/pom.xml which will bring in the correct version numbers.
For Credential Manager, you should use

net.sf.taverna.t2.security= 1.3

As far as lazy initialization goes, you should not have to do anything really. It refers to Taverna popping up the master password dialog for Credential Manager only when it is really needed and not on Taverna startup. You should just continue to use Credential Manager in the usual way - getInstance() to get it, then you can either query it for credentials already stored or store your credentials in it.

For example, to get a username and password for a service (given its URL), already stored in Credential Manager, you'd do something like:

        CredentialManager = CredentialManager.getInstance(); // this call will handle prompting user you master password if Credential Manager has not been initialised yet
        URI serviceUri = URI.create("your service's URL"); // used to identify the username/password entry in Credential Manager
        UsernamePassword username_password = credManager.getUsernameAndPasswordForService(serviceUri, usePathRecursion, null);
        if (username_password != null) {
            // do something with it
        }


Regards,
Alex


On 27/07/2011 10:01, Sonja Holl wrote:
Dear Alexandra,

I updated my Taverna Plugin to the new versions, but have still some problems
with the credential manager. It does not start and the error massage is:

Caused by: java.lang.ClassNotFoundException:
net.sf.taverna.t2.security.credentialmanager.CMUtils
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

I don't know if the problem is on my side and any lib is not properly updated. I
just saw that there were some changes in the class name of this CMUtils class
(with the "s" and without). Do you have any idea?

Apart from that, is there any documentation available how to use the new lazy
startup of the credential manager? Could you give me any example for that?

Thank you very much for you help.

Kind regards,
Sonja


--
Sonja Holl
Federated Systems and Data
Jülich Supercomputing Centre (JSC)
Forschungszentrum Juelich
Wilhelm-Johnen-Str. 1
D - 52425 Juelich
Germany

Email: [email protected]
Phone: +49 2461 61 - 2760
Fax: +49 2461 61 - 6656



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to