Tomcat Project classes XML file without DAO project

Source: Internet
Author: User

When Tomcat deploys a MAVEN WEB project, the associated DAO project is not deployed to E:\apache-tomcat-6.0.41\webapps\vehicleserv\WEB-INF\classes ( That is, there is no XML file in the DAO project, which causes the Tomcat startup times not to find a configuration file in the DAO project (such as <import resource= "Classpath:applicationcontext-dao.xml"/>
<import resource= "Classpath:applicationcontext-datasource.xml"/> the startup times cannot find the two corresponding files)
Solve:
1. Package The DAO Project: Right-click-->run-->maven clean-->maven instal on the DAO Project. Then add the dependency of this DAO project in the Pom.xml of the Web project
On a 2.web project, right-click the-->biuldpath-->configur biuldpath-->project tab in the corresponding DAO file, and open the DAO folder tree structure-double-tap the first item- The Edit Access Rule dialog box appears, and the forbidden option in resolution is changed to fill in the DAO project name in Accessible,rule Pattern--click OK.

Tomcat Project classes XML file without DAO project

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.