still not work.  I added all the jars belonged to
\juddi-portal-bundle-3.0.0.beta\webapps\juddi\WEB-INF\lib. I have no idea
about this.

2009/6/10 Kurt T Stam <[email protected]>

> Hi Zhao,
>
> You code looks fine. In fact you can probably find something very similar
> in the uddi-tck module, which makes me think that you don't have the right
> jars on your classpath. One thing I would change is to use the uddi-client
> code.
> Please try to see if you can run the uddi-client unittests (which use the
> uddi-tck) module. Just download the code from SVN
>
> http://svn.apache.org/viewcvs.cgi/webservices/juddi/tags/juddi-v3.0.0.beta
>
> The poms should specify what you'd need on your classpath. Hope that helps,
> and please let us know if it doesn't.
>
> --Kurt
>
>
>
>
>
> th zhao wrote:
>
>> hi. all
>>      I download and run the juddi-portal-bundle-3.0.0.beta, and want to
>> test client, but met a error.
>>      The client code is very simply.
>>
>>  
>> /***************************************************************************************/
>>  import java.util.List;
>> import java.util.Properties;
>> import org.uddi.api_v3.BusinessDetail;
>> import org.uddi.api_v3.BusinessEntity;
>> import org.uddi.api_v3.GetAuthToken;
>> import org.uddi.api_v3.client.transport.JAXWSTransport;
>> import org.uddi.api_v3.client.transport.Transport;
>> import org.uddi.v3_service.UDDISecurityPortType;
>> import org.uddi.v3_service.UDDIPublicationPortType;
>>
>> public class SaveBusinessTest {
>>  public static void main(String args[]) {
>>  SaveBusinessTest app = new SaveBusinessTest();
>>  System.out.println("\n*********** Running SaveBusiness ***********");
>>  app.run();
>>  System.exit(0);
>>  }
>>  public void run() {
>>  GetAuthToken ga = new org.uddi.api_v3.GetAuthToken();
>>  Transport tp = new JAXWSTransport();
>>  try {
>>   UDDISecurityPortType securityService = tp.getSecurityService();
>>   UDDIPublicationPortType publication = tp.getPublishService();
>>   ga.setUserID("juddi");
>>   ga.setCred("password");
>>   org.uddi.api_v3.AuthToken token = securityService.getAuthToken(ga);
>>   System.out.println("Returned authToken:" + token.getAuthInfo());
>>  }
>>  // Catch any other exception that may occur
>>  catch (Exception e) {
>>   e.printStackTrace();
>>  }
>>  }
>> }
>>
>> /***************************************************************************************/
>>  the error is listed below:
>>  009-6-10 18:24:36 org.apache.cxf.bus.spring.BusApplicationContext
>> getConfigResources
>> info: No cxf.xml configuration file detected, relying on defaults.
>> javax.xml.ws.WebServiceException: org.apache.cxf.binding.soap.SoapFault:
>> Fault occurred while processing.
>>  at
>> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:142)
>>  at $Proxy47.getAuthToken(Unknown Source)
>>  at SaveBusinessTest.run(SaveBusinessTest.java:45)
>>  at SaveBusinessTest.main(SaveBusinessTest.java:28)
>> Caused by: org.apache.cxf.binding.soap.SoapFault: Fault occurred while
>> processing.
>>  at
>> org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70)
>>  at
>> org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
>>  at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>  at
>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
>>  at
>> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
>>  at
>> org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
>>  at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>  at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:633)
>>  at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2064)
>>  at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1942)
>>  at
>> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1867)
>>  at
>> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>  at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:595)
>>  at
>> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>  at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:466)
>>  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
>>  at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
>>  at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>  at
>> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>>  ... 3 more
>>
>>
>

Reply via email to