Why can I not publish Java Springboot webservice to webapp?

Cottrell, Lee 0 Reputation points
2023-03-06T17:45:24.9533333+00:00

My students and I are having problems posting a Java SpringBoot web service to my pay as you go Azure subscription. We are following microsoft's directions from their learn.microsoft.com site. We keep receiving invalid target release: 17

This is my code https://github.com/leecottrellPTC/Azurepublish.git This is MS's code https://github.com/spring-guides/gs-spring-boot

The version of Java in the Azure CLI is Java 11. I have tried rebuilding my project locally to Java versions 8, 11, and 17. Each time, it runs on my local servers. When I republish it to Azure, I make the proper version choices in the wizard. I have tried Linux and Windows OS, and several tiers of pay. Each results in the same error.

The MS Link offers four different ways to publish a web service. I have tried them all with the exception of Docker. I do not have that configured.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
760 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Muskan Choudhary 0 Reputation points
    2023-04-29T10:43:21.8666667+00:00

    There could be a variety of reasons why you are unable to publish your Java Springboot web service to a web app. Here are a few common issues that you may encounter:

    1. Deployment configuration errors: It's possible that your web app configuration is incorrect or incomplete, preventing your web service from deploying properly. Ensure that your deployment settings are correctly configured and that you have included all necessary files and dependencies.
    2. Port conflicts: Sometimes, the port that your web service is attempting to run on may already be in use by another process or service, causing conflicts and preventing deployment. Make sure to check for port conflicts and ensure that the correct port is specified in your deployment settings.
    3. Firewall and security restrictions: Your firewall or security settings may be blocking the deployment of your web service. Check your firewall settings and make sure that your web service is allowed to communicate with the web app.
    4. Application code errors: Errors in your application code can also prevent your web service from deploying correctly. Make sure to thoroughly test and debug your code before attempting deployment.

    If you're interested in learning how to develop and deploy Java applications, you may want to consider enrolling in a Java course in Indore. By taking a Java course, you can gain a comprehensive understanding of the Java programming language and learn how to develop and deploy Java applications with ease.

    As part of a Java course in Indore, you'll learn about Java syntax, data types, control statements, and object-oriented programming concepts. You'll also learn how to use Java frameworks and tools like Springboot, Hibernate, and Maven to streamline your development and deployment process.

    0 comments No comments