I am working on deploying to the Google App Engine Standard Environment. Before deploying, I want to test locally, so I am running gradlew appengineRun
.
Everything is working up until I hit this error: "com.google.cloud.tools.appengine.AppEngineException: java.nio.file.NoSuchFileException: C:\Users{user}\StudioProjects{project}\build\exploded-{project}\WEB-INF\appengine-web.xml".
This is very odd, as I checked the file structure in my project and the appengine-web.xml is present.
{project}
...
build
...
exploded-{project}
...
WEB-INF
...
appengine-web
I do not know why the file is "not there" when I can see it available exactly where it should be.
My appengine-web.xml file:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>{ID}</application>
<use-google-connector-j>true</use-google-connector-j>
<version>1</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/classes/logging.properties" />
</system-properties>
<automatic-scaling>
<!-- scaling details -->
</automatic-scaling>
</appengine-web-app>
I do have one issue, the namespace is in red and I get the
URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
message when I scroll over it.
I have attempted to fix this solution by fetching the resource, but that has not succeeded. I do not know if that may be the issue, but it is my only decent guess.
I need the appengine-web.xml file to be recognized in order to progress. If anyone knows what is going on, or has an idea to point me in the right direction, it will be appreciated.