• An internal error occurred during: "Launching xxx on WebLogic10.x".


    An internal error occurred during: "Launching xxx on WebLogic10.x". java.lang.NullPointerException

    ==============================

    蕃薯耀 2018年3月15日

    http://www.cnblogs.com/fanshuyao/

    一、问题描述:

    Myeclipse 将项目部署web服务器报错:

    An internal error occurred during: "Launching xxx on WebLogic10.x". java.lang.NullPointerException



     

    二、解决方案:

    选中【项目】,右键,选择【Properties】》【MyEclipse】》【Web】,查看右边【Context Root】选项卡的Web-root folder有没有设置正确,设置不正确或目录不存在时会有错误提示:

    Web-root folder should contain WEB-INF sub directory

    如下图所示:



     

    将Web-root folder设置自己的部署目录就可以了,一般为WebRoot或者WebContent,但如果有些项目比较特殊,不是使用这类的目录的话,就需要手动改一下。因为该目录下的子目录是需要有WEB-INF子目录的。

    如果目录比较特殊,可能还需要改下Deployment Assembly的配置,操作如下

    选中【项目】,右键,选择【Properties】》【MyEclipse】》【Deployment Assembly】

    勾选 Use deplloyment assembly mapping for deployment

    然后就可以设置自己的Web文件部署目录。

    还有需要注意的是:项目如果是复制其它项目直接导入的,可能该项目的下的.project文件里面的name标签的项目名称需要修改正确

    .project文件位于该项目的目录下,每个项目都会有这个文件



     

    打开.project文件,查看name标签的项目名是否正确。不正确,请修改。

    Xml代码  收藏代码
    1. <?xml version="1.0" encoding="UTF-8"?>  
    2. <projectDescription>  
    3.     <name>xxx</name>  

    .project文件的完整内容:

    Xml代码  收藏代码
    1. <?xml version="1.0" encoding="UTF-8"?>  
    2. <projectDescription>  
    3.     <name>xxx</name>  
    4.     <comment></comment>  
    5.     <projects>  
    6.     </projects>  
    7.     <buildSpec>  
    8.         <buildCommand>  
    9.             <name>org.eclipse.jdt.core.javabuilder</name>  
    10.             <arguments>  
    11.             </arguments>  
    12.         </buildCommand>  
    13.         <buildCommand>  
    14.             <name>org.eclipse.wst.common.project.facet.core.builder</name>  
    15.             <arguments>  
    16.             </arguments>  
    17.         </buildCommand>  
    18.         <buildCommand>  
    19.             <name>org.eclipse.wst.validation.validationbuilder</name>  
    20.             <arguments>  
    21.             </arguments>  
    22.         </buildCommand>  
    23.         <buildCommand>  
    24.             <name>org.springframework.ide.eclipse.core.springbuilder</name>  
    25.             <arguments>  
    26.             </arguments>  
    27.         </buildCommand>  
    28.         <buildCommand>  
    29.             <name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>  
    30.             <arguments>  
    31.             </arguments>  
    32.         </buildCommand>  
    33.         <buildCommand>  
    34.             <name>org.eclipse.m2e.core.maven2Builder</name>  
    35.             <arguments>  
    36.             </arguments>  
    37.         </buildCommand>  
    38.     </buildSpec>  
    39.     <natures>  
    40.         <nature>org.springframework.ide.eclipse.core.springnature</nature>  
    41.         <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>  
    42.         <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>  
    43.         <nature>org.eclipse.jdt.core.javanature</nature>  
    44.         <nature>org.eclipse.m2e.core.maven2Nature</nature>  
    45.         <nature>org.eclipse.wst.common.project.facet.core.nature</nature>  
    46.         <nature>org.eclipse.wst.jsdt.core.jsNature</nature>  
    47.     </natures>  
    48. </projectDescription>  

     -----------------------------------------------分隔线----------------------------------------------------------

    网上流传的类似问题的其它方法,但不是本人遇到的问题解决方法:

    1、首先关闭退出MyEclipse。

    2、然后删除MyEclipse工作空间(workspace)下的

    “/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”

    这个文件。在这个文件中存储了一些部署项目的信息。删了这个部署的项目的信息就没有错误了。

    3、重启启动MyEclipse即可解决了。

    ==============================

    蕃薯耀 2018年3月15日

    http://www.cnblogs.com/fanshuyao/

  • 相关阅读:
    Nginx负载均衡+代理+ssl+压力测试
    Nginx配置文件详解
    HDU ACM 1690 Bus System (SPFA)
    HDU ACM 1224 Free DIY Tour (SPFA)
    HDU ACM 1869 六度分离(Floyd)
    HDU ACM 2066 一个人的旅行
    HDU ACM 3790 最短路径问题
    HDU ACM 1879 继续畅通工程
    HDU ACM 1856 More is better(并查集)
    HDU ACM 1325 / POJ 1308 Is It A Tree?
  • 原文地址:https://www.cnblogs.com/fanshuyao/p/8572529.html
Copyright © 2020-2023  润新知