参考资料
1 ECLIPSE中部署工程报“Undefined exploded archive location”错误的解决方法
http://blog.csdn.net/jojoy_828/article/details/2050728
2 Undefined exploded archive location 错误
http://ljhzzyx.blog.163.com/blog/static/38380312201010923129855/
http://www.blogjava.net/hulizhong/archive/2008/06/20/209502.html
原因:在工程转移过程中,导致工程的配置文件出错
部署错误情况一
1 在myeclipse配置的server中不能部署工程,报错如下:
no projects are available for deployment to this server Either the all have already been deployed to this server or no deployable projects have been found
报错图片如下:
说明一下,我的工程类型为J2EE1.3,编译语法为1.4,检查工程的相关文件,其中的.project文件内容如下
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>XXXX</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
你也许会问,如何查看这个.project文件呢,有二种方法,一种是在物理磁盘上你的工程下面
第二种是在Eclipse中,如下图所示
点击Package Explorer右边的下拉小三角
点击Filters...
把框中第一个复选框勾选取消(.resources)
3 点击确定后就可在工程中查看到.project文件了
4
你可根据工程的使用的版本,创建相应的工程,将其中的.project文件内容拷贝过去,
如下,我创建的是J2EE1.3的版本,粘贴至相应的位置,内容如下:
<buildSpec>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
这样就可解决这个问题了
部署错误情况二
接上面的情况继续部署工程,发现不能把工程发布到服务器中,报错如下:
Undefined exploded archive location
仔细对应二个工程属性文件上,从SVN上checkout出来的项目中没有.mymetadata文件,
可能webrootdir被改无效了或者少了这context-root这个属性,如上操作,将.mymetadata文件拷贝到工程中,修改相应的工程名称,请注意一点的是.WebRoot的名字是否正确,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="XXXX"
id="myeclipse.1202968712015"
context-root="/XXXX"
j2ee-spec="1.3"
archive="XXXX.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>
注意事项:在myeclipse中创建的可能不是WebRoot这个名字,可能是:WebContent
那么请修改.mymetadata文件中webrootdir对应的value.如下:
<attribute name="webrootdir" value="WebContent" />
最后关掉Eclipse,再启动Eclipse,接着发布工程,发布成功!
- 大小: 21.4 KB
- 大小: 17.1 KB
- 大小: 24.5 KB
- 大小: 51.7 KB
分享到:
相关推荐
NULL 博文链接:https://dy545443766.iteye.com/blog/1949570
web项目MyEclipse里部署时找不到,解决方案~!
myeclipse 插件热部署 jrebel6.5 亲测可用,资源下载到磁盘,然后打开myeclipse 路径为:Windows ---> Perferences --> MyEclipse -->Servers -->Tomcat --> Tomcat 7.x -->JDK 配置jvm参数: -...
开发工具相互交流,现在较好的工具推荐用IDEA ,对应eclipse老粉不愿意转工具的可以拿去试试,提高工作效率还是有帮助
教你怎么使用MyEclipse部署Java项目,war格式,部署后无源代码
MYECLIPSE程序部署方法MYECLIPSE程序部署方法
MyEclipse+JBoss开发部署jsp和servlet入门的源码
使用myeclipse详细的部署工程步骤,一步一步教会你
这个文档是关于weblogic+myeclipse部署的详细说明,相信您看了之后,通过配置说明把自己的项目启动起来,其实与Tomcat+myeclipse的配置差不多。
非常详细的项目部署流程,包括如何建立数据源,适用于使用myeclipse和websphere的javaweb项目。
在myeclipse里部署Weblogic项目(web project)时候的问题浏览器浏览时,报以下错误 Error 404--Not Found From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.5 404 Not Found
解决java spring热部署的问题,亲测能用,不能用那是人品啊
Birt与MyEclipse的集成及Birt的部署问题,花费三天的时间整理所得
有了Jrebel,让独立部署的tomcat也支持热部署(不依赖Eclipse或MyEclipse) 记得路径如果有空格一定要加上双击号,我吃过亏的!
彻底解决myeclipse10.7.1 版本破解后,无法使用war包的问题。您是否还在纠结于myeclipse10.7.1无法导出war包功能,请下载并解决吧!
ant在myeclipse中的部署,过程比较详细,要是还不成功,那就是你自己机子的问题
MyEclipse和Eclipse的相互部署
我找到的所有相关资料 博文链接:https://iamzealotwang.iteye.com/blog/239591
Myeclipse中Tomcat的两种部署方