The servlet that started this time, today trying to configure Tomcat 7 under Eclipse, found several issues to be aware of that would be important to new people. I am also a novice, here, will be an afternoon plus a night configuration of the experience to share (tomcat installation and the approximate steps of configuring Tomcat under Eclipse, many online, I skipped, only to list some special issues)
Q: Why did the servlet built in eclipse not generate Web. xml?
For:
One of the last steps in building a Web project is the following: Generate. XML deployment descriptor, which is not selected by default, should be taken step-by-step when setting up a project, don't rush to finish.
Such as:
Q: Why does the configuration in Web. XML not update automatically after running the servlet, causing error 404 to be displayed?
For:
This question can be said to have bothered me for an afternoon plus a night, and that's why I'm writing this article. Baidu on the internet for half a day has not been found. At first I thought the path is not correct, to the video repeated several times, but how to change also useless, later found that the content of Web. XML has not changed, at night inadvertently found that the automatically generated servlet, there will be such a package: import Javax.servlet.annotation.WebServlet; and @webservlet ("/ddd"), as long as you do not delete the two, the Web. XML will automatically update and the program will run normally.
Such as:
Q: the set of service environment is many, how to delete useless?
For:
Window-preferences-server-runtime environment-pick out useless, point remove.
Such as:
Q: Why can't I modify the content under Server locations?
For:
You'll have to change it when you've just built the service environment (the project hasn't been built yet).
When you change to the middle one, the created project can be found in the Tomcat file.
Such as:
Q: How do I modify the editor that modifies the default HTML?
For:
Window-preferences-general-editors-file association-html, then choose the one you already provided, or add.
Q: How do I modify the default test browser?
For:
Preferences-general-web Browser, in which to choose
Q: How do I modify the browser that was opened when I modified my test?
For:
Main interface: Window-web browser-internet Explorer
Q: The first few days servers suddenly appear a hint
(Error:no label provider for Tomcat v7.0~~~~~~~~~, and so on), the problem is as shown.
For:
Solved half a day did not find a suitable method, and then had to work space in the. Metadata this folder to delete, and then eclipse the entire configuration is initialized, re-configuration is good, if you have any better solution, trouble message to sue Ha.
Q: today's problem (Khan ... That's a bad question. Description), write hibernate4 because the code first run the database of some errors, and then hurriedly correct the error, after running to find still prompt the same error, no matter how you change, even if you delete all the configuration files, still show you the first run errors, the picture did not cut, But people who believe that the same problem should be able to understand immediately, it's weird, right?
For:
My reason is that the previous introduction of the database driver jar package, did not notice, L two times respectively introduced two the same driver, but one of the drivers failed, but not removed from the list, resulting in the above problem, as long as the failure of the jar to delete this, all OK, the problem is really torture, usually every detail to be careful, There was a problem, it was really a human life, a night to find the reason.
Q:when ORACLE logs on to an account (including system), the general tip: Ora-01033:oracle initialization or shutdown in progress, and when you log in with Sqlplus/nolog, Tip: Writing audit records to Windows Event Log failed
For:
Start Windows Event Log This service (the system defaults to the service is automatic, but some optimization software will make it manual, even disabled), as long as it is enabled, everything is OK, it is important to ensure that the service is enabled before enabling the Oracle service, otherwise invalid. In addition, there are some great gods on the internet have more in-depth research, they are mainly for the Oracle file deleted some important files, or the system log to save too much, on these issues, I will not list, we can go to Baidu.
Such as:
END