Fornax-Platform
Forum

"can't find the workflow file"?

View: New views
3 Messages — Rating Filter:   Alert me  

"can't find the workflow file"?

by Jandalf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am a student from Germany who wants to make a database assisted webprojekt with MDD by using oAW & Fornax.
With the help of the Fornax and oAW manuals I made an Eclipseproject and added a small UML classdiagramm made
with MagicDraw. Now I want to generate java classes from this diagramm, so I used the workflow from the
Fornax exampels and added the path to my classdiagramm. Trying to run the workflow.properties file, I get the Error
"0    ERROR WorkflowRunner     - can't find the workflow file 'C:/oaw/eclipse 3.4/workspace/my.generator.project/src/main/resources/workflow.oaw' in the current class path"
I found this post: http://www.nabble.com/Problems-with-Maven2-integration-in-Eclipse-to22805159s17564.html#a22805215
My problem is "- Please check if all target building directories are the same, e.g.: "target.classes" ",
I don't know what is meant there, but I changed less in the workflowfile, so I don't think I've made a misstake there.
"- Run the Fornax mvn-compile Launcher "
I never used Maven before, do I have to download it manually? Or is it already included in the fornax package?

Greetings,
Jan

Re: "can't find the workflow file"?

by Jandalf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I remember that I have deleted the "src" folder, when I startet the project.
Than I made a new one with subfolders.
I think I forgot to add the "src"folder to "Source" in the Java Build Path (Properties->Java Build Path -> Source).
After that, I tryed it again:
rightklick on src/main.resources/workflow.oaw (main.resources instead of main/resources since I've added "src" to "Sorce") ->Run as -> OAW Workflow

0    INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
0    INFO  WorkflowRunner     - openArchitectureWare 4.3.1, Build 20090107-2000PRD
0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org and contributors
0    INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
0    INFO  WorkflowRunner     - running workflow: main/resources/workflow.oaw
0    INFO  WorkflowRunner     -
639  ERROR WorkflowRunner     - Couldn't resolve properties file! [<property file='./workflow.properties'/>]
639  ERROR WorkflowRunner     - Couldn't resolve properties file! [<property file='./hibernateCartridge.properties'/>]
639  ERROR WorkflowRunner     - property feature.model not specified. Dereferenced at in main/resources/workflow.oaw:27
639  ERROR WorkflowRunner     - property model.file not specified. Dereferenced at in main/resources/workflow.oaw:34
639  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:68
639  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:70
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:81
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:82
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:96
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:98
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:110
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:112
640  ERROR WorkflowRunner     - property outlet.src.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:118
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:134
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:138
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:139
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:144
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:172
640  ERROR WorkflowRunner     - property outlet.src.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:196
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:197
640  ERROR WorkflowRunner     - property outlet.src.once.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:204
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:205
640  ERROR WorkflowRunner     - property outlet.src.interfaces.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:212
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:213
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:226
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:227
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:229
640  ERROR WorkflowRunner     - Workflow interrupted because of configuration errors.


I don't know what to do with most of this errors.
Only
639  ERROR WorkflowRunner     - property feature.model not specified. Dereferenced at in main/resources/workflow.oaw:27
639  ERROR WorkflowRunner     - property model.file not specified. Dereferenced at in main/resources/workflow.oaw:34
can be solved, if I change
<configFile value="${feature.model}" /> to
<configFile value="${myexample.uml}" /> and
<modelFile value="${model.file}"/> to
<modelFile value="${modmyexample.uml}"/>

Are my "solutios" ok? And can Anyone help me with the other errors?
Many thanks,
Jan

Re: "can't find the workflow file"?

by Nils Kelleter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jan,

I think the problem seems to be that the property files workflow.properties and hibernateCartridge.properties do not exit in your project or are not in your classpath. Look at the reference project of the Hibernate cartridge fornax-cartridges-uml2-hibernate-reference, there is a running example. Futhermore I think at the beginning it is a good idea, if you use the fornax cartridges, that you do not change the directory structure of the source directories from the maven standard: src/main/java, src/main/resources, ...

Regards,

Nils


Jandalf wrote:
Ok, I remember that I have deleted the "src" folder, when I startet the project.
Than I made a new one with subfolders.
I think I forgot to add the "src"folder to "Source" in the Java Build Path (Properties->Java Build Path -> Source).
After that, I tryed it again:
rightklick on src/main.resources/workflow.oaw (main.resources instead of main/resources since I've added "src" to "Sorce") ->Run as -> OAW Workflow

0    INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
0    INFO  WorkflowRunner     - openArchitectureWare 4.3.1, Build 20090107-2000PRD
0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org and contributors
0    INFO  WorkflowRunner     - --------------------------------------------------------------------------------------
0    INFO  WorkflowRunner     - running workflow: main/resources/workflow.oaw
0    INFO  WorkflowRunner     -
639  ERROR WorkflowRunner     - Couldn't resolve properties file! [<property file='./workflow.properties'/>]
639  ERROR WorkflowRunner     - Couldn't resolve properties file! [<property file='./hibernateCartridge.properties'/>]
639  ERROR WorkflowRunner     - property feature.model not specified. Dereferenced at in main/resources/workflow.oaw:27
639  ERROR WorkflowRunner     - property model.file not specified. Dereferenced at in main/resources/workflow.oaw:34
639  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:68
639  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:70
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:81
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:82
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:96
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:98
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:110
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:112
640  ERROR WorkflowRunner     - property outlet.src.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:118
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:134
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:138
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:139
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:144
640  ERROR WorkflowRunner     - property hibernate.properties.file not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:172
640  ERROR WorkflowRunner     - property outlet.src.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:196
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:197
640  ERROR WorkflowRunner     - property outlet.src.once.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:204
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:205
640  ERROR WorkflowRunner     - property outlet.src.interfaces.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:212
640  ERROR WorkflowRunner     - property file.encoding.output not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:213
640  ERROR WorkflowRunner     - property hibernate.modelslot not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:226
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:227
640  ERROR WorkflowRunner     - property outlet.res.dir not specified. Dereferenced at in org/fornax/cartridges/uml2/hibernate/hibernate.oaw:229
640  ERROR WorkflowRunner     - Workflow interrupted because of configuration errors.


I don't know what to do with most of this errors.
Only
639  ERROR WorkflowRunner     - property feature.model not specified. Dereferenced at in main/resources/workflow.oaw:27
639  ERROR WorkflowRunner     - property model.file not specified. Dereferenced at in main/resources/workflow.oaw:34
can be solved, if I change
<configFile value="${feature.model}" /> to
<configFile value="${myexample.uml}" /> and
<modelFile value="${model.file}"/> to
<modelFile value="${modmyexample.uml}"/>

Are my "solutios" ok? And can Anyone help me with the other errors?
Many thanks,
Jan