Tomcat 在与 jsvc 结合使用的第一个请求时失败
我有一个网络应用程序,其中第一个请求可能需要几秒钟的时间,因为一些单例已初始化。
我使用了 这个问题中提到的 mod_proxy 和 jsvc 构造此页面中描述了如何将apache与tomcat连接(数据是通过 SSL 提供服务)
对于示例 Tomcat 应用程序,一切都按预期运行。但是,当使用我的应用程序时,我在 apache 日志中收到以下错误:
[Wed Feb 10 09:48:29 2010] [error] [client 130.12.1.26] (70014)End of file found: proxy: error reading status line from remote server localhost
[Wed Feb 10 09:48:29 2010] [error] [client 130.12.1.26] proxy: Error reading from remote server returned by /MyWebApp/MyWebApp.faces
并且在 tomcat 输出中收到以下错误:
10/02/2010 09:48:29 9947 jsvc.exec error: Service exit with a return value of 1
我不是这方面的专家,所以我想知道问题的原因是什么以及我在哪里应该寻找答案吗?
I have a web application where the first request may take a few seconds as some singletons are initialised.
I've used the mod_proxy and jsvc construction mentioned in this question and described on this page to connect apache with tomcat (data is served via SSL)
For the sample Tomcat application, everything works as it should. However, when using my application I get the following error in my apache log:
[Wed Feb 10 09:48:29 2010] [error] [client 130.12.1.26] (70014)End of file found: proxy: error reading status line from remote server localhost
[Wed Feb 10 09:48:29 2010] [error] [client 130.12.1.26] proxy: Error reading from remote server returned by /MyWebApp/MyWebApp.faces
and I get the following error in my tomcat output:
10/02/2010 09:48:29 9947 jsvc.exec error: Service exit with a return value of 1
I'm not an expert on this so I would like to know what's the cause of the problem and where I should look for an answer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现我使用了 JFreeChart,由于某些原因,它尝试连接到 X 会话。
通过在 /etc/init.d/tomcat 中设置以下值,我设法解决了这个问题:
I found that I used JFreeChart, which, for some reasons, tried to connect to the X session.
By setting the following value in /etc/init.d/tomcat , I managed to get around it: