UIMasterPasswordProvider used to be in credential-manager module and was moved 
to credential-manager-ui as it is essentially a UI component. Are you sure you 
are working with the latest versions of the modules, i.e. the ones that have 
been used in 2.1?

As far as I remember, we used to ask for master password at the time of 
initialising as we were copying the CaGrid CAs' and standard Java trustostore 
certificates to Credential Manager and we needed a password to access Cred. 
Manager. As this was annoying and users did not know why they need to enter 
password as this was happening in the background - we have fixed this so that 
users do not need to enter their passwords anymore. Now, essentially, 
Credential Manager has two keystores - one for users credentials (passwords and 
certificates) and the other for trusted certificates of CAs and services (i.e. 
the truststore). Both used to use the same, user-set, password. We have changed 
this so that only the first one uses user-set password and the second one (i.e. 
the truststore) is using randomly generated password that is saved inside 
Taverna code. This meant that we do not need to ask the user for the password 
now when starting up Taverna for the first time as copying of caGrid CAs' and 
Java's certificates only require access to Cred. Manager's truststore (for 
which we now know the password). Hope this makes sense? 

Make sure you are using the latest code as you are getting 
ClassNotFoundException.


Alex


Stian Soiland-Reyes wrote:
> This sounds familiar, but I'm pretty certain that Alex and I did
> something about this to make sure the credential manager pop-up also
> would work when loading a workflow.. I'll look into the code.
>
> I assume the taverna caGrid sourcecode is in the usual place?
>
> On Tue, Jan 26, 2010 at 20:44, Wei Tan <[email protected]> wrote:
>   
>> I checked the same routine in T2.1 beta2, where you do not have to
>> initiate the GUI first. Instead, the GUI pops up asking for master password.
>> However, in T2.1 you will get an error:
>> WARN  2010-01-25 16:40:53,127 (net.sf.taverna.raven.spi.SpiRegistry:85)
>> - Could not find class net.s
>> f.taverna.t2.security.credentialmanager.UIMasterPasswordProvider using
>> loader{net.sf.taverna.t2.tave
>> rna-workbench.plugins:components-plugin:2.1.0} from 2003979
>> java.lang.ClassNotFoundException:
>> net.sf.taverna.t2.security.credentialmanager.UIMasterPasswordProvi
>> der
>>
>> Any idea?
>>
>> Wei
>>
>> Wei Tan wrote:
>>     
>>> To be more specific, the first time when I load a secure workflow or
>>> cagrid service, the credential manager needs to be initiated in the
>>> GUI first, in the same Taverna workbench session.
>>> Thanks,
>>> Wei
>>>
>>> Wei Tan wrote:
>>>       
>>>> Hi,
>>>>
>>>>   When I do a fresh installation of T2.1, install the cagrid-activity
>>>> plug-in, and 1) open a workflow that contains a secure service or 2)
>>>> add a cagrid service,
>>>> CredentialManager.getInstance() is invoked and an error occurs (see
>>>> the end of this email).
>>>> A workaround here, is to visit the credential manager in the GUI and
>>>> provide a master password.
>>>> It is required or, can the users at this time provide an initial
>>>> master password instead of failure?
>>>>
>>>>  Best regards,
>>>>
>>>> Wei
>>>>
>>>> ----------------------------------------------------------------------------------------------------------------------
>>>>
>>>> WARN  2010-01-25 16:40:53,127
>>>> (net.sf.taverna.raven.spi.SpiRegistry:85) - Could not find class net.s
>>>> f.taverna.t2.security.credentialmanager.UIMasterPasswordProvider
>>>> using loader{net.sf.taverna.t2.tave
>>>> rna-workbench.plugins:components-plugin:2.1.0} from 2003979
>>>> java.lang.ClassNotFoundException:
>>>> net.sf.taverna.t2.security.credentialmanager.UIMasterPasswordProvi
>>>> der
>>>>        at
>>>> net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader.findClass(LocalArtifactClas
>>>>
>>>> sLoader.java:343)
>>>>        at
>>>> net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader.findClass(LocalArtifactClas
>>>>
>>>> sLoader.java:276)
>>>>        at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>        at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>        at
>>>> net.sf.taverna.raven.spi.SpiRegistry.updateRegistry(SpiRegistry.java:274)
>>>>
>>>>        at
>>>> net.sf.taverna.raven.spi.SpiRegistry.getClasses(SpiRegistry.java:154)
>>>>        at
>>>> net.sf.taverna.raven.spi.InstanceRegistry.getInstances(InstanceRegistry.java:129)
>>>>
>>>>        at
>>>> net.sf.taverna.t2.spi.SPIRegistry.getInstances(SPIRegistry.java:117)
>>>>        at
>>>> net.sf.taverna.t2.security.credentialmanager.CredentialManager.<init>(CredentialManager.j
>>>>
>>>> ava:185)
>>>>        at
>>>> net.sf.taverna.t2.security.credentialmanager.CredentialManager.getInstance(CredentialMana
>>>>
>>>> ger.java:141)
>>>>        at
>>>> net.sf.taverna.cagrid.activity.CaGridActivity.loadCaGridCAsCertificates(CaGridActivity.ja
>>>>
>>>> va:778)
>>>>        at
>>>> net.sf.taverna.cagrid.activity.CaGridActivity.initializeSecurity(CaGridActivity.java:737)
>>>>
>>>>
>>>>        at
>>>> net.sf.taverna.cagrid.activity.CaGridActivity.<clinit>(CaGridActivity.java:126)
>>>>
>>>>
>>>>         
>> --
>> Wei Tan, Ph.D.
>> Computation Institute
>> the University of Chicago|Argonne National Laboratory
>> http://www.mcs.anl.gov/~wtan
>>
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>> _______________________________________________
>> taverna-hackers mailing list
>> [email protected]
>> Web site: http://www.taverna.org.uk
>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>>
>>     
>
>
>
>   


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to