ボクの場合はAndroid StudioでBackendをいじってるときに
Javaクラスを作成した後に、削除がうまくいかなくて起きました。
ネットで見たら解決法はいくつか載っているので、そちらも参考に。
解決法
web.xml
これはAndroid Studioからは見えないので、MacのFinderとかで見てやりましょう。
一例ですが
1 |
【そのプロジェクト】backend/src/main/webapp/WEB-INF |
の中に入ってます。
そこに
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="https://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>jp.tecco.hoge.MyEndpoint ,jp.tecco.hoge.MyEndpoint2</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> |
みたいのがあると思う。
ここでは8行目の
<param-value>jp.tecco.hoge.MyEndpoint ,jp.tecco.hoge.MyEndpoint2</param-value>
こいつが犯人。
例えば、今回の話で言うと、jp.tecco.hoge.MyEndpoint2は無くなってるから消しちゃえばおk。
ないものを参照しにいってるからエラーになるよ。