Let's say I have simple working WebService on AXIS. I want to instantiate external class in it. The class needs to use WebService class static fields so I put it in the same JWS file like this:
public class RunTaskServer {
static int count;
public int task()
{
Structure s = new Structure();
}
}
class Structure {
public Structure() {
RunTaskServer server = new RunTaskServer();
server.count++;
}
}
After invoking "task" method from Java client it throws java.lang.reflect.InvocationTargetException in client but when I comment out
Structure s = new Structure();
everything works well. Can you tell me how to get rid of this exception?