slim3

JSPがいつまで経っても/common.jspを読み込もうとしてエラーする場合

結論は、web.xmlのjsp-configをみる。ブラウザのキャッシュとか関係ない。自動で/common.jspを読み込む設定。 ... <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <el-ignored>false</el-ignored> <include-prelude>/common.jsp</include-prelude> <trim-directive-whitespaces>true</trim-directive-whitespaces> </jsp-property-group> <…</jsp-config>

DatastoreのJUnit4 TestCaseで、APIやらThreadやらエラーが出る場合

結論は、AppEngineTestCase を継承してないTestCaseだったから。通常、build.xmlから生成したserviceは、次のようにAppEngineTestCase を継承している。 package tutorial.service; import org.slim3.tester.AppEngineTestCase; import org.junit.Test; impo…