The artefacts generated after the mvn clean install has the classes and lib folder generated inside the snapshot war.
However, after the deploy action when my webapp failed to function as expected,
I connected to the container via ssh and found that WEB-INF folder is empty.
The folder structure should be WEB-INF\classes\com\valeykey\frontend.
The class files must be inside this directory structure.
Any insights will be really helpful, thanks in advance.
Below is my GH Actions workflow file >
name: Build and deploy WAR app to Azure Web App - JavaWebAppfromPortal
name: Build and deploy JAR app to Azure Web App
env:
JAVA_VERSION: '11' # set this to the Java version to use
DISTRIBUTION: microsoft # set this to the Java distribution
AZURE_WEBAPP_PACKAGE_PATH : ./AppService/JavaWebApp
I am Deploying a Simple Java Web App in Azure App Service using GitHub Actions workflow file. App Service is running on Java11/Tomcat 9.0 stack.
Java Code > https://github.com/BasujitaBhattacharya/JavaWebApp.
The artefacts generated after the mvn clean install has the classes and lib folder generated inside the snapshot war. However, after the deploy action when my webapp failed to function as expected, I connected to the container via ssh and found that WEB-INF folder is empty.
The folder structure should be WEB-INF\classes\com\valeykey\frontend. The class files must be inside this directory structure.
Any insights will be really helpful, thanks in advance.
Below is my GH Actions workflow file >
name: Build and deploy WAR app to Azure Web App - JavaWebAppfromPortal
name: Build and deploy JAR app to Azure Web App
env: JAVA_VERSION: '11' # set this to the Java version to use DISTRIBUTION: microsoft # set this to the Java distribution AZURE_WEBAPP_PACKAGE_PATH : ./AppService/JavaWebApp
on: push: branches: [ "main" ] workflow_dispatch:
permissions: contents: read
jobs: build: runs-on: ubuntu-latest
deploy: permissions: contents: none runs-on: ubuntu-latest needs: build environment: name: 'Development' url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}