开发者

Simple Servlet Problem

I'm using eclipse and GlassFish 3.0 to test my 开发者_如何学运维servlet. When I start it eclipse opens a kind of a web browser which gives a 404 error with the description:The requested resource () is not available.

What to do?

Thanks, Nahum


In the Console view switch to the server log, and pin it to avoid the DAS grabbing it back. You can see the deployment errors in there and take action.

If there is no deployment errors, you should double-check:

  • URL - is it right - should you have /mywebapp in front, or not.
  • Servlet mapping in web.xml - is it correct? Are your URL hitting the mapping you've set up.

GlassFish is a bit tricky to work with, but once you've learned the Console trick in Eclipse it helps quite a lot.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜