Several important issues in configuring TOMCAT7 under Eclipse

Source: Internet
Author: User
Tags system log

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)

Tools/Materials
    • Operating system: Win7 64-bit

    • Development tools: eclipse-jee-juno-sr2-win32-x86_64

    • Server: apache-tomcat-7.0.35-windows-x64

    • Database: Oraclexe112_win32, not 64 of the official website, but 32 can also be used in 64

Various problems and related solutions
  1. 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:

  2. 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:

  3. 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:

  4. 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:

  5. 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.

  6. Q: How do I modify the default test browser?

    For:

    Preferences-general-web Browser, in which to choose

  7. Q: How do I modify the browser that was opened when I modified my test?

    For:

    Main interface: Window-web browser-internet Explorer

  8. 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.

  9. 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.

  10. 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

Precautions
    • Temporarily found all these problems, and so on when there are problems, will update this article in time,

    • This period of time is busy, may not take into account these content, but after the examination, I will immediately do a better improvement

    • If you have any questions, or better suggestions, please leave a message, thank you for my experience support

    • This article was previously published in the Baidu Space, now collated to experience, more convenient for everyone's reading

    • -----------IDEA_WJ Reprint Please specify the author's pseudonym, Thank you August 17, 2013

Several important issues in configuring TOMCAT7 under Eclipse

Related Article

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.