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

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

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

产生错误的操作:

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

解决方法:

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

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

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

本文出自 http://blog.****.net/testcs_dn/article/details/49862243#comments 感谢楼主分享