アプリケーションを Resin 4.0.6 から 4.0.38 に移行する際に問題が発生しています
私が得るエラーは /Users/.../general_urls.php:9: Fatal Error: 'get_servlet_context_path' is an unknown function. です。get_servlet_context_path は、AbstractQuercusModule を拡張するサーブレット内の関数です。興味深いことに、これは utf エンコーディングに関連しているようです。resin-web.xml には次のものがあります。
<web-app xmlns="http://caucho.com/ns/resin">
<servlet-mapping url-pattern="*.php"
servlet-class="com.caucho.quercus.servlet.QuercusServlet">
<init>
<script-encoding>UTF-8</script-encoding>
<php-ini>
<unicode.semantics>on</unicode.semantics>
<unicode.runtime_encoding>UTF-8</unicode.runtime_encoding>
</php-ini>
</init>
</servlet-mapping>
</web-app>
unicode.semantics タグを削除すると、アプリケーションは機能しますが、非標準の文字は見栄えが悪くなります。
バージョン情報
Resin-4.0.38 (built Tue, 17 Dec 2013 09:48:45 PST)
[14-03-18 10:22:40.776] {main} Mac OS X 10.9.2 x86_64
[14-03-18 10:22:40.776] {main} Java(TM) SE Runtime Environment 1.7.0_45-b18, UTF-8, en
[14-03-18 10:22:40.776] {main} Java HotSpot(TM) 64-Bit Server VM 24.45-b08, 64, mixed mode, Oracle Corporation
助言がありますか?
更新: 樹脂 4.0.33 を使用しても問題なく動作するようです