one or more listeners failed to start
2017-11-16 21:55
531 查看
项目中集成了openoffice作为文档处理工具,今天找了一台服务器作为测试服务器,想要搭建一个测试环境,jdk,openoffice,tomcat环境装好之后,本地生成war包,放到服务器上,启动报错,查看 Catalina.out 文件,显示 one or more listeners failed to start。同时查看 localhost日志文件,显示spring在初始化时报错。
之前在linux上部署服务时已经遇到过该问题,当时的原因是因为db.properties配置文件中缺少必要的配置项,导致服务启动失败。更改db.properties配置文件后即可。本次沿着上次的思路,检查了配置文件之后,发现没有问题。但是服务启动依然失败。
于是在系统初始化的代码中增加打印语句,在spring初始化每一个有@table注解的实体类时,增加打印信息,当打印到创建openoffice连接的实体类时,系统启动终止,报错。注释创建openoffice的连接,重新启动,服务一切正常。
服务器上已经正常安装了openoffice服务,手动使用 ps -ef |grep openoffice 来检查也是有服务的,端口 8100 正常 ,chkconfig --list 也有openoffice服务。
在生产环境中也是同样的环境,启动服务,并没有出现类似的问题,先记录下问题的原因。
在此次的服务启动中,也发现了有其他的小坑,实体类中的属性如果是以小写s、t开头,系统在初始化时,会报没有isXXX()方法,原先只是知道属性不能以is来开头,框架解析时会解析出错。这种情况还没有遇见过,明天对spring源码调试一下。先记录下问题。
之前在linux上部署服务时已经遇到过该问题,当时的原因是因为db.properties配置文件中缺少必要的配置项,导致服务启动失败。更改db.properties配置文件后即可。本次沿着上次的思路,检查了配置文件之后,发现没有问题。但是服务启动依然失败。
于是在系统初始化的代码中增加打印语句,在spring初始化每一个有@table注解的实体类时,增加打印信息,当打印到创建openoffice连接的实体类时,系统启动终止,报错。注释创建openoffice的连接,重新启动,服务一切正常。
服务器上已经正常安装了openoffice服务,手动使用 ps -ef |grep openoffice 来检查也是有服务的,端口 8100 正常 ,chkconfig --list 也有openoffice服务。
在生产环境中也是同样的环境,启动服务,并没有出现类似的问题,先记录下问题的原因。
在此次的服务启动中,也发现了有其他的小坑,实体类中的属性如果是以小写s、t开头,系统在初始化时,会报没有isXXX()方法,原先只是知道属性不能以is来开头,框架解析时会解析出错。这种情况还没有遇见过,明天对spring源码调试一下。先记录下问题。
相关文章推荐
- 【报错】项目启动,仅仅报错 One or more listeners failed to start. Full details will be found in the appropriate container log file
- Geoserver fails One or more listeners failed to start
- 关于One or more listeners failed to start的问题排查
- bug笔记 - Spring --- Tomcat 报错: SEVERE: One or more listeners failed to start.
- One or more listeners failed to start
- One or more listeners failed to start. Full details will be found in the appropriate container log
- 启动 Tomcat 报错 One or more listeners failed to start. Full details will be found in the appropriate
- 关于Struts2报错严重: One or more Filters failed to start. Full details will be found in the appropriate co
- One or more Filters failed to start. Full details will be found in the appropriate container log fil
- Tomcat 8报错 SEVERE: One or more listener failed to start,如何找到更详细的错误信息
- One or more layers failed to draw. Spatial index does not exist
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
- DataSet hell - "Failed to enable constraints. One or more rows contain values...."
- 源码调试Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
- Validation failed for one or more entities while saving changes to SQL Server Database
- Failed to instantiate one or more classes
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
- dell装机bios问题 os install mode enable failed to detect one or more drives during post
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.