Cannot publish web service from PDSOE

Posted by mihai_neagoe on 16-May-2014 05:15

Hi,

I have an issue with publishing the mobile services from Progress Developer Studio. When I create a new one the webserver stops at 69% until the timeout and after this I receive the error

"Failed to deploy REST Service for: ExtraTestTheftService.war
REST request error: Deployment failure detected. Cause: null"

I checked the DLC\servers\tomcat directory and I can see a new folder pdsoe is created and contains the .war file and the corresponding folder for my service. There is also a expressDeploy.log file which contains

"The script started at 12:05:06,13 on vr 16/05/2014
Error:  The system cannot find the path specified.

The script stopped at 12:05:07,33 on vr 16/05/2014"

There is also an entry in catalina log file:

"mei 16, 2014 12:05:06 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/MyWebService]
mei 16, 2014 12:05:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
mei 16, 2014 12:05:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/MyWebService] startup failed due to previous errors
mei 16, 2014 12:05:16 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/MyWebService]
mei 16, 2014 12:05:16 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor C:\Progress\DLC113\servers\tomcat\conf\Catalina\localhost\MyWebService.xml
mei 16, 2014 12:05:16 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
mei 16, 2014 12:05:16 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/MyWebService] startup failed due to previous errors"

I assume this has to do with a configuration path not beeing set but I don't know where to check for additional information.

As a note I tried copying a .war file directly in tomcat\webapps and this one is correctly published.

Any ideas?

Thank you,

Mihai

All Replies

Posted by Anil Kumar on 16-May-2014 06:53

Hi MIhai,

Can you please check for more logs in the in following files

oerm.log file  - Tomcat directory (C:\Progress\11.3.1\OpenEdge\servers\tomcat\webapps\oerm\WEB-INF\oerm.data)

admsrv.log  -  OpenEdge Work directory

Also, can you provide complete stack trace for the error available in the PDS OE environment.

<PDS OE Workspace>\.metadata\.log

>>As a note I tried copying a .war file directly in tomcat\webapps and this one is correctly published

Copy paste a WAR file in the tomcat directory will deploy the app to OE Webserver (tomcat). However, this is different from deploying from tools like RESTMan and PDS OE. Deploying through copy paste will lose some of the restman features against the specific mobile service.

Thanks and Regards,

Anil Kumar.

Posted by mihai_neagoe on 23-May-2014 05:08

Hi Anil,

Sorry for late reply. This is the oerm.log file

[14/05/23@11:48:08.543+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             Initializing Application: /MyWebService

[14/05/23@11:48:08.543+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             Polling for application context

[14/05/23@11:48:16.602+0200] P-000000 T-http-bio-8980-exec-9359 2 _REST REST             Getting Manager Statistics

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 3 _REST REST             Initialized ApplicationManager Resource Class.

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             Undeploy request received for application Default

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 1 _REST ---------------- Rest Manager Operating Mode couldn't be determined. Cause :: null

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             RemoteAgent: PDSOE

[14/05/23@11:50:08.622+0200] P-000000 T-http-bio-8980-exec-9362 1 _REST ---------------- Error occurred in postApplicationWar. Cause: null

[14/05/23@11:50:17.356+0200] P-000000 T-http-bio-8980-exec-9349 2 _REST REST             Getting Manager Statistics

 

And from <PDS OE Workspace>\.metadata\.log:

!ENTRY com.openedge.pdt.core 1 20040 2014-05-23 11:48:16.599

!MESSAGE Comparing properties: got from OEM are: [Ljava.lang.Object;@1e04459Expected are: [Ljava.lang.Object;@a75e2e

!ENTRY com.openedge.pdt.core 1 20040 2014-05-23 11:48:16.599

!MESSAGE Executing the method : GET, And its path: /oem/containers/be0001c3838/restmanagers/localhost:resource.openedge.rest.restmgr1/statistics

!ENTRY com.openedge.pdt.core 1 20040 2014-05-23 11:48:16.603

!MESSAGE Response for the last executed command is : {"error":{"text":"Failed to retrieve runtime statistics\r\nREST request error: Unparseable date: \"Mon May 19 12:40:18 CEST 2014\"","source":"OpenEdge Management","number":"0","stack":[]}}

!ENTRY com.openedge.pdt.core 1 20030 2014-05-23 11:48:16.603

!MESSAGE OE Explorer connection created for admin@localhost:9090

!ENTRY com.openedge.pdt.core 1 20030 2014-05-23 11:48:16.604

!MESSAGE HTTP Client initializing admin@localhost:9090

!ENTRY com.openedge.pdt.core 1 20040 2014-05-23 11:48:16.604

!MESSAGE Executing the method : GET, And its path: /oem

!ENTRY com.openedge.pdt.core 1 20040 2014-05-23 11:48:16.610

!MESSAGE Response for the last executed command is : {"connections_url":"\/oem\/connections","containers_url":"\/oem\/containers","jsonresources_url":"\/oem\/resources\/json","version":"11.3"}

 

 

Posted by Michael Jacobs on 23-May-2014 06:25

It looks to me that the REST Manager is unable to determine that it is running in an OE supplied Tomcat development server (DLC/servers/tomcat) and rejects an application deployment operation from PDSOE.   (which it is suppose to do to prevent using PDSOE to publish to a production Tomcat server)   Something, I am not sure what, may be wrong in the DLC/servers/tomcat configuration.    Someone from the OERM development team needs to supply more detail as to how to debug the problem.

The PDSOE log I don’t know what is telling you.

Mike J.

[collapse]

Reply by mihai_neagoe

Hi Anil,

Sorry for late reply. This is the oerm.log file

[14/05/23@11:48:08.543+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             Initializing Application: /MyWebService

[14/05/23@11:48:08.543+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             Polling for application context

[14/05/23@11:48:16.602+0200] P-000000 T-http-bio-8980-exec-9359 2 _REST REST             Getting Manager Statistics

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 3 _REST REST             Initialized ApplicationManager Resource Class.

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             Undeploy request received for application Default

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 1 _REST ---------------- Rest Manager Operating Mode couldn't be determined. Cause :: null

[14/05/23@11:50:08.621+0200] P-000000 T-http-bio-8980-exec-9362 2 _REST REST             RemoteAgent: PDSOE

[/collapse]

Posted by knavneet on 24-May-2014 01:01

As Mike pointed out,  the REST Manager seems unable to determine if the Tomcat was OE supplied or not. If you have not changed any of the Tomcat configuration files, I would suggest looking into catalina logs (in $DLC/servers/tomcat/logs)to see if there are some problems like PermGen errors. Try restarting the Tomcat and retry publishing.

Posted by mihai_neagoe on 30-May-2014 06:15

I increased the allocated PermGen memory and restarted the webserver but the same error occured.

I made no changes to configuration files of Tomcat and I am using 11.3.1 version.

Posted by rlakenvelt on 05-Jun-2014 09:09

I've got the same error. Publishing works perfectly for some time, but then it suddenly stops working  without any reason.  

The only way to get it back working again (for a while) is to uninstall/install OpenEdge. OpenEdge 11.3.2, Windows 7.

Characteristics are the many errors  in the deploy log of the service: "Error:  The system cannot find the path specified.". The number of times this error appears is exacly the number of jar files in de tomcat/lib directory. So it seems it has something to do with copying jar files to the service-lib directory while deploying.

Posted by Anil Kumar on 05-Jun-2014 09:25

Hi Rlakenvelt,

Are you using the Tomcat which got shipped along with PDS OE or it is an external OE Web Server?

Also, can you please check if the same behavior is observed when publishing the service from restman (command line tool).

Thanks and Regards,

Anil Kumar.

Posted by rlakenvelt on 05-Jun-2014 12:06

I use the Tomcat shipped with PDSOE and deploying the warfile from restman gives the same errors.

The strange thing is that it works for a while, but at some moment, after several publishes it stop workings. Without any change to the Tomcat instance. Reinstalling OE solves the problem for a while, but the problem keeps coming back after some time.

This thread is closed