Creation of Object for Service class is not working

public CI[] getCIDetailsTest(String ci_type,String selectedCI) throws Exception{

        String endpoint = getProperty(customerID+"_endpoint");
        System.out.println("reached here .......done.."+endpoint);
        //here failed 
        Service service = new Service();
        System.out.println("reached here .......done..........."+service);

That is my statements in Java file

But, to my surprise it was unable to create Service Object..

It is printing first println statement and not printing second println statement. That means It was unable to creat Service object.

Is it jar problem? If it is jar problem, Which jar to be included?

Friends, Kindly Help me out to resolve this issue....


you should add this jar:

  1. math3-commons-3.2.jar
  2. XStream-1.4.4.jar
  3. jaxws-api-2.2.5.jar

The problem is the version of JAX-WS API. The classloader for your application first loaded the version included in Java SE or Java EE.

For Java SE 6 or Java EE 5, JAX-WS API 2.1. The constructors in, QName)

For Java SE 7 or Java EE 6, JAX-WS API 2.2. The constructors in, QName), QName, WebServiceFeature...)  // You need this!

There are three possible solutions (depends on whether it is a web application or standalone application):

  1. Use Java SE 7 or Java EE 6.
  2. Re-run wsdl2java with argument -frontend jaxws21 to generate JAX-WS 2.1 compliant code instead.
  3. Change the classloader for load first the classes included in the application.

you should refer this link

Are you sure the Service is (a not) abstract class and not an interface. It must also have a public constructor.

Need Your Help

XPath query for an attribute containing forward slash (/)

c# xml xpath selectsinglenode

I'm trying to do a SelectSingleNode on an XMLDocument using an XPath expression. However, when the attribute value that I'm searching contains multiple forward slashes (/), it returns null.

PLS-00103: Encountered the symbol " " when expecting one of the following

oracle plsql cursor

For some reason this wont work. I have got it down to the most basic operation to try and troubleshoot.