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

错误信息:

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

产生错误的操作:

解决方法:

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

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-24 22:54:32

Could not publish to the server. java.lang.NullPointerException的相关文章

jsp发布:Could not publish server configuration: null. java.lang.NullPointerException

1.jsp发布: Could not publish server configuration: null. java.lang.NullPointerException 答案 :http://zhouhaitao.iteye.com/blog/1998979 查找到错误啦: 圈中的地方写成了花生壳域名:“daci123.eicp.net”\ 修改后启动正常 重启后显示: Removing obsolete files from server...Could not clean server o

解决kylin build cube第一步报错:java.lang.NullPointerException

报错栈: 2017-06-19 10:27:35,757 ERROR [pool-9-thread-4] threadpool.DefaultScheduler:140 : ExecuteException job:933bc47a-302c-48fa-8ec9-ae8730057175 org.apache.kylin.job.exception.ExecuteException: org.apache.kylin.job.exception.ExecuteException: java.la

?--Porg.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException

使用BoneCP作为连接池,在启动Tomcat报出以下异常: 一月 02, 2016 2:12:17 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mynewdpi' did not find a

java.lang.NullPointerException at com.pp.controller.PPUserController.updateDetail(PPUserController.java:34)

问题原因:忘记写@Resource: 由此而知:可能是service没有引进去. 全部错误代码: 22:33:17,883 DEBUG SessionImpl:243 - Opened session at timestamp: 14308363978 22:34:11,470 ERROR AdminController:39 - 用户User [id=11, name=caowenyan, pwd=null, mail=null, photo=null, createdate=null, lo

faultString = "java.lang.NullPointerException : null"

1.错误描述 (mx.messaging.messages::ErrorMessage)#0 body = (null) clientId = "E75F6AF8-5E0E-4184-3AF2-860E39C2D8CD" correlationId = "DD54367E-6190-6FF3-C263-81FEF0DB9D09" destination = "waitRestoreController" extendedData = (null)

java.lang.NullPointerException的可能原因及处理

java.lang.NullPointerException的可能原因及处理 java.lang.NullPointerException具体意思是空指针异常,最常见的问题就是没有初始化. 字符串等数据类型没有初始化 类实例(对象)有用具体的类初始化 没有判断是否为空 Eg: 源码: 1 public static BookInformation[] ImFromClassification(String a){ 2 Connection conn = null; 3 PreparedState

struts2 报错:java.lang.NullPointerException: Source must not be null

今天使用strut2+ajax进行异步上传时出错,控制台没有打印信息,ajax回调函数中alert返回值得到如下信息,大概就是空指针的意思. 实际上是上传的input name值和action变量名不一致造成.input name为myfile,变量为myFile,一个字母的大小写造成的错误!注意这个地方! HTTP Status 500 - type Exception report message description The server encountered an internal

HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException

type Exception report message Request processing failed; nested exception is java.lang.NullPointerException description The server encountered an internal error that prevented it from fulfilling this request. exception org.springframework.web.util.Ne

我的异常-java.lang.NullPointerException

      这个异常相信大家一定非常眼熟,相信在每人的程序开发生涯中都遇到过.在这次高校3.1的开发中,这样的错又这样被抛出来了.这是一个小bug,但遇到它,它就能让你恶心半天,因为的程序会因此挂起,不再提供正常的服务.       在基础开发对外服务接口的时候,经常遇到服务异常,其他系统在调用接口的时候,时而不能正常提供数据.然后我就去jboss上去翻看server.log,发信有报java.lang.NullPointerException的错,然后以java.lang.NullPointe