拷贝工作区的时候,会出现目录变更,在发布项目是,会出现启动ear失败情况,如下错误:
[apusic.service.J2EEDeployer] 启动应用 'eas.ear' 失败。
com.apusic.deploy.runtime.InvalidModuleException: 模块文件 'D:\zgh\Project\gz\eTianxia\workspace\EWorld\runtime\server\deploy\eas.ear' 不存在。
EAS-BOS项目路径变更的方法:
1.修改$ProjectPath$\runtime\server\profiles\server1\config\bosconfig.xml
<attribute key="MetaDataPath" value="D:\workspace\EWorld/metadata" />
2.修改$ProjectPath$\runtime\server\profiles\server1\config\licensefile.xml
<uri>D:\workspace\EWorld\runtime\server\profiles\server1\config\licenses\license</uri>
3.修改$ProjectPath$\runtime\server\profiles\server1\config\portalConfig\easWebConfig.xml
<!--本地元数据加载路径-->
<attribute key="metadatapath" value="D:\workspace\EWorld\metadata" />
4.修改$ProjectPath$\EWorld\runtime\apusic\config\server.xml
<server>
<application name="eas.ear" base="D:/workspace/EWorld/runtime/server/deploy/eas.ear" start="auto" />
</server>