Project and Portfolio Management Practitioners Forum
cancel

Error in Webservices

Highlighted
Geetanjalee
Frequent Contributor.

Error in Webservices

Hi,

 

We are facing an issue with webservices. It was working earlier on AIX. Now moved to windows.

 

Error is: java.lang.NoClassDefFoundError: http://localhost:8445/itg/ppmservices/DemandService?wsdl

Caused by: java.lang.ClassNotFoundException: http:..localhost:8445.itg.ppmservices.DemandService?wsdl

        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Exception in thread "main"

exit code = 1

 

Errors occurred during command execution.

 

Code used in execution step currently is

 

ksc_local_exec sh [AS.BASE_PATH]WS\bin\GCM_GP_client.sh http://localhost:8445/itg/ppmservices/DemandService?wsdl [AS.ATTACHMENT_DIRNAME] [REQD.P.ISE_EXCEL] "[REQD.VP.ISE_EXCEL]" [AS.JDBC_URL] [AS.DB_USERNAME] "[AS.DB_PASSWORD]" [SYS.USER_ID] [REQ.REQUEST_ID] "[USR="admin".PASSWORD]" "[AS.EMAIL_NOTIFICATION_SENDER]"

 

Earlier on AIX the code was ksc_local_exec [AS.BASE_PATH]WS/bin/GCM_GP_client.sh [AS.BASE_URL] [AS.ATTACHMENT_DIRNAME] [REQD.P.ISE_EXCEL] "[REQD.VP.ISE_EXCEL]" [AS.JDBC_URL] [AS.DB_USERNAME] "[AS.DB_PASSWORD]" [SYS.USER_ID] [REQ.REQUEST_ID] "[USR="admin".PASSWORD]" "[AS.EMAIL_NOTIFICATION_SENDER]"

 

Stubs have been regenerated after moving from AIX to Windows. Any idea what is missing in this case?

10 REPLIES
Kerim KILIC
Honored Contributor.

Re: Error in Webservices

may be server.conf parameter

Utkarsh_Mishra
Acclaimed Contributor.

Re: Error in Webservices

Try to convert .sh into .bat

 

Secondly in .sh script (if you have taken reference from web service tool kit) then the first argument must be the package.class (which you are calling) then goes the arguments

 

Here in the error it is considering the WSDl as the class, which it is not able to find.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
Geetanjalee
Frequent Contributor.

Re: Error in Webservices

We managed to get past that error. Now the error is:

Exception in thread "main" org.apache.axis2.AxisFault: Service not found operation terminated !!
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at com.mercury.itg.ws.dm.client.DemandServiceStub.createRequest(DemandServiceStub.java:1086)
at examples.dm.DelDict.createRequest(DelDict.java:3570)
at examples.dm.DelDict.main(DelDict.java:168)
KSC_EXIT_STATUS 1

 

Any suggestions?

penoles
Super Contributor.

Re: Error in Webservices

Is there any code change to GCM_GP_client.sh ? the argument it taked [AS.BASE_URL] shall not be equal to current value http://localhost:8445/itg/ppmservices/DemandService?wsdl 

Oscar_Pereira
Honored Contributor.

Re: Error in Webservices

Hi,

 

Have you test with different web services? meaning, can the issue be narrow down to a specific web service ?

 

Does this new windows server has internet connection ? 

 

Regards

Oscar p

Geetanjalee
Frequent Contributor.

Re: Error in Webservices

Hi,

 

Then waht should be the value of base_url that is being passed?

Geetanjalee
Frequent Contributor.

Re: Error in Webservices

Hi Oscar,

Currently this is the only web service being used. No interbet connection.

Regards,
Geetanjalee
penoles
Super Contributor.

Re: Error in Webservices

[AS.BASE_URL] is defined wiith com.kintana.core.server.BASE_URL in  server.conf, in your case it should be http://localhost:8445

Geetanjalee
Frequent Contributor.

Re: Error in Webservices

That didnt work.

 

Exception in thread "main" org.apache.axis2.AxisFault: For input string: "8445ppmservices"; nested exception is:
java.net.MalformedURLException: For input string: "8445ppmservices"; nested exception is:
org.apache.axis2.AxisFault: For input string: "8445ppmservices"; nested exception is:
java.net.MalformedURLException: For input string: "8445ppmservices"
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at com.mercury.itg.ws.dm.client.DemandServiceStub.createRequest(DemandServiceStub.java:1086)
at examples.dm.DelDict.createRequest(DelDict.java:3570)
at examples.dm.DelDict.main(DelDict.java:168)
Caused by: org.apache.axis2.AxisFault: For input string: "8445ppmservices"; nested exception is:
java.net.MalformedURLException: For input string: "8445ppmservices"
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:338)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
... 6 more
Caused by: java.net.MalformedURLException: For input string: "8445ppmservices"
at java.net.URL.(URL.java:601)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:286)
... 7 more
KSC_EXIT_STATUS 1

 

 

penoles
Super Contributor.

Re: Error in Webservices

it seems you need add / as following
http://localhost:8445/