项目启动 报Failed to load plugin class
项目启动报错:
Caused by: ElasticsearchException[Unable to read /home/tomcat-vcompass-dev/bin/config/home/tomcat-vcompass-dev/webapps/domp/WEB-INF/classes/config/develop-keystore.jks (/home/tomcat-vcompass-dev/bin/config/home/tomcat-vcompass-dev/webapps/domp/WEB-INF/classes/config/develop-keystore.jks). Please make sure this files exists and is readable regarding to permissions. Property: searchguard.ssl.transport.keystore_filepath]
从报错信息可以看到,获取jks文件路径这里的目录有问题,报错原因是linux和windows获取类路径有差异,代码改造如下:
ClassLoader classLoader = EsTransportclient.class.getClassLoader();URL resource = classLoader.getResource("config/develop-keystore.jks");URL truresource = classLoader.getResource("config/truststore.jks");String keypath = URLDecoder.decode(resource.getPath(), "UTF-8");String trupath = URLDecoder.decode(truresource.getPath(),"UTF-8");//windows中路径会多个/ 如/E windows下需要打开注释if("\\".equals(File.separator)){trupath = trupath.substring(1, trupath.length());keypath=keypath.substring(1, keypath.length());}//linux下if("/".equals(File.separator)){keypath = keypath.replace("\\", "/");trupath = trupath.replace("\\", "/");}
项目启动 报Failed to load plugin class相关推荐
- Eclipse3.6.2 64位启动报“Failed to load the JNI shared library”错的解决方法
Eclipse3.6.2 64位解压后双击运行eclipse,报"Failed to load the JNI shared library"错误. 如下图所示: 原来我的jdk是 ...
- Maven项目启动报错 org.apache.catalina.LifecycleException: Failed to start component,手动添加Oracle JDBC 驱动jar包
项目启动报错: D:\apache-tomcat-8.5.43\bin\catalina.bat run [2019-09-11 11:31:53,154] Artifact heima_ssm_w ...
- 项目启动报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
一 .项目启动报错,错误信息截图如下: 经过对错误信息的分析判断是数据源配置出现错误,提示说没有配置数据源的URL路径,但是实际上我的项目中已经配置了数据源,如下: 经过多方询问最后发现在yml文件中 ...
- Linux下Tomcat项目启动报错
Linux下Tomcat项目启动报错 org.springframework.beans.factory.CannotLoadBeanClassException: Error loading cla ...
- SpringBoot项目启动报错:Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
问题描述: SpringBoot项目启动报错,报错内容:'com.xxx.mapper.XxxxMapper' that could not be found ******************** ...
- springboot项目启动报错-案例情景介绍
文章目录 摘要 情况1:Nacos报错 情况2:IllegalStateException: Incompatible fallbackFactory instance 情况3:idea编译java文 ...
- 项目启动报错: This is very likely to create a memory leak. Stack trace of thread 解决方案
问题发现 The web application [ROOT] appears to have started a thread named [UIC_STATISTIC_THREAD] but ha ...
- 项目启动报错:No qualifying bean of type ‘xxx‘ available:
项目启动报错: Description: A component required a bean of type 'cn.hsa.its.abutment.bo.BusinessAcceptBo' t ...
- npm run lint:提示TypeError: Failed to load plugin ‘jest‘ declared in ‘.eslintrc.js » ./eslint/config.j
加了eslint的依赖控制eslint的版本, 一般这个时候的配置会说,此处已经引入eslint,不用再额外引入eslint,但是依赖之间的不兼容会导致报错.详情见下: 不加会提示: @typescr ...
最新文章
- python第七章动手试一试_Python学习3
- MSM8974 fastboot烧写软件
- React开发(278):ant design message res保证正确信息提示
- 前端学习(3206):初始化state
- html城市手机搜索,原生js实现html手机端城市列表索引选择城市
- gorm软删除_gorm的简单使用和注意事项
- layui select日期_layui给下拉框、按钮状态、时间赋初始值的方法
- 复杂场景下,如何用AI技术做地图?
- vector中resize()和reserve()区别
- [包计划] create-react-app
- 关于IPV6审核被拒的完整分析
- php10天速成培训,十天学会php之第十天
- php手册 下载,php手册chm
- 如何快速删除 Word 文档中的分节符
- 什么是论文陈述?论文陈述怎么写?
- SATA、AHCI、ATA等相关知识概述
- 两个必须更新浏览器的理由,危险就在你身边
- 【工作经验分享】,大厂面试经验分享
- 189.HBase(三):master架构,RegionServer架构,写流程,写缓存的刷写,HFile,读流程,合并读取的数据,store文件合并,region分区
- 世界500强企业名称中英对照(续)
热门文章
- CC1100 CCA (1)
- go配置解析库 - viper
- 好用的头像制作logo免费生成器分享
- POJ 3764 Language: The xor-longest Path (01字典树+DFS)
- “couldn‘t connect to trainer on port 5004 using api version 1.4.0. will perform inference instead.”
- 检测同心圆_渤海钻探:党政融合 绘出最美同心圆
- java escape html_Java HtmlEscape.escapeHtml5方法代码示例
- Java学习笔记:Word文档的读写
- 点到直线垂足坐标的计算
- lua中的 ipairs 和 pairs