service fabric java application deployment failed in local cluster












0















I am new to service fabric and trying to deploy java application to local service fabric cluster with 5 nodes. i am using Ubuntu VM and following below steps to build and deploy it in asf cluster. while deploying i am getting below error. i tried to deploy in asf remote cluster also and got the same issue. Can you please help me on this.



Link :Jav Application deploymen to ASF cluster



Error code: enter image description here










share|improve this question



























    0















    I am new to service fabric and trying to deploy java application to local service fabric cluster with 5 nodes. i am using Ubuntu VM and following below steps to build and deploy it in asf cluster. while deploying i am getting below error. i tried to deploy in asf remote cluster also and got the same issue. Can you please help me on this.



    Link :Jav Application deploymen to ASF cluster



    Error code: enter image description here










    share|improve this question

























      0












      0








      0








      I am new to service fabric and trying to deploy java application to local service fabric cluster with 5 nodes. i am using Ubuntu VM and following below steps to build and deploy it in asf cluster. while deploying i am getting below error. i tried to deploy in asf remote cluster also and got the same issue. Can you please help me on this.



      Link :Jav Application deploymen to ASF cluster



      Error code: enter image description here










      share|improve this question














      I am new to service fabric and trying to deploy java application to local service fabric cluster with 5 nodes. i am using Ubuntu VM and following below steps to build and deploy it in asf cluster. while deploying i am getting below error. i tried to deploy in asf remote cluster also and got the same issue. Can you please help me on this.



      Link :Jav Application deploymen to ASF cluster



      Error code: enter image description here







      java azure azure-service-fabric service-fabric-stateless guest-executable






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 14:19









      Dhrumil ShahDhrumil Shah

      1,13051528




      1,13051528
























          3 Answers
          3






          active

          oldest

          votes


















          1














          Just tried this out and it worked for me so just going to ask some questions to make sure we didn't miss anything from the documents.



          Under DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg -> code, do you have two files?




          1. gs-spring-boot-0.1.0.jar

          2. entryPoint.sh


          The entryPoint.sh file should have the following contents:



          #!/bin/bash
          BASEDIR=$(dirname $0)
          cd $BASEDIR
          java -jar gs-spring-boot-0.1.0.jar



          Additionally, in the ServiceManifest.xml (located in DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg), there should be the following snippet:



             <CodePackage Name="code" Version="1.0.0">
          <EntryPoint>
          <ExeHost>
          <Program>entryPoint.sh</Program>
          <Arguments></Arguments>
          <WorkingFolder>CodePackage</WorkingFolder>
          </ExeHost>
          </EntryPoint>




          The Program property value "entryPoint.sh" has to be identical including casing with what's in your "code" folder.



          If the above all check out, then please respond and happy to dive deeper into this.






          share|improve this answer































            0














            @Dhrumil Shah, I replicated the steps provided in the document and was able to achieve the desired results successfully.



            Can you let me know if your java application is working fine without using service fabric and if you are using cli for your deployment?



            Also, please check if java is installed properly on your VM. Check the below link for more information:



            Java Webapp Deployment in Azure Service fabric explorer






            share|improve this answer
























            • Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

              – Dhrumil Shah
              Nov 27 '18 at 14:53



















            0














            I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correpted. i run yo doctor and corrected it. its work






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302358%2fservice-fabric-java-application-deployment-failed-in-local-cluster%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Just tried this out and it worked for me so just going to ask some questions to make sure we didn't miss anything from the documents.



              Under DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg -> code, do you have two files?




              1. gs-spring-boot-0.1.0.jar

              2. entryPoint.sh


              The entryPoint.sh file should have the following contents:



              #!/bin/bash
              BASEDIR=$(dirname $0)
              cd $BASEDIR
              java -jar gs-spring-boot-0.1.0.jar



              Additionally, in the ServiceManifest.xml (located in DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg), there should be the following snippet:



                 <CodePackage Name="code" Version="1.0.0">
              <EntryPoint>
              <ExeHost>
              <Program>entryPoint.sh</Program>
              <Arguments></Arguments>
              <WorkingFolder>CodePackage</WorkingFolder>
              </ExeHost>
              </EntryPoint>




              The Program property value "entryPoint.sh" has to be identical including casing with what's in your "code" folder.



              If the above all check out, then please respond and happy to dive deeper into this.






              share|improve this answer




























                1














                Just tried this out and it worked for me so just going to ask some questions to make sure we didn't miss anything from the documents.



                Under DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg -> code, do you have two files?




                1. gs-spring-boot-0.1.0.jar

                2. entryPoint.sh


                The entryPoint.sh file should have the following contents:



                #!/bin/bash
                BASEDIR=$(dirname $0)
                cd $BASEDIR
                java -jar gs-spring-boot-0.1.0.jar



                Additionally, in the ServiceManifest.xml (located in DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg), there should be the following snippet:



                   <CodePackage Name="code" Version="1.0.0">
                <EntryPoint>
                <ExeHost>
                <Program>entryPoint.sh</Program>
                <Arguments></Arguments>
                <WorkingFolder>CodePackage</WorkingFolder>
                </ExeHost>
                </EntryPoint>




                The Program property value "entryPoint.sh" has to be identical including casing with what's in your "code" folder.



                If the above all check out, then please respond and happy to dive deeper into this.






                share|improve this answer


























                  1












                  1








                  1







                  Just tried this out and it worked for me so just going to ask some questions to make sure we didn't miss anything from the documents.



                  Under DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg -> code, do you have two files?




                  1. gs-spring-boot-0.1.0.jar

                  2. entryPoint.sh


                  The entryPoint.sh file should have the following contents:



                  #!/bin/bash
                  BASEDIR=$(dirname $0)
                  cd $BASEDIR
                  java -jar gs-spring-boot-0.1.0.jar



                  Additionally, in the ServiceManifest.xml (located in DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg), there should be the following snippet:



                     <CodePackage Name="code" Version="1.0.0">
                  <EntryPoint>
                  <ExeHost>
                  <Program>entryPoint.sh</Program>
                  <Arguments></Arguments>
                  <WorkingFolder>CodePackage</WorkingFolder>
                  </ExeHost>
                  </EntryPoint>




                  The Program property value "entryPoint.sh" has to be identical including casing with what's in your "code" folder.



                  If the above all check out, then please respond and happy to dive deeper into this.






                  share|improve this answer













                  Just tried this out and it worked for me so just going to ask some questions to make sure we didn't miss anything from the documents.



                  Under DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg -> code, do you have two files?




                  1. gs-spring-boot-0.1.0.jar

                  2. entryPoint.sh


                  The entryPoint.sh file should have the following contents:



                  #!/bin/bash
                  BASEDIR=$(dirname $0)
                  cd $BASEDIR
                  java -jar gs-spring-boot-0.1.0.jar



                  Additionally, in the ServiceManifest.xml (located in DhrumilSpringServiceFabric->DhrumilSpringGettingStartedPkg), there should be the following snippet:



                     <CodePackage Name="code" Version="1.0.0">
                  <EntryPoint>
                  <ExeHost>
                  <Program>entryPoint.sh</Program>
                  <Arguments></Arguments>
                  <WorkingFolder>CodePackage</WorkingFolder>
                  </ExeHost>
                  </EntryPoint>




                  The Program property value "entryPoint.sh" has to be identical including casing with what's in your "code" folder.



                  If the above all check out, then please respond and happy to dive deeper into this.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 22 '18 at 16:29









                  hurulshuruls

                  362




                  362

























                      0














                      @Dhrumil Shah, I replicated the steps provided in the document and was able to achieve the desired results successfully.



                      Can you let me know if your java application is working fine without using service fabric and if you are using cli for your deployment?



                      Also, please check if java is installed properly on your VM. Check the below link for more information:



                      Java Webapp Deployment in Azure Service fabric explorer






                      share|improve this answer
























                      • Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

                        – Dhrumil Shah
                        Nov 27 '18 at 14:53
















                      0














                      @Dhrumil Shah, I replicated the steps provided in the document and was able to achieve the desired results successfully.



                      Can you let me know if your java application is working fine without using service fabric and if you are using cli for your deployment?



                      Also, please check if java is installed properly on your VM. Check the below link for more information:



                      Java Webapp Deployment in Azure Service fabric explorer






                      share|improve this answer
























                      • Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

                        – Dhrumil Shah
                        Nov 27 '18 at 14:53














                      0












                      0








                      0







                      @Dhrumil Shah, I replicated the steps provided in the document and was able to achieve the desired results successfully.



                      Can you let me know if your java application is working fine without using service fabric and if you are using cli for your deployment?



                      Also, please check if java is installed properly on your VM. Check the below link for more information:



                      Java Webapp Deployment in Azure Service fabric explorer






                      share|improve this answer













                      @Dhrumil Shah, I replicated the steps provided in the document and was able to achieve the desired results successfully.



                      Can you let me know if your java application is working fine without using service fabric and if you are using cli for your deployment?



                      Also, please check if java is installed properly on your VM. Check the below link for more information:



                      Java Webapp Deployment in Azure Service fabric explorer







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 23 '18 at 10:17









                      AmanGarg-MSFTAmanGarg-MSFT

                      713




                      713













                      • Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

                        – Dhrumil Shah
                        Nov 27 '18 at 14:53



















                      • Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

                        – Dhrumil Shah
                        Nov 27 '18 at 14:53

















                      Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

                      – Dhrumil Shah
                      Nov 27 '18 at 14:53





                      Thanks for your reply Aman.. I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correputed. i run yo doctor and corrected it. its works.

                      – Dhrumil Shah
                      Nov 27 '18 at 14:53











                      0














                      I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correpted. i run yo doctor and corrected it. its work






                      share|improve this answer




























                        0














                        I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correpted. i run yo doctor and corrected it. its work






                        share|improve this answer


























                          0












                          0








                          0







                          I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correpted. i run yo doctor and corrected it. its work






                          share|improve this answer













                          I found the issue after spending some time in ASF logger. The issue was my YO generator was not working properly. i mean Yo json file was correpted. i run yo doctor and corrected it. its work







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 27 '18 at 14:54









                          Dhrumil ShahDhrumil Shah

                          1,13051528




                          1,13051528






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302358%2fservice-fabric-java-application-deployment-failed-in-local-cluster%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Florida Star v. B. J. F.

                              Error while running script in elastic search , gateway timeout

                              Adding quotations to stringified JSON object values