What makes myeclipse so angry is that SSH is integrated, but it is not!

Source: Internet
Author: User

What makes myeclipse so angry is that SSH is integrated, but it is not!

This article cited from: http://hi.baidu.com/zwnjiejie/blog/item/c2245c6eac1df7dd80cb4ab7.html

 

During Development in myeclipse today, we found thatProgramAfter writing, open the browser to prepare for running, a strange exception occurs. The Error 500 is displayed as follows:

HTTP status 500-

--------------------------------------------------------------------------------

Type exception report

Message

Description the server encountered an internal error () that prevented it from fulfilling this request.

Exception

Org. Apache. Jasper. jasperexception: failed to load or instantiate tagextrainfo class: org. Apache. Struts. taglib. Bean. cookietei

I haven't found out the cause for a long time, because it was okay at the beginning, but later I found this problem. I found a master on the Internet to solve the problem, therefore, you need to add it to favorites so that you will encounter such problems in the future. The content is as follows:

It probably means loading the. Class class in struts failed, so I went to Baidu to look for it with expectation. In this way, most errors can be found on Baidu. However, this is an exception. Almost all the answers on the Internet are to delete the WEB-INF package under the jsp-api.jar lib or copy struts. jar package is under the lib directory of Tomcat, but for the struts web project created by ECLIPSE, there is no jar package under Lib, that is, Lib is an empty folder, all the loading work is automatically loaded by eclipse, and the results are obviously displayed in the video tutorial? But why can't I? Is my program wrong?

I asked people everywhere, including the software group, who gave me a variety of attention and enthusiastically helped me. I am deeply grateful here. The poor thing is that Ren ran has not been solved. Since I learned Java for the first time, I encountered an exception that I could not find the answer on the Internet but did not know the problem. In order to find the answer, I began to suspect that the program I wrote had a problem, so I completely deleted the original project and repeat the struts project again, but the result remained. I probably ruled out the program problem. Copy the Struts. jar package to the lib directory under tomcat. the problem persists. Many people may doubt the version of their tomcat, But I won't, because my version is the latest, and from experience, anyone who doubts the software is faulty, he began to suspect the software because he did not find the problem. Since I learned Java, none of the problems have been caused by software, such as program or deployment problems. Through my calm thinking, I made a bold test, and it was just such a test. I solved the problem and felt very happy. Once again, I ignited my java passion. I am not copying struts. jar package, instead of D: \ eclipse3.3 \ myeclipse 6.0 \ eclipse \ plugins \ COM. genuitec. eclipse. cross. easystruts. eclipse_6.0.1.zmyeclipse601_710 \ data \ 1.2 \ Lib all jar packages under the directory are copied to the Tomcat lib directory, that is, all jar packages of struts1.2, not just struts. jar, a total of 6 jar packages, including struts. jar package, run again, succeeded. I cut 6 more jar packages to the WEB-INF/lib OF THE WEB Project, and the operation was also successful.

I like again, happy is successful, angry is my favorite eclipse on the surface of the deployment of struts1.2 all jar packages, but do not load them to the WEB-INF/lib, exception. I really don't understand how myeclipse works, the following struts project I established in eclipse, which obviously added support for struts1.2, but also I need to manually add the package to the WEB-INF/lib:

 

 

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.