1 Reply Latest reply on Jun 8, 2015 12:05 PM by ereeber

    What is the most basic app to display a canvas from Tomcat?

    chrisbrown

      I've been trying to work with the Jive Java SDK, but it includes everything and the kitchen sink so it's a bit overwhelming. I'm trying to understand what the minimal code is to display "Hello Jive!" from a canvas app in Tomcat rather than NodeJS.

       

      Say I have in Tomcat:

      MyApp

           WEB-INF

                web.xml

           canvas.jsp

       

      What would I need to configure and package as an extension.zip to install to be able to connect to it? Here's what I think so far, but not sure about the contents of the config files to connect it up:

       

      MyApp

           data

           i18n

           definition.json

           meta.json

       

       

       

      Ellen Reeber

        • Re: What is the most basic app to display a canvas from Tomcat?
          ereeber

          I have tried to do this on my local instance. My war file is deployed to port 8090 and jive is running on 8080 as usual. Jive can't find my definition.json and meta.json despite that they are present in the zip and have all the normal permissions. Here is their contents:

           

          definition.json

          {

             "integrationUser": {

             "systemAdmin": false
             },

             "osapps": [

            {

             "name": "Advanced User Profile",
             "id": "866dc4df-0d48-4b94-9f8f-50fe995ae89b",
             "appPath": "866dc4df0d484b949f8f50fe995ae89b",
             "url": "http://localhost:8090/basic-app-test_war/apps/advancedProfile/app.xml"
             }

            ]

          }

           

          meta.json

          {

             "package_version": "1.0",
             "id": "4daa6ea3-5639-4acc-9f9b-00e0f2b7255b",
             "uuid": "4daa6ea3-5639-4acc-9f9b-00e0f2b7255b",
             "type": "client-app",
             "name": "Advanced Employee Profile",
             "description": "Profile addition",

             "author" : "Ellen Reeber",
             "author_affiliation" : "",
             "author_email" : "",

             "icon_16": "extension-16.png",
             "icon_48": "extension-48.png",
             "icon_128": "extension-128.png",

             "service_url": "http://localhost:8090/basic-app-test_war",

             "register_url": "%serviceURL%/example/instance/register",
             "unregister_url": "%serviceURL%/example/instance/unregister",

             "minimum_version": "0000",
             "status": "available",
             "released_on": "2015-06-05T13:04:48.806-0400"
          }

           

          It was also mentioned by Ryan Rutan that we needed register_url and unregister_url in the Announcing the Jive SDK (Java) Jersey Edition on GitHub Open Source, though it says Getting Started > Building a Jive Add-On that they are optional.