java.lang.ExceptionInInitializerError ~~~~ AXIS
843833Sep 20 2005 — edited Jan 19 2006Hi I am trying to call my webservice from a web application my code is below:
public void useService(){
try{
HelloService serv = new HelloServiceLocator(); // error thrown here
Hello test = serv.getHello();
String msg = test.greet("Hi");
System.out.println("Reply FROM WEBSERVICE: " + msg);
}
catch(Exception e){
System.out.println("error");
e.printStackTrace();
}
}
But when this panel loads I get the following error:
java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.<init>Service.java(109)
When I run it from netbeans it works fine but on the web appilcation I get the above error. I have cached all the required jars etc, pls if sum 1 could help...