收到“内部服务器错误”访问 JSP 时。 Servlet 好
我刚刚在我们的舞台服务器上安装了 WS 7。测试服务器是几个月前完成的。我已经部署了与测试相同的应用程序。
一个应用程序给我带来了问题。我调用登录 servlet,但结果是“内部服务器错误”消息。从我的日志中我可以看到 servlet 成功处理了登录并重定向到 JSP。这是最后一条消息。我在任何其他标准输出/错误日志中找不到更多信息。
我尝试创建一个仅包含 HTML 的简单 JSP - 同样的错误。如果我将文件重命名为 test.html,它会正确显示。插件配置似乎与测试服务器上的配置相同(一切正常)
有人有想法吗?
http_plugin.log
[Tue Sep 21 14:06:02 2010] 00000bd4 00002430 - ERROR: ws_common: websphereGetStream: socket error conditions pending
[Tue Sep 21 14:06:02 2010] 00000bd4 00002430 - ERROR: ws_common: websphereExecute: Failed to create the stream
[Tue Sep 21 14:06:02 2010] 00000bd4 00002430 - ERROR: ws_common: websphereHandleRequest: Failed to execute the transaction to 'server1'on host 'SRVxyz'; will try another one
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereGetStream: socket error conditions pending
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereExecute: Failed to create the stream
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereHandleRequest: Failed to execute the transaction to 'server1'on host 'SRVxyz'; will try another one
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereWriteRequestReadResponse: Failed to find an app server to handle this request
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ESI: getResponse: failed to get response: rc = 2
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereHandleRequest: Failed to handle request
I have just installed WS 7 on our stage server. The test server was done some months ago. I have deployed the same applications to stage as on test.
One application is causing me problems. I call the login servlet but the result is an 'Internal Server Error' message. From my logs I can see that the servlet processed the log in successfully and redirects to a JSP. That is the last message. I can find no further info in any of the other standard out/err logs.
I have tried creating a simple JSP containing only HTML - same error. If I rename the file to test.html, it displays correctly. The plugin configuration appears to be identical with the one on the test server (where everything works)
Ideas anyone?
http_plugin.log
[Tue Sep 21 14:06:02 2010] 00000bd4 00002430 - ERROR: ws_common: websphereGetStream: socket error conditions pending
[Tue Sep 21 14:06:02 2010] 00000bd4 00002430 - ERROR: ws_common: websphereExecute: Failed to create the stream
[Tue Sep 21 14:06:02 2010] 00000bd4 00002430 - ERROR: ws_common: websphereHandleRequest: Failed to execute the transaction to 'server1'on host 'SRVxyz'; will try another one
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereGetStream: socket error conditions pending
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereExecute: Failed to create the stream
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereHandleRequest: Failed to execute the transaction to 'server1'on host 'SRVxyz'; will try another one
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereWriteRequestReadResponse: Failed to find an app server to handle this request
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ESI: getResponse: failed to get response: rc = 2
[Tue Sep 21 14:06:03 2010] 00000bd4 00002430 - ERROR: ws_common: websphereHandleRequest: Failed to handle request
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题现已解决。
安装过程创建了一个默认服务器。我忽略了这一点,认为这并不重要。我删除了服务器并重新生成了插件配置,我的应用程序运行良好。
Problem is now solved.
The installation process created a default server. I had ignored this thinking that it doesn't matter. I removed the server and regenerated the plug-in config and my app works fine.