首页 > 解决方案 > 执行配置更改时出错 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)

标签: javaapiwso2wso2carbon

解决方案


使用以下系统属性启动服务器将解决您的问题。

-Dcarbon.new.config.dir.path="%CARBON_HOME%\repository\resources\conf


推荐阅读