HTTP Status 503 - Servlet WebAppProperties is currently unavailable?

jianggl20 2003-08-30 02:07:05
我的系统是windows2000+tomcat4.0,tomcat运行正常,能执行表态页面,但不能执行jsp和serlet,一运行jsp和servlet就提示如下错误:

HTTP Status 503 - Servlet WebAppProperties is currently unavailable

The requested service (Servlet WebAppProperties is currently unavailable) is not currently available.

有说明说一定要把servlet.jar拷贝到tomcat-home\common\lib目录下,但我tomcat就根本没有common目录,我直接把servlet.jar拷贝到tomcat-home\lib目录下,并加到了classpath中去了,但还是这个问题。

web-inf\web.xml部分内容如下:

<servlet>
<servlet-name>WebAppProperties</servlet-name>
<servlet-class>servlet.WebAppProperties</servlet-class>
<init-param>
<param-name>name</param-name>
<param-value>jianggl20</param-value>
</init-param>
<init-param>
<param-name>password</param-name>
<param-value>123456</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>WebAppProperties</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

...全文
263 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
jan4984 2003-08-30
  • 打赏
  • 举报
回复
kao ,你的tomcat什么版本的,连common目录都没有。
放在lib下应该也是可以的。
你所列出的web.xml的内容我也看不出有什么问题。

The server is currently unable to handle the request due to a temporary erloading is maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
当服务器超负载运行而无法处理当前请求时,发生该状态号。暗含有临时性,在一定时间后将可以恢复正常,并且其时间由http头Retry-After给出,如果没有此http头,者客户端以500错误同样处理。

Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
实际应用中的503状态并不一定是表示服务器超负载,一些服务器仅仅将此用语拒绝连接。

以下是google上搜索到的一个回答,我觉得是比较有使用性。

All the requests in Tomcat are handled by the ServletInvoker server which then invokes the application servlets. Looks like due to some bad configuration, the ServletInvoker servlet is not started (probably some exception in initializatio).
在tomcat里,所有webapp的运行都是通过ServletInvoker加载的,如果ServerInvoker没有运行起来(比如错误的配置、有exception的初始化),会引起webapp不可用(503号错误状态)。

Check the logs. Before you check the logs, stop tomcat, delete the existing log files, restart tomcat. Basically, cleanup the clutter so that it is easy to analyze the log file. It should tell you what'w wrong.
检查你的日志文件,注意在查看之间最好先关闭tomcat,删除旧的日志文件,然后重新运行tomcat,这样更容易找出问题的所在。

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧