Cannot Install Spring Boot Application for Azure

I cannot get my Spring download site to respond to an Azure web instance. I followed the instructions of the Java application and downloaded the instructions . It looks like the IIS server is receiving the request, but the servlet in the war is not responding. According to the documentation, there are a couple of fixes. In particular, web.config should be deployed to wwwroot and specify the java path as well as the forwarding port. I believe I reviewed these bases - my web.config is inserted below.

I tried to deploy tomcat server from the market, and it worked fine. When I replace my war file and web.config, the Spring boot application does not work.

One interesting piece of information is that the HTTP_PLATFORM_PORT environment variable is not defined.

Application Settings:

Application settings

Azure Console Information (Env variables and Web.config):

D:\home\site\wwwroot

> dir
D:\home\site\wwwroot
Volume in drive D is Windows
 Volume Serial Number is 789E-197B

 Directory of D:\home\site\wwwroot

03/01/2016  02:14 AM    <DIR>          .
03/01/2016  02:14 AM    <DIR>          ..
02/29/2016  08:15 PM    <DIR>          bin
03/01/2016  01:49 AM         8,771,899 web-0.0.1-SNAPSHOT.war
03/01/2016  02:10 AM               496 web.config
03/01/2016  02:08 AM               496 web.custom.config
03/01/2016  01:54 AM             4,868 web.tomcat.config
03/01/2016  02:14 AM    <DIR>          webapps



> echo %java_home%
D:\home\site\wwwroot
D:\Program Files\Java\jdk1.8.0_60


> echo %http_platform_port%
D:\home\site\wwwroot
%http_platform_port%


> cat web.config
D:\home\site\wwwroot
<?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%\bin\java.exe"
        arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar &quot;%HOME%\site\wwwroot\web-0.0.1-SNAPSHOT.war&quot;">
    </httpPlatform>
  </system.webServer>
</configuration>
+4
source share
3 answers

Shouldn't there be an executable JAR instead of a WAR? You can run the bootable Spring JAR with JDK 8 installed, but you need a Java EE application server to deploy WAR.

I do not know what the web.config file is; I am using Cloud Foundry. All I need is a JAR, a .yml file for configuration, and a JDK. Spring Boot JAR must have the whole application and its dependencies inside. I use Maven to create a fat JAR.

+5
source

2, , - . REST spring Azure API App Kudo.

WAR API-. API App Azure, . Java -, .

enter image description here

War maven eclipse, ROOT.war. Kudo, webapps. , /webapps/ROOT/. web.config. . , " ", , .

enter image description here

-, , .

enter image description here

, , URL Azure.

+2

, Spring Boot Azure - webapp include tomcat Spring , , wwwroot\webapps FTP Kudu Console.

Spring Boot Jar Application, Spring doc w760 > Boot JAR WAR, jar , Azure WebApp.

SO Spring Boot War, Tomcat.

0

All Articles