Hi @AlsamBari-6443,
When deploying Java apps, make sure you specify the package name relative from the root directory. Most likely, your deployment artifact will be in the target/ directory. Also, please make sure your Azure App Service Web App has "Java SE" configured as the stack under "General settings" from the "Configuration" menu option. There are two "Java SE" options, one for "Java 8" and another for "Java 11".
Please see this blog post for more information. Let us know if you have further questions
Thanks,
Grace