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
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE><
/HEAD><BODY><H1>500 Internal Server Error</H1><PRE>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
<br> at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
<br> at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Lo....
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (500)Internal Server Error
faultActor:
faultNode:
faultDetail:
{}string: return code: 500
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE><
/HEAD><BODY><H1>500 Internal Server Error</H1><PRE>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
<br> at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Lo
<br> 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
