Starting Rest Manager - Forum - Mobile - Progress Community

Starting Rest Manager

 Forum

Starting Rest Manager

This question is not answered

Does anybody know the process of how to get the rest manager to start on an external tomcat. we are not using the tomcat version that comes with progress.

thanks.

All Replies
  • Hi anikumar,

    The deployment went through fine, we enabled the rest manager but once again it still does not work.

    The app still keeps loading when i try run it. 

  • Are you unable to access the REST application that you deployed?
     
    Check for the errors in oerm.log file and application log file (@ webapps/<appname>/WEB-INF/adapters/logs)
     
    From: meyrick [mailto:bounce-meyrick@community.progress.com]
    Sent: Thursday, March 13, 2014 12:05 PM
    To: TU.Mobile@community.progress.com
    Subject: RE: Starting Rest Manager
     
    Reply by meyrick

    Hi anikumar,

    The deployment went through fine, we enabled the rest manager but once again it still does not work.

    Stop receiving emails on this subject.

    Flag this post as spam/abuse.

  • Hi Smunigal,

    There is no errors in the log file. It seems to be up and running, but we dont know exactly how to confirm if its running correctly.

  • Can you try to access the application using browser in below format:
     
    http://<hostname>:<port>/<appname>/rest
     
    or query the application using restman command:
     
    restman –i restmgr1 –<appname> –q
     
    From: meyrick [mailto:bounce-meyrick@community.progress.com]
    Sent: Thursday, March 13, 2014 12:36 PM
    To: TU.Mobile@community.progress.com
    Subject: RE: Starting Rest Manager
     
    Reply by meyrick

    Hi Smunigal,

    There is no errors in the log file. It seems to be up and running, but we dont know exactly how to confirm if its running correctly.

    Stop receiving emails on this subject.

    Flag this post as spam/abuse.

  • Hi meyrick,

    Can you please elaborate on following

    >> The deployment went through fine, we enabled the rest manager but once again it still does not work. The app still keeps loading when i try run it.

    If I understand this correctly the app got deployed properly to Tomcat location (webapps) and the application cannot be accessed properly?

    Are you trying to access the application from:

    - General browser?

    - Any REST Client (say Postman, RESTClient)?

    You can check the status of the deployed applications from the restman. Use following command to verify the same:

                     proenv>restman -i restmgr1 -appname <Application Name> -list

    Know the application status from browser:

    http://localhost:8980/<Service or App Name>/

    Ex: http://localhost:8980/ExprTestService/

    The response will be 'REST Adapter' in the browser body.

    For any of the problems with respect to deployed application the logs are located in specific application under webapps directory and the rest manager (server) logs are located in oerm.log

    Application logs: $DLC/server/tomcat/webapps/<App Name>/WEB-INF/adapters/logs

    oerm.log : $DLC\servers\tomcat\webapps\oerm\WEB-INF\oerm.data\oerm.log

    Hope this helps.

    Thanks and Regards,

    Anil Kumar.

  • We have the Rest Service up and running and can access it through the browser, but the mobile app itself wont connect.

  • Hi meyrick,

    >>but the mobile app itself wont connect

    Can you please check for the availability of the REST URI in the Mobile App Builder in 'MobileService_Settings' page under 'Services' section. It should point to the IP address such that it can be accessed from external machines.

    Attached snapshot specifying.

    Thanks and Regards,

    Anil Kumar.

  • Hi anikumar,

    we are using the correct IP and we can connect to it from the test tablet browser but not from within the app. ie we can see the rest service is there from the internet but the app will not connect to it.

  • Hi meyrick,

    How did you create the mobile app? Did you create it from Progress Developer Studio or the Mobile App Builder? If so, is it an "Express" app, a "Session-Enabled" app, or a default Phone or Tablet project?

    --Wayne Henshaw

  • Hi Wayne,

    I created the app from the developer studio and then you click on the project in the developer studio and it takes you to the builder. I'm not sure how to check, but I'm pretty sure its the default tablet project.  

  • How does the mobile app connect to the service? Do you use the Session Services? And what do you have for Session services? If you created the app before this past Tuesday (March 11), you would have a group that consists of:

     MobileService_Login

     MobileService_Logout

     MobileService_Settings

    If you created it after Tuesday morning, you would have a group with these:

     SessionService_Login

     SessionService_Logout

     SessionService_Session

     SessionService_Settings

    There was a change in the new release of the Mobile App  Builder that requires you to make sure you invoke the SessionService_Session before you invoke the Login. Could that be the problem?  (If not, it would be good to see if we can get some  info on what the error is when you try to connect. I can help you with that.)

  • I have the mobileService. The app is loading through passed the code, which it wasn't doing before but there's no data being returned to a simple list item for a look up. This is the code i am using on the first page:

    if ($t.ProgressSession == undefined || $t.ProgressSession.loginResult != progress.data.Session.LOGIN_SUCCESS) {

     var settings = MyTestService_beCustomer_Settings;

     var pdsession = $t.ProgressSession;

     if (pdsession == undefined)    

       pdsession = $t.ProgressSession = new progress.data.Session();

       if (settings.serviceURI == undefined || settings.serviceURI == '')

         console.log("serviceURI was not specified." +

                   " catalogURI: " + settings.catalogURI +

                   " resourceName: " + settings.resourceName);

     var loginResult = pdsession.login (settings.serviceURI, "", "");

     if (loginResult != progress.data.Session.LOGIN_SUCCESS) {

       var msg = 'ERROR: Login failed with code: ' + loginResult;

       console.log(msg);

       alert(msg);

       return;

     }

     pdsession.addCatalog(settings.catalogURI);

    }

  • So the pdsession.login() and the pdsession.addCatalog() execute successfully, but when a JSDO tries to get data, there is no data returned? Does the server return an error on the request for data, or does it return "200 OK" but has no data?

  • This is from the localhost access log, does this look correct? We didnt get an error.

    196.11.122.163 - - [13/Mar/2014:15:53:24 +0200] "OPTIONS /MyTest/static/home.html HTTP/1.1" 200 -

    196.11.122.163 - - [13/Mar/2014:15:53:24 +0200] "GET /MyTest/static/home.html HTTP/1.1" 200 35

    196.11.122.163 - - [13/Mar/2014:15:53:24 +0200] "OPTIONS /MyTest/static/mobile/MyTestService.json HTTP/1.1" 200 -

    196.11.122.163 - - [13/Mar/2014:15:53:24 +0200] "GET /MyTest/static/mobile/MyTestService.json HTTP/1.1" 200 2990

  • That looks fine, those entries indicate that the login and addCatalog worked. Are there entries for when the app requests the data?