Why cannot servlet-api.jar be loaded?

Source: Internet
Author: User

When Tomcat is started, the following message is prompted. Please help me to see what the problem is?

Information: Installing Web
Application at context path/powerweb from URL File: D:/tomcat
5.0/webapps/powerweb
2006-6-19 17:21:02
Org. Apache. Catalina. loader. webappclassloader validatejarfile
Information:
Validatejarfile (D:/tomcat
5.0/webapps/powerweb/WEB-INF/lib/servlet-api.jar)-jar not loaded. See
Servlet spec 2.3, section 9.7.2. offending class:
Javax/servlet. Class
19/06/06 17:21:06. 984; error; cannot load
JDBC Driver Class 'com. Microsoft. JDBC. sqlserver. sqlserverdriver'
2006-6-19
17:21:11 org. Apache. Coyote. http11.http11protocol start

You
Tomcat installation directory D:/tomcat 5.0/common/lib below there is a servlet-api.jar

Tomcat will
Load this jar without loading the servlet-api.jar of an application

Therefore, this jar is ignored and can be removed.

////////////////
Com. Microsoft. JDBC. sqlserver. sqlserverdriver
This error is because the jar is not put in the classpath.

Just add it.

We recommend that you reinstall tomcat.
Once again, pay attention to the JDK version, which must be consistent with that used in eclipse in Tomcat.

In addition, the author's SQL
The JDBC driver does not seem to have been copied to the corresponding directory.

'Com. Microsoft. JDBC. sqlserver. sqlserverdriver'
Is that the database driver is not put under the Lib, not the servlet-api.jar

Your servlet environment variables are not configured.
In
The classpath in your system variables has no D:/tomcat 5.0/common/lib/servlet-api.jar
Or install
An error occurred.
You can check

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.