You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mandar Tengse <ma...@yahoo.com> on 2003/08/28 16:09:40 UTC

help for web service which use complex data type

Hi all,
 
    Can anyone please help me to solve this problem ?
    I created simple two java classes :
    one web service class called TestService which is :
    public class TestService {
    public TestService(){} 
    public String getName(Complexdata cd){ return cd.getName();}
    }
    the other is :
    public class Complexdata {
    private java.lang.String name;
    private int id;
    public Complexdata() {}
    public java.lang.String getName() {return name;}
    public void setName(java.lang.String name) { this.name = name;}
    public int getId() {return id;}
    public void setId(int id) {this.id = id;}
    }
 
    I made TestService.java as TestService.jws and put in the axis folder and I could get the wsdl file correctly.I put the Complexdata.class file in classes directory.
 
    So now to access this service I used WSDL2Java utility to create client code and put them in classes directoy. With the admin utility (org.apache.axis.utils.Admin)I tried to deploy the deploy.wsd which created the server-config and client-config file which I put in WEB-INF directory.
 
 In the TestServiceServiceLocator class (which was created by WSDL2Java utility) I put the main method and tired to create stub and access the service.
 
But I am getting following error :
Exception in thread "main" AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (500)Internal Server Error
 faultActor:
 faultNode:
 faultDetail:
        {}string: return code:  500
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;
/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;ja
va.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfiguration
Exception: org.apache.commons.logging.LogConfigurationException: org.apache.comm
ons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log
&lt;br&gt;      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
&lt;br&gt;      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo....
 
Am I doing something wrong ???
 
Hoping to get some help.
 
regds,
Mandar.
 
 
 
 


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software