Eclipse'加载描述符'需要年龄 [英] Eclipse 'loading descriptor' takes ages

查看:323
本文介绍了Eclipse'加载描述符'需要年龄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个基于Java Spring MVC的项目,使用Eclipse(Juno - 最新版本),使用最新的JVM 1.7和Tomcat 7. Eclipse非常快,一切设置为默认设置。一旦它被加载,它是闪电般快速,这是一个愉快的变化。



但是,唯一的抱怨是,如果我打开一个项目,它开始加载描述符',据我所知,我们的185行web.xml文件。有时这可能需要5分钟加载,有时可能根本不加载。这样可以防止任何更改发生,因为系统在其他任何事情发生之前等待描述符加载。按下这个停止按钮使系统等待取消通过,唯一的出路似乎是杀死java进程是任务管理器。如果它偶然地加载,那么系统运行正常(除非你打开另一个项目以供参考,那么乐趣再次开始)。



是否有一些配置跳过描述符(例如,可以跳过与验证有关的事情),还是有一些原因可能无法正确加载描述符?

解决方案>

当您的Project Explorer打开时,会发生这种情况。在项目浏览器的自定义视图对话框中取消选中不必要的选项。在项目浏览器面板的右上角有一个名为自定义视图的菜单,进入名为内容的第二个选项,并取消选中不需要的选项...


We have a Java Spring MVC based project using Eclipse (Juno - the latest build), using the latest JVM 1.7 and Tomcat 7. Eclipse is pretty fast, and everything is set to default settings. Once it is all loaded up, it is lightning fast, which makes a pleasant change.

However, the only gripe is that if I open a project, it begins 'Loading descriptor', which as far as I can tell is our 185-line web.xml file. Sometimes this might take 5 minutes to load, sometimes might just not load at all. This prevents any changes being made, as the system waits for the descriptor to load before anything else happens. Pressing the stop button on this leaves the system 'waiting' for the cancel to go through, and the only way out seems to be to kill the java process is the task manager. If it does by chance load, then the system runs fine (unless you open another project for reference, then the fun begin again).

Is there some configuration that skips the descriptor (e.g. is it something to do with validation that can be skipped) or would there be some reason that the descriptor might not load properly?

解决方案

This happens when your Project Explorer is open. Uncheck unnecessary options at Project Explorer's "Customize View" dialog. On the top right corner of the Project Explorer panel there is menu called "Customize View", go to the second tab called "Content" and uncheck unwanted options...

这篇关于Eclipse'加载描述符'需要年龄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆