Tomcat:将servlet hbws标记为不可用

Tomcat:将servlet hbws标记为不可用,tomcat,Tomcat,我越来越 SEVERE: Servlet /hbws threw load() exception java.lang.Error: Unresolved compilation problems: The import javax.servlet cannot be resolved The import javax.servlet cannot be resolved The import org.apache cannot be resolved Myservlet ap

我越来越

SEVERE: Servlet /hbws threw load() exception
java.lang.Error: Unresolved compilation problems:
The import javax.servlet cannot be resolved
    The import javax.servlet cannot be resolved
    The import org.apache cannot be resolved
My
servlet api.jar
$CATALINE\u HOME/lib
中提供。但为什么我还是会犯这个错误


当我打开我的服务器(Tomcat 6.0.32)时,我得到了这个消息。

您是如何编译servlet代码的?使用
javac
或者仅仅通过在Eclipse/Netbeans这样的IDE中保存/运行,我已经使用Ant构建了代码。代码中没有编译错误。但当我将war文件部署到Tomcat中时。我将获得此异常。请注意,对于其他jar,获得相同的错误。。我在这里没有提到。甚至我也不想把这个jar添加到WEB\u INF\lib中。我也会将这些jar添加到类路径中,以便tomcat(6.0.32)引用它。我已经尝试了所有的选择。但我面临着同样的问题。