Hi Martin,

Your code fragments don't really tell the whole story, can you attach all code and the
full stack trace?

--Kurt


On 3/28/11 11:07 AM, chainerlt wrote:
So I got some problems using 'XMLDocAuthenticator'. The problem is described
below at the end of the post in the last quote.

Kurt wrote:
3. That said, on your client you should only be using the
juddi-client.jar and the uddi-ws.jar, right now you seem to
be using the persistence classes (any classes in org.apache.juddi.model)
from the juddi-core.jar.

I were using only "org.apache.juddi.query.util.FindQualifiers" class for
getting valid abbreviations. So I replaced it with my own class and removed
it and also removed juddi-core.jar from buildpath.
But java still throws me this exception:


javax.xml.ws.soap.SOAPFaultException:
org.apache.juddi.model.UddiEntityPublisher cannot be cast to
org.apache.juddi.model.Publisher

in


         public PublisherDetail savePublisher(SavePublisher savePublisher)
throws Exception
         {
             return juddiApi.savePublisher(savePublisher);
         }

As far as I understand this exception appears from overlapping classes which
I import? So I checked my classes:
I have QueryBuilder class (builds various FindBusiness, SavePublisher,
DeleteService and similar objects in a static way) which imports:


import org.apache.juddi.api_v3.*;
import org.uddi.api_v3.*;

and Tools class (which works with UDDISecurityPortType, JUDDIApiPortType,
UDDIPublicationPortType and UDDIInquiryPortType) which imports:


import org.apache.juddi.api_v3.*;
import org.apache.juddi.v3.client.ClassUtil;
import org.apache.juddi.v3.client.config.UDDIClientContainer;
import org.apache.juddi.v3.client.transport.Transport;
import org.apache.juddi.v3_service.JUDDIApiPortType;
import org.uddi.api_v3.*;
import org.uddi.v3_service.*;

These are the only two classes which involves into working with juddi.

Btw, my name is Martin :-)

#######################################################################

Reply via email to