WAS 6.1,Java 5:有趣的问题 - 带有单词“CD”的请求未到达 servlet
最近,我们将 Web 应用程序部署到一组新的服务器上。
AppServer: Websphere 6.1
Environment: Java 5, JSF, SOAP
Linux:
网页上有一个“表单”,其中包含“TextArea”和一个提交到 servlet“ServiceInterfaceServlet”的“提交”按钮。用户将请求 XML 放入文本区域,然后单击提交按钮将请求“POST”到 servlet。现在的问题是 - 如果请求 XML 在任何地方(即在可能节点的任何值中)包含单词“CD”。 - 请求甚至不会到达 servlet。我们收到“501 方法未实现”错误。
我们还尝试了其他字符串行“CD、MV、CP”等,但我们遇到问题的唯一单词是“CD”。
坦率地说 - 我们甚至不确定为什么会发生这种情况,因为同样的情况在我们的本地设置和开发环境(WAS6、Java 1.4、Unix)上运行良好。
任何指示将不胜感激。
问候, - 阿什什
Recently, we deployed our web-application to a new set of servers.
AppServer: Websphere 6.1
Environment: Java 5, JSF, SOAP
Linux:
There is a 'form' on a web-page that contains a 'TextArea' and a 'Submit' button that submits to a servlet 'ServiceInterfaceServlet'. User puts the request XML in the textarea and hits the submit button to 'POST' the request to the servlet. Here is the problem now - If the request XML contains the word 'CD' anywhere (i.e. in any of the values for the possible nodes.) - the request does not even reach the servlet. We get a '501 Method not implemented ' error.
We also tried other strings line 'CD, MV, CP' etc. but the only word that we are getting the issue with is 'CD'.
Quite frankly - we are not even sure why this could be happening as the same is working fine on our local setups and our development environment (WAS6, Java 1.4, Unix).
Any pointers will be greatly appreciated.
Regards,
- Ashish
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否可以使用任何工具来查看实际的 HTTP 请求?如果您使用普通的 WAS 工具,那么您就有 TCP IP 监视器。
501 错误意味着该请求使浏览器正常,但在某些地方没有被理解。您要通过网络服务器吗?是否是 WAS 插件或其他插件不满意?
我会将“方法”解释为 GET 或 POST 或其他任何内容,但在您的其他发现的背景下,它对我来说没有任何意义 - POST 的内容、“CD”或不肯定不会影响它。
因此,我建议看看网络上实际发生了什么,比较工作和非工作可能会揭示一些有趣的事情。
Do you have access to any tool that would let you see the actual HTTP request? If you're using normal WAS tools then you have TCP IP monitor.
The 501 error implies that the request is leaving the browser OK, but somewhere down the line is not being understood. Are you going via a webserver? Could it be that the WAS plugin, or indeed another plugin is unhappy?
I would interpret "Method" as GET or POST or whatever, but it makes no sense to me in the context of your other findings - the content of the POST, "CD" or not surely can't affect that.
Hence my suggestion to look at what's actually going over the wire, comparing working and non-working might reveal something interesting.