Go Developing struts under Eclipse Strange exception: Org.apache.struts.taglib.bean.CookieTei

Source: Internet
Author: User

Started learning struts at eclipse this morning.,So according to Li Xinghua Teacher's "Struts Introductory video tutorial" Step by step full of happy learning,Wait till you finish the landing procedure.,When you open the browser ready to run,The strange anomaly produced,Exception Display 500 error,As follows:HTTP Status 500-

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

Type Exception Report

Message

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

exception

Org.apache.jasper.JasperException:Failed to load or instantiate Tagextrainfoclass:Org.apache.struts.taglib.Bean. Cookietei probably meant to be loaded in struts.classClass failed,So full of hope to go to Baidu to find,Can say so,Most mistakes can be found in Baidu above the answer. But,This is an exception. The answers on the internet are almost always removed from the Web-inf under Lib Jsp-api.jar package or copy Struts.jar package into Tomcat's lib directory,But the Struts Web project I created under Eclipse,There is no jar package at all under Lib.,That is, Lib is an empty folder,All of the loading work is automatically loaded by eclipse,The results are clearly running in the video tutorial? But why can't I do that?    Is my program wrong? I asked everywhere.,Included in the software group,Good people give me all kinds of attention.,Help me with my enthusiasm,To express deep gratitude here,The poor thing is still not being solved. Since learning Java,The first time I met the Internet can not find the answer and I do not know the problem is the exception,Quite battered. In order to find the answer,I started to wonder if I had a problem with my program.,So the original was completely removed,and repeat the struts project again.,But the results are still,I probably ruled out the problem with the program. Copy the Struts.jar package into the Lib directory under Tomcat,The problem remains. Many people come to this estimate to suspect themselves of the version of Tomcat and other issues,But I won't.,Because my version is all up to date.,and from experience,,Anyone who suspects that the software has a problem,It's all because he didn't find the problem.,To start doubting the software. Ever since I studied Java,,None of the problems are caused by software.,are problems with the program or deployment. And through my cool thinking,I did a bold test.,And that's exactly what a test,I've solved the problem.,So happy in my heart,Lit up my Java passion again. I'm not a copy struts.jar bag.,Instead of the D:\eclipse3.3\myeclipse 6.0\eclipse\plugins\com.genuitec.eclipse.cross.easystruts.eclipse_6.0.1. All jar packages in the Zmyeclipse601200710\data\1.2\lib directory are copied to the Tomcat Lib directory,All jar packages that are Struts1.2,And not just struts.jar.,A total of 6 jar packages,These include the Struts.jar package,Run again,It worked. I cut 6 jars into the web-inf/lib of the Web project.,The operation was equally successful. I'm breathing again.,Hi, it's a success.,It's my favorite. All jar packages with struts1.2 deployed on the eclipse surface,Without loading them into the web-inf/lib.,Causes an exception to occur. I don't know how myeclipse works.,Below I built the Struts project in eclipse,It obviously adds struts1.2 support.,And I'm going to have to add the bag to the web-inf/lib manually.

Go Developing struts under Eclipse Strange exception: Org.apache.struts.taglib.bean.CookieTei

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.