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

xiaoxiao2021-02-28  101

错误信息:

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

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

产生错误的操作:

解决方法:

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

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

其它方法

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

解决方案:

Removed the project from the workspaceRemove .classpath, .project and .settings folderReimport the project

Maven项目解决:

Removed the project from the workspaceCMD:mvn eclipse:cleanRemove .settings folderCMD:mvn eclipse:eclipseReimport the project
转载请注明原文地址: https://www.6miu.com/read-42786.html

最新回复(0)