Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ExceptionInInitializerError ~~~~ AXIS

843833Sep 20 2005 — edited Jan 19 2006
Hi 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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2006
Added on Sep 20 2005
3 comments
323 views