我正在关注一个不错的openArchitectureWare tutorial(它是关于使用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)
答案 0 :(得分:0)
Xpand最初是作为openArchitectureWare项目的一部分开发的。但现在,它是eclipse下的一个独立组件,不需要先安装oow。所以,改变整个想法并使用这个更新的tutorial 带来了满足感:))