Deploying spring boot web app to azure app service via bitbucket pipeline creates an exploded jar file in wwwrootCannot Deploy Spring Boot Application to Azurehow can i configure Web.config file in azure java app deployed by azure app service portal UISpring Boot executable jar “invalid or corrupted jar file”Deploy Spring Boot app from bitbucket pipeline to azure?Issue building JAR out of Spring app that can be deployed on AzureDeploy Spring Boot jar on Azure App ServiceAzure: App Service: Deploy Virtual DirectorySpring boot web app giving 404 error when ran with java -jarMultiple web.config for azure app using java spring bootSpring Boot log file relative to jar directory not start directory

Why does the salt in the oceans not sink to the bottom?

Why is the UH-60 tail rotor canted?

Why did computer video outputs go from digital to analog, then back to digital?

Were the Apollo broadcasts recorded locally on the LM?

Does switching on an old games console without a cartridge damage it?

Is the apartment I want to rent a scam?

Short story where a flexible reality hardens to an unchanging one

What is a plausible power source to indefinitely sustain a space station?

What kind of world would drive brains to evolve high-throughput sensory?

Why do people say "I am broke" instead of "I am broken"?

I have a domain, static IP address and many devices I'd like to access outside my house. How do I route them?

Are there any documented cases of extinction of a species of fungus?

How to work a regular job as a former celebrity

Pass USB 3.0 connection through D-SUB connector

High income and difficulty during interviews

German phrase for 'suited and booted'

How am I supposed to put out fires?

Book in which the "mountain" in the distance was a hole in the flat world

Adding one more column to a table

How does mathematics work?

How often should alkaline batteries be checked when they are in a device?

Would using carbon dioxide as fuel work to reduce the greenhouse effect?

How to run a substitute command on only a certain part of the line

Other than a swing wing, what types of variable geometry have flown?



Deploying spring boot web app to azure app service via bitbucket pipeline creates an exploded jar file in wwwroot


Cannot Deploy Spring Boot Application to Azurehow can i configure Web.config file in azure java app deployed by azure app service portal UISpring Boot executable jar “invalid or corrupted jar file”Deploy Spring Boot app from bitbucket pipeline to azure?Issue building JAR out of Spring app that can be deployed on AzureDeploy Spring Boot jar on Azure App ServiceAzure: App Service: Deploy Virtual DirectorySpring boot web app giving 404 error when ran with java -jarMultiple web.config for azure app using java spring bootSpring Boot log file relative to jar directory not start directory






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want to deploy my spring boot project to Azure app service. I setup the bitbucket side as per the document. I have the bitbucket-pipelines.yml step as follows.



- step:
name: deploy to Azure cloud
image: maven:3.5.2
trigger: manual
deployment: production
script:
- mvn clean compile package
- pipe: microsoft/azure-web-apps-deploy:1.0.1
variables:
AZURE_APP_ID: xxxxxxxxxxxxxxxxxx
AZURE_PASSWORD: xxxxxxxxxxxxxxxxx
AZURE_TENANT_ID: xxxxxxxxxxxxxxxx
AZURE_RESOURCE_GROUP: 'xxxxxxxxxxxx'
AZURE_APP_NAME: 'xxxxxxxx'
ZIP_FILE: 'app.jar'


Now when I push my code to bitbucket, it sends the app.jar to azure. But it is in exploded (unzipped) version in the D:homesitewwwroot> directory of the azure container. So I see all my updated code in the wwwroot, but not in a jar file.  Basically the jar file is unzipped in to directories (BOOT-INF,META-INF, org etc). But my web.config is looking for the app.jar file to execute the spring boot app. This is how web.config look like.



<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<httpPlatform processPath="%JAVA_HOME%binjava.exe"
arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar &quot;%HOME%sitewwwrootapp.jar&quot;">
</httpPlatform>
</system.webServer>
</configuration>


so how can I get the app.jar file in the wwwroot directory of azure container? I can manually create the app.jar using the unzipped (exploded) folders (by logging in to the azure console through K-advanced tools). But it is too much manual process then. Else I should be able to modify the web.config file to run the unzipped version of my spring boot app. I really need help for this. Thank you.










share|improve this question




























    0















    I want to deploy my spring boot project to Azure app service. I setup the bitbucket side as per the document. I have the bitbucket-pipelines.yml step as follows.



    - step:
    name: deploy to Azure cloud
    image: maven:3.5.2
    trigger: manual
    deployment: production
    script:
    - mvn clean compile package
    - pipe: microsoft/azure-web-apps-deploy:1.0.1
    variables:
    AZURE_APP_ID: xxxxxxxxxxxxxxxxxx
    AZURE_PASSWORD: xxxxxxxxxxxxxxxxx
    AZURE_TENANT_ID: xxxxxxxxxxxxxxxx
    AZURE_RESOURCE_GROUP: 'xxxxxxxxxxxx'
    AZURE_APP_NAME: 'xxxxxxxx'
    ZIP_FILE: 'app.jar'


    Now when I push my code to bitbucket, it sends the app.jar to azure. But it is in exploded (unzipped) version in the D:homesitewwwroot> directory of the azure container. So I see all my updated code in the wwwroot, but not in a jar file.  Basically the jar file is unzipped in to directories (BOOT-INF,META-INF, org etc). But my web.config is looking for the app.jar file to execute the spring boot app. This is how web.config look like.



    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <handlers>
    <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="%JAVA_HOME%binjava.exe"
    arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar &quot;%HOME%sitewwwrootapp.jar&quot;">
    </httpPlatform>
    </system.webServer>
    </configuration>


    so how can I get the app.jar file in the wwwroot directory of azure container? I can manually create the app.jar using the unzipped (exploded) folders (by logging in to the azure console through K-advanced tools). But it is too much manual process then. Else I should be able to modify the web.config file to run the unzipped version of my spring boot app. I really need help for this. Thank you.










    share|improve this question
























      0












      0








      0








      I want to deploy my spring boot project to Azure app service. I setup the bitbucket side as per the document. I have the bitbucket-pipelines.yml step as follows.



      - step:
      name: deploy to Azure cloud
      image: maven:3.5.2
      trigger: manual
      deployment: production
      script:
      - mvn clean compile package
      - pipe: microsoft/azure-web-apps-deploy:1.0.1
      variables:
      AZURE_APP_ID: xxxxxxxxxxxxxxxxxx
      AZURE_PASSWORD: xxxxxxxxxxxxxxxxx
      AZURE_TENANT_ID: xxxxxxxxxxxxxxxx
      AZURE_RESOURCE_GROUP: 'xxxxxxxxxxxx'
      AZURE_APP_NAME: 'xxxxxxxx'
      ZIP_FILE: 'app.jar'


      Now when I push my code to bitbucket, it sends the app.jar to azure. But it is in exploded (unzipped) version in the D:homesitewwwroot> directory of the azure container. So I see all my updated code in the wwwroot, but not in a jar file.  Basically the jar file is unzipped in to directories (BOOT-INF,META-INF, org etc). But my web.config is looking for the app.jar file to execute the spring boot app. This is how web.config look like.



      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
      <system.webServer>
      <handlers>
      <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
      </handlers>
      <httpPlatform processPath="%JAVA_HOME%binjava.exe"
      arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar &quot;%HOME%sitewwwrootapp.jar&quot;">
      </httpPlatform>
      </system.webServer>
      </configuration>


      so how can I get the app.jar file in the wwwroot directory of azure container? I can manually create the app.jar using the unzipped (exploded) folders (by logging in to the azure console through K-advanced tools). But it is too much manual process then. Else I should be able to modify the web.config file to run the unzipped version of my spring boot app. I really need help for this. Thank you.










      share|improve this question














      I want to deploy my spring boot project to Azure app service. I setup the bitbucket side as per the document. I have the bitbucket-pipelines.yml step as follows.



      - step:
      name: deploy to Azure cloud
      image: maven:3.5.2
      trigger: manual
      deployment: production
      script:
      - mvn clean compile package
      - pipe: microsoft/azure-web-apps-deploy:1.0.1
      variables:
      AZURE_APP_ID: xxxxxxxxxxxxxxxxxx
      AZURE_PASSWORD: xxxxxxxxxxxxxxxxx
      AZURE_TENANT_ID: xxxxxxxxxxxxxxxx
      AZURE_RESOURCE_GROUP: 'xxxxxxxxxxxx'
      AZURE_APP_NAME: 'xxxxxxxx'
      ZIP_FILE: 'app.jar'


      Now when I push my code to bitbucket, it sends the app.jar to azure. But it is in exploded (unzipped) version in the D:homesitewwwroot> directory of the azure container. So I see all my updated code in the wwwroot, but not in a jar file.  Basically the jar file is unzipped in to directories (BOOT-INF,META-INF, org etc). But my web.config is looking for the app.jar file to execute the spring boot app. This is how web.config look like.



      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
      <system.webServer>
      <handlers>
      <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
      </handlers>
      <httpPlatform processPath="%JAVA_HOME%binjava.exe"
      arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar &quot;%HOME%sitewwwrootapp.jar&quot;">
      </httpPlatform>
      </system.webServer>
      </configuration>


      so how can I get the app.jar file in the wwwroot directory of azure container? I can manually create the app.jar using the unzipped (exploded) folders (by logging in to the azure console through K-advanced tools). But it is too much manual process then. Else I should be able to modify the web.config file to run the unzipped version of my spring boot app. I really need help for this. Thank you.







      java azure spring-boot bitbucket bitbucket-pipelines






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 14:37









      Shehan SimenShehan Simen

      3233 silver badges15 bronze badges




      3233 silver badges15 bronze badges






















          0






          active

          oldest

          votes










          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%2f55359812%2fdeploying-spring-boot-web-app-to-azure-app-service-via-bitbucket-pipeline-create%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          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%2f55359812%2fdeploying-spring-boot-web-app-to-azure-app-service-via-bitbucket-pipeline-create%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

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현