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/

posted @   蕃薯耀  阅读(1377)  评论(1编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 【杂谈】分布式事务——高大上的无用知识?
点击右上角即可分享
微信分享提示