0
votes

Problem you have encountered:
- after deploy app to appengine on gcloud with gradle default web page is index.html. BUT in web.xml declared:
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>

in local environment it start from index.jsp as I expected and declared, but after deploy is not

What you expected to happen:
- app start from index.jsp page. as it declared

I deploy to appEngine with Gradle https://github.com/GoogleCloudPlatform/app-gradle-plugin

1

1 Answers

0
votes

I followed that an after adding this to the web.xml file:

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
        http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
        version="3.1">

    <welcome-file-list>  
        <welcome-file>index.jsp</welcome-file>  
    </welcome-file-list>  
</web-app>

My app started with the index.jsp file even when there was the index.html file too.

I also share with you the section of App Engine of my build.gradle file:

appengine {  // App Engine tasks configuration
    deploy {   // deploy configuration
        projectId = System.getenv('GOOGLE_CLOUD_PROJECT')
        version = 'GCLOUD_CONFIG'
    }
}