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

kunti pawar June 13, 2018

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(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at com.polarion.alm.ws.client.tracker.TrackerWebServiceServiceLocator.<init>(TrackerWebServiceServiceLocator.java:16) at com.polarion.alm.ws.client.WebServiceFactory.<init>(WebServiceFactory.java:87) 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

0 votes
Moses Thomas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2018

@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'

Best!

kunti pawar June 15, 2018

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

kunti pawar June 18, 2018

I have imported as below

import org.apache.axis.client.AxisClient

then also I am getting ame error

Moses Thomas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 18, 2018

@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.

kunti pawar June 18, 2018

Hi Moses Thomas,

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

import com.polarion.alm.ws.client.WebServiceFactory;
import com.polarion.alm.ws.client.session.SessionWebService;
import com.polarion.alm.ws.client.tracker.TrackerWebService;
import com.polarion.alm.ws.client.types.tracker.WorkItem;
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