java - 执行配置更改时出错 org.wso2.config.mapper.ConfigParserException:模板目录
问题描述
您好我正在尝试自定义 WSO2 api 管理器。运行产品时出现以下错误。请帮忙
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
[2019-08-28 6:41:24,642] SEVERE {org.wso2.carbon.server.Main handleConfiguratio
n} - Error while performing configuration changes
org.wso2.config.mapper.ConfigParserException: Template directory (D:\projects\ws
o2\product-apim-master\modules\distribution\product\target\wso2am-3.0.0-SNAPSHOT
\null\templates) does not exist or is not a directory
at org.wso2.config.mapper.ConfigParser.checkTemplateDirExistence(ConfigP
arser.java:271)
at org.wso2.config.mapper.ConfigParser.backupConfigurations(ConfigParser
.java:168)
at org.wso2.config.mapper.ConfigParser.deployAndStoreMetadata(ConfigPars
er.java:178)
at org.wso2.config.mapper.ConfigParser.parse(ConfigParser.java:127)
at org.wso2.carbon.server.Main.handleConfiguration(Main.java:231)
at org.wso2.carbon.server.Main.main(Main.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:70)
at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:51)
解决方案
使用以下系统属性启动服务器将解决您的问题。
-Dcarbon.new.config.dir.path="%CARBON_HOME%\repository\resources\conf
推荐阅读
- bash - 如何从脚本在 iex 中运行命令?
- javascript - 检查数组中是否有东西
- python - 为什么实习全局字符串值会导致每个多处理进程使用更少的内存?
- .net - 在 vs 2017 中将 .xproj 迁移到 .csproj
- google-kubernetes-engine - 在 GKE 上使用 HTTP/2 和 nginx Ingress
- java - 如何从 ScriptManager 存储函数句柄以供以后使用?
- java - 具有对象子对象的持久实体
- android - SVG而不是nativescript底部导航中的常规图像
- html - 覆盖自身的标题元素
- python - 如何过滤列表中嵌套字典中的值?