Could not initialize class org.apache.axis.client.AxisClient

I have added jar in WEB-INF-lib-folder

same jars I have added in eclipse then I am not getting same error

but when I added in jira then I am getting below errors

2018-06-14 11:47:56,636 WARN [common.UserScriptEndpoint]: Script console script failed: java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient at org.apache.axis.client.Service.getAxisClient( at org.apache.axis.client.Service.<init>( at<init>( at<init>( at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source)

1 answer

@kunti pawar

You're probably missing some dependant library. In Eclipse Ok  but in  script console i   guess  you  will  have to  import this package/library  'org.apache.axis.client'


I have added all jars in WEB-INF-lib folder

I have imported as below

import org.apache.axis.client.AxisClient

then also I am getting ame error

@kunti pawarThe "org.apache.axis.client"  has  many  classes and  AxisClient  is one of  them  from your   error i  see reference  to  another   class,  could   you  also  add  this other one  "  import org.apache.axis.client.Service"   and  try  again.

Hi Moses Thomas,

bellows are my imported files then also I am getting same error

import org.apache.axis.client.AxisClient
import org.apache.axis.client.Service
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.axis.client.*

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 13, 2019 in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

554 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you