Hi Patrik,

Thank you for your quick response.  This is the note that you are talking
about, right?

====
Eclipse project dependencies

It is convenient to use Eclipse project dependencies from the reference
application to fornax-cartridges-sculptor-generator. Then you can do changes
in the templates and try them directly, without having to build with maven.
You can run the code generation directly inside Eclipse. In your reference
application project, right click on workflow.oaw and select 'Run as oAW
workflow'. 
===

So in my reference application project, I imported the "generator", "dsl",
and "metamodel" projects.  Then I added the "generator" project to my app's
build path as a "Required project".

If I right-click the sculptorworkflow.oaw, I get:
0    INFO  WorkflowRunner     -
--------------------------------------------------------------------------------------
63   INFO  WorkflowRunner     - openArchitectureWare 4.3.0, Build
20080508-1430PRD
63   INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org and
contributors
63   INFO  WorkflowRunner     -
--------------------------------------------------------------------------------------
63   INFO  WorkflowRunner     - running workflow: sculptorworkflow.oaw
63   INFO  WorkflowRunner     - 
422  ERROR WorkflowRunner     - This workflow file is abstract and cannot be
run directly. It must be called from another workflow, passing in the
required parameters.
422  ERROR WorkflowRunner     - Workflow interrupted because of
configuration errors.


If I right-click the workflow.oaw as mentioned in the tip, but I get:  

1094 INFO  StandaloneSetup    - Registering platform uri
'C:\projects\InforBUS\sample3'
1250 INFO  CompositeComponent - Workflow: executing workflow
sculptorworkflow.oaw in workflow.oaw:3
1250 INFO  CompositeComponent - Workflow: executing workflow
org/fornax/cartridges/sculptor/dsl/parser/Parser.oaw in
sculptorworkflow.oaw:29
1250 INFO  CompositeComponent - ParserComponent(sculptordsl-parser)
Exception in thread "main" java.lang.NoSuchMethodError:
org.eclipse.emf.ecore.ETypedElement.getEGenericType()Lorg/eclipse/emf/ecore/EGenericType;
        at
org.eclipse.m2t.type.emf.EmfRegistryMetaModel.getTypeForETypedElement(EmfRegistryMetaModel.java:328)
        at
org.eclipse.m2t.type.emf.EClassType.getContributedFeatures(EClassType.java:65)
        at
org.openarchitectureware.type.AbstractTypeImpl.getAllFeatures(AbstractTypeImpl.java:62)

what am I doing wrong?

Thanks,
Polly



Patrik Nordwall wrote:
> 
> This is my experience of debugging sculptor. I normally don't need to
> debug oAW source, but I have also noticed that the source jars (plugins)
> of oAW 4.3 are strange.
> 
> I normally use project dependencies from my target project to sculptor.
> Explained here:
> http://fornax-platform.org/cp/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-ReferenceApplication
> 
> Then I can right click and debug sculptorworkflow.oaw. I havn't tried
> setting breakpoints in the workflow, but in xpt and ext it works pretty
> good. It is also possible to set breakpoint in java helper classes, but
> then you must change a flag in the launcher (java debug or something).
> 
> /Patrik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Sculptor--how-to-debug-oAW--tp18489872s17564p18493121.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to