调用 servlet 时出错,但加载了其他资源 - Flex + Java应用程序
我编写了一个 RIA,前端使用 flex,后端使用 Java servlet,它实际上调用 Web 服务来进行一些处理。
欢迎页面是一个 html 页面,由托管应用程序的 web-logic 8.1 服务器提供。欢迎页面加载并加载 Flash 内容。甚至包含一些配置属性的“xml”文件也会从服务器加载(通过 URL 请求)。
现在,当我单击页面上的按钮时,它会通过将数据发送到 servlet 来对用户进行身份验证。
问题是... servlet 没有被调用,并且 URL 请求(对于具有适当参数的 servlet)返回 500:内部服务器错误页面。
当我使用 tomcat 作为服务器将其部署在本地计算机上时,相同的代码可以完美运行。当部署在 web-logic 服务器上时,我也检查了无数次主机 URL 是否正确。甚至在 Firefox 中使用 firebug 检查发出请求时的 URL,一切似乎都很好,除了响应是“500:内部服务器错误”。
请帮忙。提前致谢。
I have written a RIA using flex for the front-end and Java servlet for the back end which actually makes calls to a web-service to do some processing.
The welcome page is a html page which is served from the web-logic 8.1 server that the app is hosted on. The welcome page loads and the flash content loads. Even a 'xml' file containing some configuration properties gets loaded from the server (through URL Request).
Now when I click a button on the page, it would authenticate the user, by sending the data to the servlet.
Here's the problem... The servlet doesn't get invoked and the URL Request (for the servlet with appropriate parameters) returns a 500: Internal Server Error page.
The same code is working perfectly when I deploy it on my local machine using tomcat as a server. And I have also checked umpteen times if the host URL is correct when being deployed on the web-logic server. Even checked the URL when the request is being made, in firefox, using firebug, and all seems to be fine, except that the response is '500: Internal Server Error'.
Please help. Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,欢迎页面已加载,并且 XML 文件已从 Web 服务器加载,但无法调用 servlet。
servlet 是否正确初始化并等待被调用?
web.xml 文件中是否有任何尚未更改的内容需要更改?
OK, the welcome page loads, and an XML file loads from the webserver, but the servlet can't be invoked.
Is the servlet initialising correctly, and waiting to be called?
Does anything need to be changed in the web.xml file that hasn't been?
如果没有更多信息,这听起来像是 servlet 和/或应用程序服务器配置错误。检查您的日志以查看是否有更多信息。
Without any more information, it sounds like a misconfigured servlet and/or app server. Check your logs to see if there's any more information there.