`
编程足球
  • 浏览: 251136 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

Add Deployment java.lang.NullPointerException

    博客分类:
  • java
 
阅读更多
1. 在用Myeclipse部署项目时候突然报错:



无法进行部署操作

2. 原因1. 可能是你的Web-root的值不对。通过右击项目->Properties->MyEclipse->Web
   查看自己的web根目录是否正确。


  



    发现Web-root 的值为 WebRoot 和 项目的 web 不一致。可会导致上面的错误。

3. 解决方法: 在项目路径目录下找到 .mymetadata 打开
<?xml version="1.0" encoding="UTF-8"?>
<project-module
  type="WEB"
  name="wlms"
  id="myeclipse.1345519075437"
  context-root="/wlms"
  j2ee-spec="1.4"
  archive="wlms.war">
  <attributes>
    <attribute name="webrootdir" value="/WebRoot" />
  </attributes>
</project-module>


修改配置项
  <attributes>
    <attribute name="webrootdir" value="/WebRoot" />
  </attributes>

  为
  <attributes>
    <attribute name="webrootdir" value="/web" />
  </attributes>


保存。。重新启动Myeclipse就可以了
  • 大小: 23 KB
  • 大小: 95.3 KB
  • 大小: 22.1 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics