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://fanshuyao.iteye.com/

 

一、问题描述:

 

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 version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>xxx</name>

 

.project文件的完整内容:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>xxx</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.common.project.facet.core.builder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.springframework.ide.eclipse.core.springbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.springframework.ide.eclipse.boot.validation.springbootbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.m2e.core.maven2Builder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.springframework.ide.eclipse.core.springnature</nature>
		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.eclipse.m2e.core.maven2Nature</nature>
		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
	</natures>
</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://fanshuyao.iteye.com/

 

 

猜你喜欢

转载自fanshuyao.iteye.com/blog/2413139