My issue was packaging being `war` instead of `jar` which was giving me the
same error.
On Friday, October 5, 2018 at 7:29:35 AM UTC-7, Ky Nguyen wrote:
>
> Hi everyone,
>
> I have a spring boot application and want to deploy only in GAE flex env.
> I had tried many time but currently I got error 404 when access my
> application in GAE.
> Error 404 - Not Found.No context on this server matched or handled this
> request.
> Contexts known to this server are:
>
> - / --->
> o.e.j.w.WebAppContext@47ef968d{root,/,file:///var/lib/jetty/webapps/root/,UNAVAILABLE}{/root.war}
>
> [failed]
>
>
>
> I had run successfully on my local with jetty embedded server, but don't
> know why this error is occurred.
>
> my pom.xml is
>
> <parent>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-parent</artifactId>
> <version>1.5.6.RELEASE</version>
> <relativePath /> <!-- lookup parent from repository -->
> </parent>
>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
> <java.version>1.8</java.version>
> <maven.compiler.source>${java.version}</maven.compiler.source> <!--
> REQUIRED -->
> <maven.compiler.target>${java.version}</maven.compiler.target> <!--
> REQUIRED -->
> </properties>
>
>
> <dependencies>
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-data-jpa</artifactId>
> <exclusions>
> <exclusion>
> <groupId>org.springframework.boot</groupId>
> <artifactId>tomcat-juli</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-web</artifactId>
> <exclusions>
> <exclusion>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-tomcat</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-jetty</artifactId>
> <scope>provided</scope>
> </dependency>
>
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-test</artifactId>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-security</artifactId>
> </dependency>
>
> <dependency>
> <groupId>com.zaxxer</groupId>
> <artifactId>HikariCP</artifactId>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.tomcat.embed</groupId>
> <artifactId>tomcat-embed-jasper</artifactId>
> <scope>provided</scope>
> </dependency>
>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>javax.servlet-api</artifactId>
> <version>3.1.0</version>
> <scope>provided</scope>
> </dependency>
>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>jstl</artifactId>
> <version>1.2</version>
> </dependency>
>
> <dependency>
> <groupId>postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>9.1-901.jdbc4</version>
> </dependency>
>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-maven-plugin</artifactId>
> <executions>
> <execution>
> <goals>
> <goal>repackage</goal>
> </goals>
> <configuration>
> <mainClass>com.kevin.SpringJqgridApplication</mainClass>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.eclipse.jetty</groupId>
> <artifactId>jetty-maven-plugin</artifactId>
> <version>9.4.6.v20170531</version>
> </plugin>
> <!-- START plugin -->
> <plugin>
> <groupId>com.google.cloud.tools</groupId>
> <artifactId>appengine-maven-plugin</artifactId>
> <version>1.3.1</version>
> </plugin>
> <!-- END plugin -->
> </plugins>
> </build>
>
>
> I'm using this command below to deploy my application.
> mvn appengine:deploy
>
> Can anybody help me ?
> thanks.
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/0fa365c5-5f4b-4f2f-9dcb-216d3e76a0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.