0

我正在关注一个不错的 openArchitectureWare教程(它是关于使用 Xpand 从 EMF 模型中使用 oAW 生成代码)。

在最后的代码生成步骤,当它应该生成代码时(在定义Root.xpt模板后运行workflow.oaw时),我收到此错误:

    0    INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
9    INFO  WorkflowRunner     - openArchitectureWare 4.3.1, Build 20090107-2000PRD
9    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org and contributors
10   INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
11   INFO  WorkflowRunner     - running workflow: workflow.oaw
11   INFO  WorkflowRunner     - 
Exception in thread "main" java.lang.NoSuchFieldError: ruleMemo
    at org.openarchitectureware.xpand2.parser.XpandParser.<init>(XpandParser.java:63)
    at org.openarchitectureware.xpand2.parser.XpandParser.<init>(XpandParser.java:74)
    at org.openarchitectureware.xpand2.parser.XpandLocationAddingParser.<init>(XpandLocationAddingParser.java:32)
    at org.openarchitectureware.xpand2.parser.XpandParseFacade$2.<init>(XpandParseFacade.java:52)
    at org.openarchitectureware.xpand2.parser.XpandParseFacade.getParser(XpandParseFacade.java:52)
    at org.openarchitectureware.xpand2.parser.XpandParseFacade.file(XpandParseFacade.java:34)
    at org.openarchitectureware.xpand2.parser.XpandParseFacade.file(XpandParseFacade.java:21)
    at org.openarchitectureware.xpand2.Generator.getStatement(Generator.java:457)
    at org.openarchitectureware.xpand2.Generator.checkConfigurationInternal(Generator.java:497)
    at org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:42)
    at org.openarchitectureware.workflow.container.CompositeComponent.checkConfiguration(CompositeComponent.java:169)
    at org.openarchitectureware.workflow.WorkflowRunner.prepare(WorkflowRunner.java:310)
    at org.openarchitectureware.workflow.WorkflowRunner.run(WorkflowRunner.java:258)
    at org.openarchitectureware.workflow.WorkflowRunner.main(WorkflowRunner.java:213)

我搜索了很多解决方案。他们中的大多数人说这是一个不兼容的问题,例如在类路径中有多个版本的特殊 jar 文件,但我在 eclipse插件文件夹中找不到任何重复的 jar 文件。真的是原因吗?如果是这样,在我的情况下重复的 jar 文件是什么?如果没有,还有其他解决方案吗?

(我已经在 eclipse-java-kepler-R-win32-x86_64 上安装了 oAW 4.3.1 和 Xpand 1.4.0)

4

1 回答 1

0

Xpand 最初是作为 openArchitectureWare 项目的一部分开发的。但是现在,它是eclipse下的一个独立组件,不需要先安装oaw。所以,改变整个想法并使用这个更新的教程 带来了满足感:)

于 2014-08-02T05:59:29.993 回答