Tomcat 6.0/webapps/project name/WEB-INF/classes is empty

Source: Internet
Author: User

The trainer task assigned by the leader is not completed on time, so it is not a taste of it. It is actually done, but the problem still occurs in the project deployment and build path.

When you browse your own page:

[COM/gxlu/ngrm/application/Business/equipment/client/web/View/managedonumgr. view. XML] Not exists. at COM. bstek. dorado. common. fileloader. autofileloader. getrealfileloader (autofileloader. java: 70)

If the file exists in the project, an exception is thrown when the file cannot be found!

Experience tells me that the first thing I feel is that there is a problem with build path. But a newbie, I am so overwhelmed. So she bravely pulled leader. She looked at the problem and said, Let me solve it myself ......

Tomcat 6.0/webapps/project name/WEB-INF/classes is empty, meaning that all java files of the project cannot generate class files!

Solution:

Online method:

I tried it based on what I said on the Internet. No,

Myeclipse does not compile. 1. Make sure that the project> build automatically has been selected.

Myeclipse does not compile and solves the problem. 2. If it is selected, it is difficult to use this trick: Project-> clean...> select 2nd clean select projects and Check Start build immediatelly.

Myeclipse does not compile solution 3. Delete the current project, set the output path of the compilation file in advance, re-import the source file, set myeclipse to compile when saving, and then automatically compile when saving

Myeclipse does not compile. 4. if a jar package is introduced in the project and you delete the package, no error will be reported but the class file cannot be compiled, you can delete all packages and then introduce them one by one (required). Do not introduce all packages at once. Useless Packages may cause adverse consequences.

Myeclipse does not compile solution 5. I want to delete a class file and regenerate it. After the class file is deleted, the folder in the classes directory isProgramOpen, such as total commander. At this time, the compilation will not pass. In problems, the system may prompt "Con't delete classes ......". Turn off other programs and re-compile them.

Myeclipse does not compile 6. In other cases, remove the JRE system library and re-import it to compile. However, it is unclear why.

Myeclipse does not compile solution 7. Remove all the packages in build path. Then add jars and add libraries to add the required ones, and then compile again...

Myeclipse does not compile solution 8. project-> properties-> JAVA build path-> source->... /WEB-INF/src Output Folder do not default, Edit to let it point .. /WEB-INF/classes

Click the build project again to compile automatically. Here is my problem. I deleted the compiled directory by mistake.

Myeclipse does not compile to solve 9. the most important thing is to check whether the work directory is missing under the project. because the work is not added as a version during CVS control, this directory is unavailable after checkout, you need to manually add some projects to automatically compile them.

At the beginning, I found only the first seven methods, but none of them solved my problem."Problems" label, found that the work directory is missing, manually add, and then refresh the project.

I tried a jar and path problem.
Note:"Problems"
Tag, which has already raised a question for us! So follow the prompts to perform the operation. Generally, this type of problem is caused by a problem on build path. You can add more jar files or less jar files ....

Select project: Right-click Project --- property --- Java build path --- order and export and select all check boxes -- redeploy. OK

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.