java - Can't connect to appengine after deploying it. Error 404 -
i trying develop app backend via android studio. hence started default endpoint created when creating new endpoint module android project. when running locally works fine , can see "myapi" , acces sayhi() method. when deploying google cloud somehow doesn't work anymore. can't see api nor method in api explorer.
after checking google console found out there error "-no handlers matched url" on error log.
i changed name project-id in appengine-web.xml , turned on default api's google project. there else have done perchance wrong?
moreover found out this: smartgwt-appengine-404-not-found might solution. unfortunately don't understand take care of cases , still don't how prepare it.
thank much help!!
appengine-web.xml:
<?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>myproject-id</application> <version>1</version> <threadsafe>true</threadsafe> <system-properties> <property name="java.util.logging.config.file" value="web-inf/logging.properties"/> </system-properties> </appengine-web-app>
web.xml :
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"> <servlet> <servlet-name>systemserviceservlet</servlet-name> <servlet-class>com.google.api.server.spi.systemserviceservlet</servlet-class> <init-param> <param-name>services</param-name> <param-value>com.example.mymodule.app2.myendpoint</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>systemserviceservlet</servlet-name> <url-pattern>/_ah/spi/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app>
java google-app-engine android-studio
No comments:
Post a Comment