IntelliJ idea using Tomcat as a Web server debug Javaweb Project environment configuration problem-non-basic version

Source: Internet
Author: User

The content of this article is not to record idea how to create a basic Javaweb project and then use configure local tomcat

So please don't waste your time by taking a quick step back with a small partner that is not already the target. (because the title does not know how to take, so there may be a small partner mistakenly entered, hereby stated)

This article is mostly documented, after I downloaded a company's existing Web project from SVN, using Tomcat to run an error, that is, some of the workarounds for not running the project properly, there are related to the idea's tomcat configuration, and to the idea's Web configuration!

1.web.xml file does not read properly under Classpath path

You can see that the spring configuration file under Com.zazalu.config cannot be read

The problem: The classes folder in your project doesn't have this file, so it won't be found.

Solution: Press the shortcut key Ctrl+alt+shift+s, pop up the project configuration, as shown, click to view the path of your project's Classes folder

Sometimes, when you use SVN to import a MyEclipse project, classes This folder path may not be used, web-inf under the classes path, and Tomcat is required to compile the file path is placed in Web-inf classes, So this will cause an error when using the classpath config file path in Web. XML, saying it can't be found. In this case, it is necessary to manually go to the project configuration, modify the output path, modify the Classes folder path under the Web-inf of your project! After the modification, can not use the CLASSPATH problem is solved!

Additional Instructions:

This thing is an idea limit your Java version of the language of a feature, if you are using jdk1.7, then debug it here as a version, you can use the normal or will be reported

http://blog.csdn.net/leixingbang1989/article/details/51985601

Errors recorded in this site

2. This page if I encounter problems, will continue to update!

IntelliJ idea using Tomcat as a Web server debug Javaweb Project environment configuration problem-non-basic version

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.