gpt4 book ai didi

ant - 使用 Ant 构建 SOA 组合应用程序

转载 作者:行者123 更新时间:2023-12-02 21:04:49 24 4
gpt4 key购买 nike

我正在尝试编写一个 ant 脚本来构建 SOA 组合应用程序。

我编写的脚本如下 -

<project name="SOA-Build" default="sca-package" basedir=".">
<description> Automated Build file for SOA composite application </description>

<!-- import global properties for this build -->
<property file="build.properties"/>

<target name="init">
<delete dir="./${sca_name}/deploy" />
<delete dir="./logs" />
<mkdir dir="./${sca_name}/deploy" />
<mkdir dir="./logs" />
</target>

<target name="sca-compile" depends="init">
<ant antfile="${soa_home}/bin/ant-sca-compile.xml" inheritAll="false">
<property name="wl_home" value="${weblogic_home}"/>
<property name="scac.input" value="./${sca_name}/composite.xml"/>
<property name="scac.output" value="./logs/out.xml" />
<property name="scac.error" value="./logs/out.err" />
<property name="scac.application.home" value="."/>
</ant>
</target>

<target name="sca-package" depends="sca-compile">
<ant antfile="${soa_home}/bin/ant-sca-package.xml" inheritAll="false">
<property name="compositeDir" value="./${sca_name}"/>
<property name="compositeName" value="${sca_name}"/>
<property name="revision" value="${rev_id}"/>
<property name="sca.application.home" value="."/>
</ant>
</target>

</project>

build.properties 文件包含

sca_name=my_processes
rev_id=1.0
weblogic_home=C:\\Oracle\\Middleware\\home_ps2
soa_home=C:\\Oracle\\Middleware\\home_ps2\\Oracle_SOA1

运行 ant 时,我在 ant-sca-package.xml 中收到以下错误

 [scac]  error: BPM-71504: Unexpected error parsing 'oramds:/soa/shared/work
flow/TaskEvidenceService.xsd'. Cause: oracle.mds.exception.MDSException: MDS-00
054: The file to be loaded oramds:/soa/shared/workflow/TaskEvidenceService.xsd d
oes not exist.. Action: Verify that file is valid and accessible

[scac] error: BPM-71504: Unexpected error parsing 'oramds:/soa/shared/work
flow/WorkflowCommon.xsd'. Cause: oracle.mds.exception.MDSException: MDS-00054:
The file to be loaded oramds:/soa/shared/workflow/WorkflowCommon.xsd does not ex
ist.. Action: Verify that file is valid and accessible

[scac] error: BPM-71504: Unexpected error parsing 'oramds:/soa/shared/work
flow/WorkflowTask.xsd'. Cause: oracle.mds.exception.MDSException: MDS-00054: Th
e file to be loaded oramds:/soa/shared/workflow/WorkflowTask.xsd does not exist.
. Action: Verify that file is valid and accessible

有人可以帮我解决这个问题吗?

最佳答案

看来我已经解决了这个问题。

如果您在从 build.xml 脚本调用 ant-sca-package.xml 时遇到类似问题

  1. 打开ant-sca-package.xml

  2. 修改scac-validate任务并删除/注释掉

    < antcall target="scac" inheritall="true"/>
  3. 运行构建脚本

这可能会解决问题。

谢谢

阿尔潘

关于ant - 使用 Ant 构建 SOA 组合应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14576534/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com