zoukankan      html  css  js  c++  java
  • MyEclipse无法创建servers视图:Could not create the view: An unexpected exception was thrown

    今天上班刚打开MyEclipse,就发现servers视图无法打开了,显示:Could not create the view: An unexpected exception was thrown。如下图:

    上网查了之后,解决办法如下:

    错误中有一条 at com.genuitec.eclipse.ast.deploy.core.Deployment,到工作空间(Workspace)下面的.metadata.pluginsorg.eclipse.core.runtime.settings目录下面找到了名称为com.genuitec.eclipse.ast.deploy.core.prefs的文件,打开文件,里面都是原来的一些项目信息,所以会报java.lang.NullPointerException错误。1.将tomcat下的项目删除,并将webapps下的项目删除。2.将此文件删除,重启myeclipse即可解决问题。

    分析:猜想可能是之前在Package Explorer中close项目的时候,没有从tomcat中删除就关闭了。

    网上说的原因:从tomcat删除已部署的项目时,直接在文件webapps目录下删除了项目的文件夹,没有在myeclipse的servers视图中把项目删掉。要避免这个问题,删除已部署的项目要在servers视图下删。

  • 相关阅读:
    退役了
    Luogu1835 素数密度_NOI导刊2011提高(04
    Luogu1941 飞扬的小鸟
    Luogu4711 「化学」相对分子质量
    CF285E Positions in Permutations
    JZOJ 5944
    BZOJ3827: [Poi2014]Around the world && CF526E Transmitting Levels
    BZOJ3831: [Poi2014]Little Bird
    CF526F Pudding Monsters
    运算符重载
  • 原文地址:https://www.cnblogs.com/mySummer/p/4311652.html
Copyright © 2011-2022 走看看