MyEclipse Server view报错解决方法

方法/步骤

 
  1.  

    启动MyEclipse,弹出一个框,报错。

    --------------------------------------------------------------------------------

    Errors occurred during the build.

    Errors running builder 'DeploymentBuilder' on project 'SeNT-DL'.

    java.lang.NullPointerException

  2.  

    Server view报错:

    --------------------------------------------------------------------------------

    Could not create the view: An unexpected exception was thrown.

  3.  

    Server view报错:

    --------------------------------------------------------------------------------

    java.lang.NullPointerException

    at com.genuitec.eclipse.ast.deploy.core.Deployment.<init>(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.<init>(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.<init>(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.Deployment.create(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.loadFromPreferences(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.init(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.<init>(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.getDefault(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.ui.ServerTreeViewer$ServerTreeContentProvider.inputChanged(Unknown Source)

    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:276)

    at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)

    at com.genuitec.eclipse.ast.deploy.core.ui.ServerTreeViewer.<init>(Unknown Source)

    at com.genuitec.eclipse.ast.deploy.core.ui.ServerView.createPartControl(Unknown Source)

    at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)

    at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)

    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

    at org.eclipse.ui.internal.Perspective.showFastView(Perspective.java:2171)

    at org.eclipse.ui.internal.Perspective.setActiveFastView(Perspective.java:1939)

    at org.eclipse.ui.internal.Perspective.setActiveFastView(Perspective.java:1952)

    at org.eclipse.ui.internal.Perspective.toggleFastView(Perspective.java:2367)

    at org.eclipse.ui.internal.WorkbenchPage.toggleFastView(WorkbenchPage.java:3972)

    at org.eclipse.ui.internal.ShowFastViewContribution.showView(ShowFastViewContribution.java:157)

    at org.eclipse.ui.internal.ShowFastViewContribution.access$1(ShowFastViewContribution.java:155)

    at org.eclipse.ui.internal.ShowFastViewContribution$3.widgetSelected(ShowFastViewContribution.java:138)

    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)

    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)

    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)

    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

  4.  

    Server视图显示的是项目部署在Server的情况,每个工作空间都有个性化配置。找到工作空间的Server项目部署配置文件。

    --------------------------------------------------------------------------------

    目录是$工作空间\.metadata\.plugins\org.eclipse.core.runtime\.settings\com.genuitec.eclipse.ast.deploy.core.prefs

  5.  

    根据工作空间的Server项目部署配置文件可以看出,Server部署了两个项目,分别是SeNT-DL,SeNT-b11M

    --------------------------------------------------------------------------------

    eclipse.preferences.version=1

    tomcat7Server.SeNT-DL.IEARProjectName=

    tomcat7Server.SeNT-DL.altContextRoot=

    tomcat7Server.SeNT-DL.contextRoot=/SeNT-DL

    tomcat7Server.SeNT-DL.deployIsOverProject=false

    tomcat7Server.SeNT-DL.deploymentPath=F\:\\apache-tomcat-7.0.55\\webapps\\SeNT-DL

    tomcat7Server.SeNT-DL.isDeployed=true

    tomcat7Server.SeNT-DL.isExploded=true

    tomcat7Server.SeNT-DL.isUptoDate=true

    tomcat7Server.SeNT-DL.noFileCopy=false

    tomcat7Server.SeNT-DL.shouldBackup=false

    tomcat7Server.SeNT-DL.shouldOverwrite=false

    tomcat7Server.SeNT-DL.type=WebDeployment

    tomcat7Server.SeNT-b11M.IEARProjectName=

    tomcat7Server.SeNT-b11M.altContextRoot=

    tomcat7Server.SeNT-b11M.contextRoot=/SeNT-b11M

    tomcat7Server.SeNT-b11M.deployIsOverProject=false

    tomcat7Server.SeNT-b11M.deploymentPath=F\:\\apache-tomcat-7.0.55\\webapps\\SeNT-b11M

    tomcat7Server.SeNT-b11M.isDeployed=true

    tomcat7Server.SeNT-b11M.isExploded=true

    tomcat7Server.SeNT-b11M.isUptoDate=true

    tomcat7Server.SeNT-b11M.noFileCopy=false

    tomcat7Server.SeNT-b11M.shouldBackup=false

    tomcat7Server.SeNT-b11M.shouldOverwrite=false

    tomcat7Server.SeNT-b11M.type=WebDeployment

  6.  

    实际上,Server只部署了一个项目SeNT-DL,另外一个项目SeNT-b11M被删除了。

  7.  

    另外一个项目SeNT-b11M被删除了,删除的方式是进入tomcat的webapps,直接删除。没有通知MyEclipse,导致MyEclipse的工作空间的Server项目部署配置文件没有做更新,依旧配置Server部署了两个项目,分别是SeNT-DL,SeNT-b11M。

  8.  

    解决方法一:更新MyEclipse的工作空间的Server项目部署配置文件com.genuitec.eclipse.ast.deploy.core.prefs,根据实际情况,删除已经不存在于Server的项目配置。把以下高亮部分配置删除。

  9.  

    解决方法二:删除tomcat的webapps的所有项目,删除文件com.genuitec.eclipse.ast.deploy.core.prefs。这种方式相当于清空部署在tomcat的所有项目,清空MyEclipse的工作空间的Server项目部署配置文件。(本人使用的就是这一种方法 ,直接删除)

  10.  

    为了避免此类问题再次出现,想要删除部署在tomcat的项目时,不要进入tomcat的webapps,直接删除,而是在server view视图做删除。在server view视图做删除项目时,MyEclipse会更新工作空间的Server项目部署配置文件。

MyEclipse Server view报错解决方法的更多相关文章

  1. eclipse创建的maven项目,pom.xml文件报错解决方法

    [错误一:]maven 编译级别过低 [解决办法:] 使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.6 以上: <!-- java编译插件 --> ...

  2. Loadrunner参数化逗号报错解决方法

    Loadrunner参数化逗号报错解决方法     介绍Loadrunner参数化时,参数中包含有逗号时出错的解决方法. 在Loadrunner进行参数化时,参数中如果含有逗号,编辑保存后会报错: 此 ...

  3. Android Studio support 26.0.0-alpha1 Failed to resolve: com.android.support:appcompat-v7:27.+ 报错解决方法

    AS下如何生成自定义的.jks签名文件, 以及如何生成数字签名 链接:http://www.cnblogs.com/smyhvae/p/4456420.html 链接:http://blog.csdn ...

  4. iOS url带中文下载时 报错解决方法

    问题描述:下载文件时, 请求带中文的URL的资源时,比如:http://s237.sznews.com/pic/2010/11/23/e4fa5794926548ac953a8a525a23b6f2/ ...

  5. jquery jssdk分享报错解决方法

    jssdk分享报错解决方法 一般都是参数传错了

  6. django.db.utils.InternalError: (1060, "Duplicate column name 'user_id'")迁移报错解决方法

    django.db.utils.InternalError: (1060, "Duplicate column name 'user_id'")迁移报错解决方法 django.db ...

  7. create-react-app创建项目后,运行npm run eject报错解决方法

    运行npm run eject报错解决方法 主要问题是脚手架添加.gitgnore文件,但是却没有本地仓库,使用以下命令操作以下就可以了 git init git add . git commit - ...

  8. 打开struts-config.xml 报错 解决方法Could not open the editor

    打开struts-config.xml 报错 解决办法Could not open the editor 错误信息:Could not open the editor: Project XXX is ...

  9. CitrixSmartAuditor安装报错解决方法

    报错1:安装过程中报错 解决方法: SQLServer的配置: http://www.cnblogs.com/weizhengLoveMayDay/p/3267756.html 报错2:无法连接到Sm ...

随机推荐

  1. python生成Excel图表(通过xlsxwriter)

    前面介绍了pandas的简单用法,pandas的数据可以通过matlab第三方包将数据生成报表,但是我想将报表生成在Excel中,这时候就可以借助xlsxwriter第三方包来生成图标   缺点:xl ...

  2. redis.clients.jedis.exceptions.JedisException: Can connect to sentinel, but seems to be not monitored.

    在使用Redis的哨兵Sentinel配置时,报错如下: redis.clients.jedis.exceptions.JedisException: Can connect to sentinel, ...

  3. 设置https以及http转https的问题

    公司用的是阿里云服务器win2008server r2 ,环境是phpwamp,出现许多问题.2018-11-12 一 设置https 1.设置httpd.ini 取消以下三个配置的# LoadMod ...

  4. java实现person类 override(重写) comparable接口

    具体题目如下: 定义一个Person类,包含姓名(name).身高(height).体重(weight),以及talk()方法,该方法的功能是,输出自己的身高和体重信息.Person类实现Compar ...

  5. 关于CDh5.13.1 HDFS启用HA(High Availability)注意事情--(JournalNode 只有一个编辑路径)

    原因为:主机名不能为域名.更换成hadoop64 这种解决.

  6. pta l2-20(功夫传人)

    题目链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805059118809088 题意:给定n个人,编号0-n-1, ...

  7. npm、webpack、vue-cli快速上手版

    node.js和npm npm的安装和更新 Node.js下载安装,npm自带的包管理工具. 查看安装版本信息: node -v 查看node.js版本信息 npm -v 查看npm版本信息 更新np ...

  8. oracle 中decode函数用法

    学习记录: 含义解释: decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值) 该函数的含义如下:IF 条件=值1 THEN RETURN(翻译值1)ELSIF 条件=值2 ...

  9. queue模拟

    BlockingQueue:顾名思义,首先它是一个队列,并且支持阻塞的机制,阻塞的放入和得到数据.我们要实现LinkedBlockingQueue下面两个简单的方法put和take. put(anOb ...

  10. POST请求测试地址

    http://service.xunjimap.com/xunjiservice/common1_0_4/index?53D2CFEB65F6BBEEEB42836FE18E7E0D params.a ...