我在将应用程序从树脂4.0.6迁移到4.0.38时遇到了问题
我得到的错误是/Users/./general_urls.php:9:致命错误:'get_servlet_context_path‘是一个未知的函数。其中get_servlet_context_path是扩展AbstractQuercusModule的servlet中的一个函数。有趣的是,这似乎与utf编码有关。在树脂-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似乎工作正常
发布于 2014-03-26 18:59:06
确认为树脂缺陷,并在即将发布的修复。
https://stackoverflow.com/questions/22482462
复制相似问题