windchill建模时,设置模型为基本类型后,windchill能正常启动,但方法服务器报错:“com.ptc.core.lwc.server.cache.db.TypeDefinitionsInitializer - The 'ext.xxx.xxx.' type is misconfigured.The package of this type should be listed in the includeClassStartsWith property.See the customizer's guide 'Best Practices For Adding New Packages and Files' section for more info.“,
这是因为没有定义package。
可通过执行以下命令解决:
xconfmanager --add com.ptc.core.meta.descriptor.server.impl.includeClassStartsWith=ext.xxx.xxx. -p
注:包名后以.收尾
附官方文档说明:
When you create a new package, you need to add it to the includeClassStartsWith property in wt.properties. This property lists the package hierarchies that are included when resolving inherited descriptor information. For example, if you add the package com.mycompany, use xconfmanager to add “com.mycompany.” to the property, with the following command from a windchill shell:
xconfmanager --add com.ptc.core.meta.descriptor.server.impl.includeClassStartsWith=com. mycompany. -p
Make sure the package name ends with the period (".") character.