In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you whether MyEclipse is really integrated with SSH, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
When MyEclipse is developing, it is found that when the program is finished and the browser is ready to run, a strange exception occurs. The exception displays a 500th error, as shown below:
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 didn't find out the reason for it for a long time, because there was no problem at first, but later I found this problem. I found the solution process of a master on the Internet, so I collected it so that I could encounter such a problem again in the future. The contents are as follows:
It probably means that loading the .class class in struts failed, so look for it on Baidu with great expectation. It can be said that most mistakes can be found on Baidu. But this is an exception. The answer on the Internet is almost always to delete the jsp-api.jar package under lib under WEB-INF or copy the struts.jar package to the lib directory of Tomcat, but in the struts web project I created under Eclipse, there is no jar package under lib at all, that is, lib is an empty folder, all loading work is automatically loaded by Eclipse, and the video tutorial obviously shows the results? But why not mine? Is my program written wrong?
I asked everywhere, including the software group, there are kind-hearted people to give me all kinds of attention, eager to help me, here to express my deep gratitude, the poor thing is still not solved. Since learning Java, I have been hit by the anomaly that I can't find the answer on the Internet and I don't know where the problem is.
In order to find the answer, I began to suspect that there was something wrong with the program I wrote, so I deleted the original program completely and repeated the struts project again, but the result was still the same. I probably ruled out the problem with the program.
Copy the struts.jar package to the lib directory under Tomcat, and the problem persists.
Many people here may doubt the problems with their versions of Tomcat, etc., but I won't, because my version is * *, and from experience, anyone who suspects that there is something wrong with the software begins to doubt the software because he doesn't find out what the problem is. Since I learned Java, not a single problem is caused by the software, it is all caused by the program or deployment.
Through my calm thinking, I did a bold test, and it was precisely such a test that I was extremely happy to solve the problem and rekindled my Java passion.
Instead of copying the struts.jar package, I copied all the jar packages under the D:\ eclipse3.3\ MyEclipse 6.0\ eclipse\ plugins\ com.genuitec.eclipse.cross.easystruts.eclipse_6.0.1.zmyeclipse601200710\ data\ 1.2\ lib directory to the Tomcat lib directory, that is, all the jar packages of Struts1.2, not just struts.jar. A total of 6 jar packages, including struts.jar packages, were successfully run again. I cut six more jar packages to the WEB-INF/lib of the web project, and the run was also successful.
I was angry again, and I was happy that I succeeded. I was angry that my favorite Eclipse ostensibly deployed all the jar packages of struts1.2, but did not load them into WEB-INF/lib, resulting in an exception. I really don't understand how MyEclipse works. The following struts project I set up in Eclipse obviously adds the support of struts1.2, but requires me to manually add the package to WEB-INF/lib:
The above is all the contents of the article "whether MyEclipse really integrates SSH". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.