Project and Portfolio Management Practitioners Forum
cancel

PPM Web Services Error - While executing run_client.bat file

Highlighted
MandyR
Trusted Contributor.

PPM Web Services Error - While executing run_client.bat file

Hi,

 

While running run_client.bat file from command prompt for java getting below error:

 

C:\PPM\server\app\deploy\itg.war\download\webservice\webservice_toolkit\java\bin
>run_client.bat examples.dm.DemandServiceClient http://localhost:8080/itg.war/WE
B-INF/ppmservices/DemandService
running ...
Starting Demand Service tests...
Jun 24, 2013 11:00:18 PM org.apache.axis2.deployment.DeploymentEngine prepareRep
ository
INFO: no services directory found under C:\PPM\server\app\deploy\itg.war\downloa
d\webservice\webservice_toolkit\java
Jun 24, 2013 11:00:18 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1
Jun 24, 2013 11:00:19 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart-1.1
Exception in thread "main" org.apache.axis2.AxisFault: HTTP Transport error : '4
05' - 'Method Not Allowed'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not A
llowed'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not A
llowed'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not A
llowed'
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
monsHTTPTransportSender.java:227)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:237)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
isOperation.java:202)
        at com.mercury.itg.ws.dm.client.DemandServiceStub.createRequest(DemandSe
rviceStub.java:1086)
        at examples.dm.DemandServiceClient.createRequest(DemandServiceClient.jav
a:152)
        at examples.dm.DemandServiceClient.main(DemandServiceClient.java:66)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method No
t Allowed'; nested exception is:
        org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not A
llowed'
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
geWithCommons(CommonsHTTPTransportSender.java:344)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
monsHTTPTransportSender.java:204)
        ... 6 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method No
t Allowed'
        at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPS
ender.java:149)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa
geWithCommons(CommonsHTTPTransportSender.java:335)
        ... 7 more

 

I am new to it. Kindly please help me on this.

 

Thanks,

Mandy

10 REPLIES
MandyR
Trusted Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Kindly please help me on this. Any help would in this regard would be much appreciated.

MandyR
Trusted Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Hi,

 

I have run the below command from command prompt but it is giving an error.

 

run_client.bat C:/PPM/server/app/deploy/itg.war/download/webservice/webservice_toolkit/java/client/src/examples/dm/DemandServiceClient http://localhost:8445/itg.war/WEB-INF/ppmservices/DemandService

 

from

C:/PPM/server/app/deploy/itg.war/download/webservice/webservice_toolkit/java/bin>

 

**********************Error Details***************************

 

C:\PPM\server\app\deploy\itg.war\download\webservice\webservice_toolkit\java\bin
>run_client.bat C:/PPM/server/app/deploy/itg.war/download/webservice/webservice_
toolkit/java/client/src/examples/dm/DemandServiceClient http://localhost:8445/it
g.war/WEB-INF/ppmservices/DemandService
running ...
Exception in thread "main" java.lang.NoClassDefFoundError: C:/PPM/server/app/dep
loy/itg/war/download/webservice/webservice_toolkit/java/client/src/examples/dm/D
emandServiceClient
Caused by: java.lang.ClassNotFoundException: C:.PPM.server.app.deploy.itg.war.do
wnload.webservice.webservice_toolkit.java.client.src.examples.dm.DemandServiceCl
ient
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
C:\PPM\server\app\deploy\itg.war\download\webservice\webservice_toolkit\java\bin>

*******************************************************************************************

 

Kindly please help me on this.

 

Thanks,

Mandy

 

 

Utkarsh_Mishra
Acclaimed Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

You might not have comipled the client to create .class file.

 

Your run_client.sh is looking into incorret directory

 

C:/PPM/server/app/dep
loy/itg/war/download/webservice/webservice_toolkit/java/client/src/examples/dm/D
emandServiceClient

 

 

it should be

 

../java/client/classes/........

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
MandyR
Trusted Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Thanks for reply Utkarsh.

The class files are at location
C:\PPM\server\app\deploy\itg.war\download\webservice\webservice_toolkit\java\client\classes\examples\dm

There is a directory called /itg.war/, it has dot (.) in his name so while executing the command it gets converted to /itg/war/(dot replaced by slash '/') so it searches the java class file under /itg/war/ path which does not exist and throws exception error.

This directory is created while installing the PPM. Please suggest how to resolve the issue.

Thanks,
Mandy
Utkarsh_Mishra
Acclaimed Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

It is not necessary to extract the webservice toolkit within PPM web-context.

 

You can create a directoy in /itg/webservice and extract the toolkit here. Just make sure that the path has NO blank spaces.

 

After this you are ready to go, just follow the step mentioned in web service guide.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
MandyR
Trusted Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

I have extracted the toolkit at below path:

C:\PPM\server\app\deploy\webservice_toolkit
compiled the files and .class files created at path

C:\PPM\server\app\deploy\webservice_toolkit\java\client\classes\examples\dm

Now, I have run the below command:

run_client.bat C:\PPM\server\app\deploy\webservice_toolkit\java\client\classes\examples\dm\DemandServiceClient http://localhost:8445/itg.war/WEB-INF/ppmservices/DemandService

from
C:\PPM\server\app\deploy\webservice_toolkit\java\bin>

it is still giving error as shown below:

***************************Error Details***************
C:\PPM\server\app\deploy\webservice_toolkit\java\bin>run_client.bat C:\PPM\server\app\deploy\webservice_toolkit\java\cli
ent\classes\examples\dm\DemandServiceClient http://localhost:8445/itg.war/WEB-INF/ppmservices/DemandService
running ...
Exception in thread "main" java.lang.NoClassDefFoundError: C:\PPM\server\app\deploy\webservice_toolkit\java\client\class
es\examples\dm\DemandServiceClient
Caused by: java.lang.ClassNotFoundException: C:\PPM\server\app\deploy\webservice_toolkit\java\client\classes\examples\dm
\DemandServiceClient
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)
C:\PPM\server\app\deploy\webservice_toolkit\java\bin>
*************************************************

Am I doing something wrong?
Please help.

Thanks,
Mandy

Utkarsh_Mishra
Acclaimed Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Dear you are not telling the run_client, which class need to be executed.

 

here is the example

 

sh run_client.sh examples.fm.FsUpdateActuals http://localhost:8080/itg/ppmservices/FinanceService -parentType PROJECT -parentId 443503

 

OR

 

run_client examples.dm.DemandServiceClient

 

here in the above command examples.db.DemandServiceClient is the class file, which will get executed. Secondly depending on your Client configuration you need to pass the Service_URL (like in example 1)

 

 

-------------------------------

 

Secondly no need to pass whole folder path in run_client.bat. Simply tell the class file, like examples.dm.DemandServiceClient

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
MandyR
Trusted Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Hi Utkarsh,

As suggetsed by you - I have run the below command from command prompt and it displays an error:

C:\PPM\server\app\deploy\webservice_toolkit\java\bin>run_client.bat examples.dm.DemandServiceClient http://localhost:844
5/itg.war/WEB-INF/ppmservices/DemandService

****************Error Details******************
C:\PPM\server\app\deploy\webservice_toolkit\java\bin>run_client.bat examples.dm.DemandServiceClient http://localhost:844
5/itg.war/WEB-INF/ppmservices/DemandService
running ...
Starting Demand Service tests...
Jul 9, 2013 1:42:59 AM org.apache.axis2.deployment.DeploymentEngine prepareRepository
INFO: no services directory found under C:\PPM\server\app\deploy\webservice_toolkit\java
Jul 9, 2013 1:42:59 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1
Jul 9, 2013 1:43:00 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart-1.1
Exception in thread "main" org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'; nested excep
tion is:
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'
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.DemandServiceClient.createRequest(DemandServiceClient.java:158)
at examples.dm.DemandServiceClient.main(DemandServiceClient.java:67)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender
.java:344)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
... 6 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '405' - 'Method Not Allowed'
at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:149)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender
.java:335)
... 7 more
C:\PPM\server\app\deploy\webservice_toolkit\java\bin>
*******************************************************

Since our environment is Single Sign ON (SSO) integrated, localhost is reachable only on port 8445.

Please let me know if I did any mistake.

Thanks,
Mandy
Utkarsh_Mishra
Acclaimed Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Run this C:\PPM\server\app\deploy\webservice_toolkit\java\bin>run_client.bat examples.dm.DemandServiceClient http://localhost:8445/itg/ppmservices/DemandService Secondly if there is SSO then you need to make necessary changes in authentication class within Security folder. For more details refer webservice guide.
Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
MandyR
Trusted Contributor.

Re: PPM Web Services Error - While executing run_client.bat file

Hi,

 

We have now disabled our SSO integration with PPM to test Web Services.

 


We have following entry in sever.conf file:

com.kintana.core.server.HTTP_PORT=8444

 

So executing the below command from command prompt to test OOTB Web Service.

 

run_client.bat examples.rm.ResourceServiceClient https://localhost:8444/itg/ppmservices/ResourceService

 

But it is giving the below error:

*************************************************************


C:\PPM\server\app\deploy\itg.war\download\webservice\webservice_toolkit\java\bin>run_client.bat examples.rm.ResourceServ
iceClient https://localhost:8444/itg/ppmservices/R
running ...
Starting Resource Service tests...
Aug 13, 2013 12:17:45 AM org.apache.axis2.deployment.DeploymentEngine prepareRepository
INFO: no services directory found under C:\PPM\server\app\deploy\itg.war\download\webservice\webservice_toolkit\java
Aug 13, 2013 12:17:45 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1
Aug 13, 2013 12:17:46 AM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : rampart-1.1
Test creating resource pool...
Exception in thread "main" org.apache.axis2.AxisFault: Remote host closed connection during handshake; nested exception
is:
        javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake; nested exception is:
        org.apache.axis2.AxisFault: Remote host closed connection during handshake; nested exception is:
        javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        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.rm.client.ResourceServiceStub.createResourcePools(ResourceServiceStub.java:482)
        at examples.rm.ResourceServiceClient.createResourcePools(ResourceServiceClient.java:649)
        at examples.rm.ResourceServiceClient.testCreateResourcePool(ResourceServiceClient.java:322)
        at examples.rm.ResourceServiceClient.main(ResourceServiceClient.java:107)
Caused by: org.apache.axis2.AxisFault: Remote host closed connection during handshake; nested exception is:
        javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender
.java:344)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
        ... 7 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:808)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
        at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
        at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2077)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
        at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
        at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:124)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender
.java:335)
        ... 8 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
        at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
        ... 23 more


************************************************************************************

Is there any problem with web service security.

Please help me on this.

 

Thanks,

Mandy