Could not publish to the server java lang NullPointerExcept

错误信息:

publishing to tomcat v8.0 server at localhost has encontered a problem

Could not publish to the server. java.lang.NullPointerException

Could not publish to the server  java lang NullPointerExcept

产生错误的操作:

Could not publish to the server  java lang NullPointerExcept

解决方法:

1、找到Tomcat的配置文件“context.xml”,在Context标签中添加两个属性( reloadable=true” privileged=true”),如下图:

Could not publish to the server  java lang NullPointerExcept

2、加完保存之后,重新启动Eclipse,否则不生效。重新启动Eclipse之后,问题就解决了;但再查看Context.xml文件会发现两个属性又被去掉了。

其它方法

以下方法我没有实际测试过,如果你通过上面的方法不能解决问题,可以考虑尝试下面的方法:

 

解决方案:

  1. Removed the project from the workspace
  2. Remove .classpath, .project and .settings folder
  3. Reimport the project

Maven项目解决:

  1. Removed the project from the workspace
  2. CMD:mvn eclipse:clean
  3. Remove .settings folder
  4. CMD:mvn eclipse:eclipse
  5. Reimport the project

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net

上一篇:IDEA 提示Cannot resolve symbol


下一篇:python爬虫爬取网站小说