Hi Martin,

All fixed. If you are using juddi-3.0.4, you should check out the source for juddi-3.0.4, and apply the patch:

http://svn.apache.org/viewvc/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/auth/XMLDocAuthenticator.java?p2=%2Fjuddi%2Ftrunk%2Fjuddi-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fjuddi%2Fv3%2Fauth%2FXMLDocAuthenticator.java&p1=%2Fjuddi%2Ftrunk%2Fjuddi-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fjuddi%2Fv3%2Fauth%2FXMLDocAuthenticator.java&r1=1086999&r2=1086998&view=diff&pathrev=1086999

or simply replace  it with

http://svn.apache.org/viewvc/juddi/trunk/juddi-core/src/main/java/org/apache/juddi/v3/auth/XMLDocAuthenticator.java?revision=1086999&view=markup&pathrev=1086999

then from the juddi-core directory, run:

mvn clean install.

This is create a new juddi-core-3.0.4.jar in the target directory.

We will also soon release juddi-3.1.0 which will contain this fix.

Thx,

-Kurt

p.s. the Encrypted version inherits from this one, so the patch fixes that one too.


On 3/30/11 11:50 AM, Martynas A. (chainer) wrote:
Kurt,

Same happens with CryptedXMLDocAuthenticator. Fix that too. Btw when is it possible to expect the fix and in what form (new release/patch)?

Martin

2011/3/30 Kurt T Stam <[email protected] <mailto:[email protected]>>

    Hi Martin,

    I can reproduce it now. The XMLDocAuthenticator has a bug and
    should be returning a Publisher.
    I reopened the issue.

    --Kurt


    On 3/30/11 10:45 AM, Martynas A. (chainer) wrote:
    Yes, my code worked properly with 'juddi.authenticator =
    org.apache.juddi.v3.auth.JUDDIAuthenticator' in juddi.properties,
    because it was default and I wasn't playing around with
    authentication. I just changed back to JUDDIAuthenticator to
    check and it works fine.

    2011/3/30 Kurt T Stam <[email protected]
    <mailto:[email protected]>>

        OK I will try one more time. Are you saying it only happens
        when you change the authentication properties and users.xml?

        On 3/30/11 10:00 AM, Martynas A. (chainer) wrote:
        Kurt,

        Well I just simply tried to download a fresh
        'juddi-portal-bundle-3.0.4.zip', unzip it, setup
        authentication in propeties, create users.xml, startup it
        and try to save publisher. Same exception. In my project I
        use only "juddi-client-3.0.4.jar" and "uddi-ws-.3.0.4.jar"
        which are related to juddi. No idea.

        --Martin

        2011/3/30 Kurt T Stam <[email protected]
        <mailto:[email protected]>>

            Martin,

            The code is fine. Can it be you deployed the
            juddi-core.jar more then once? It looks to me like that
            classcast might be caused by
            classloading issues, or version mismatch.

            --Kurt







Reply via email to