Looks like axis wss4j handler cannot find your password callback class.
Have you configured it in your client.wsdd file? Something like
<parameter name="passwordCallbackClass"
value="yourpackage.yourPWCallbackClass"/>
under the 'request flow' configuration of your handler. Even if you
have, the axis-wss4j classloader from Taverna probably cannot find it
unless it is bundled inside that big axis-wss4j jar. You may:
(1) try to bundle it all together or
(2) try to set Axis classloader using
org.apache.axis.utils.ClassUtils.setDefaultClassLoader(java.lang.ClassLoader
loader) or setClassLoader(java.lang.String className,
java.lang.ClassLoader loader) to a classloader that will be able to find
the password callback class (and even then it might not work).
I would go for the option (1) first as it is easier. Unzip the jar, add
your class and zip it all up again into a jar.
Cheers,
Alex
Stian Soiland-Reyes wrote:
> Perhaps Alex, our 'security expert' would know about this..
>
> I believe you would need to register some kind of callback to provide
> the password - typically from a configuration file or a user
> interface.
>
>
> 2009/11/18 Guillaume Collange <[email protected]>:
>
>> Dear all,
>>
>> Thanks for you response, It's working well!
>>
>> Now I have a new problem:
>>
>> org.apache.ws.security.WSSecurityException: WSHandler: cannot load password
>> call back class.
>>
>> Do I need to put anithing to declare the class: PWCallback?
>>
>> Best reagrds,
>> GC.
>>
>> 2009/11/18 Stian Soiland-Reyes <[email protected]>
>>
>>> On Wed, Nov 18, 2009 at 12:01, Stian Soiland-Reyes
>>> <[email protected]> wrote:
>>>
>>>> note that it seems that the opensaml:opensaml:1.1 dependency has
>>>> disappeared from the upstream repositories.
>>>>
>>>> I'll deploy a new version of the bundle axis-wss4j.
>>>>
>>> <dependency>
>>> <groupId>axis</groupId>
>>> <artifactId>axis-wss4j</artifactId>
>>> <version>1.4-1.5.4-2</version>
>>> </dependency>
>>>
>>> (notice change of group ID)
>>>
>>>
>>> --
>>> Stian Soiland-Reyes, myGrid team
>>> School of Computer Science
>>> The University of Manchester
>>>
>>
>> --
>> Guillaume Collange
>>
>>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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