myeclipse中部署复制的java web项目报错:Errors running builder “Integrated External Tool Builder” on project

来源:互联网 发布:java jsonarray 编辑:程序博客网 时间:2024/06/05 15:02

已经是5月一号假期了,妈妈生病,在家照顾,闲暇时间解决了个之前不知道怎么就解决好了的问题:在服务器上克隆下来的web项目,在本地部署不了。

下面把解决步骤说下:

    出现的问题:Error occurred during the build. 具体detail是:Errors running builder 'Integrated External Tool Builder' on project XX.The builder launch configuration could not be found. The build launch congiguration could not be found.

                     

  

    解决办法如下:

           1.Select the right project
         2.Choose "project"on the tool bar -> Properties
         3.Click "Builders" in the menus of the popped up window
         4.Remove the missing builders

       1)删除前

 

      2)删除后

 



二、但是操作后出现了新的问题,点击项目运行server,出现了nullPointExecption错误:An internal error occurred during: "Launching liquid on MyEclipse Tomcat ".java.lang.NullPointerException这下可蛋疼了,又要翻箱倒柜了

    

      按照网上进行的指导如下:
        1、首先关闭MyEclipse工作空间。
        2、然后删除工作空间下的文件。
               “MyEclipse10\workspace.metadata.plugins\org.eclipse.core.runtime.settings、                           
        com.genuitec.eclipse.ast.deploy.core.prefs”因为在这个文件中存储了一些部署项目的信息。删了这个部署的项目的信息就没有错误了。

        3、重启MyEclipse

      但是按照这个方法问题还是没有解决。后来就自己摸索,分析到,既然后台可以运行,估计是由于一些配置文件出了问题,导致在web项目启动时,出现了问题,我想是不是可以借助Myeclipse重构这个项目。终于采用了以下方法:

         1.Select the right project
         2.Choose "project"on the tool bar -> Properties

         3.Choose "web"

         4.Change the name of Web Context-root to any name

         

         5.change the name to back to before

         

         6.click the button of finish

        

       最后终于成功的启动了项目

        

        

    

   对了中间还有点细节,需要把编译器java compile 设置成1.7版本的,我的默认是1.4也没跑通。

        


三、总结

     在移动项目时,尽量保证后来的开发环境和原始项目的开发环境一致,如果之前用的Myeclipse,那么条件允许尽量也用Myeclipse;JDK也很重要,如果之前项目是低版本的,后面用高版本的可能没有问题,但是如果反过来,之前用的高版本,你用了低版本,很容易出现问题。

    上面的过程讲述细节有没有讲到的地方,望多包涵,有问题请大家指教。

    


    

 


         

1 0