openArchitectureWare.org

oAW has moved to Eclipse.

At this site you will find information about the outdated version openArchitectureWare 4, only.
Please read our letter of intent for further information.

 

 Forum Index > openArchitectureWare > openArchitectureWare 4.x Support New Topic Post Reply
 Example workspace build
 |  Printable Version
Gareth Moorst
 Wednesday, December 14 2005 @ 01:14 PM CET (Read 3404 times)  


Status: offline

Registered: 12/14/05
Posts: 5

Hi,

I've followed the instructions in the Readme and the tutorial file '3-GeneratorTutorial.pdf' to try to build the example workspace, but I'm runniing into problems.

The initial build fails, as stated in the Readme, but subsequent builds also fail, regardless of whether or not I follow step 3.1 in the pdf (alter the properties files).

The error I get is:

generate.internal.core:
 [generate] log4j.properties: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2/metamodelGenerator/log4j.properties
 [generate] 0    INFO  - mode: generate
 [generate] 31   INFO  - using tool: POSEIDON_2
 [generate] 109  INFO  - loading plugin: mmread
 [generate] 109  INFO  - loading plugin: mmgen
 [generate] 109  INFO  - error output: System.err, sysErrFile='syserr'
 [generate] 125  INFO  - out: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2/scmGenerator/src-gen//
 [generate] 266  INFO  - loading XMI from: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2\scmGenerator\metamodel\scmMetamodel.zuml using map: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2\metamodelGenerator\mappings\poseidon\poseidon20_xmi12_all.xml and metamap: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2\metamodelGenerator\mappings\metamappings.xml
 [generate] 828  INFO  - running model modifier: metamodelPlugin.plugin.NameRepairModelModifier
 [generate] 828  INFO  - initializing model dependencies.
 [generate] 828  INFO  - checking constraints.
 [generate] 922  INFO  - writing dump to: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2/metamodelGenerator/dump.dump
 [generate] java.lang.Error: Unresolved compilation problem:
 [generate] at de.bmiag.genfw.instantiator.xml.DomHelper.getAttributeValue(DomHelper.java:321)
 [generate] at de.bmiag.genfw.instantiator.xml.GenericInstantiator.createMetaModel(GenericInstantiator.java:1752)
 [generate] at de.bmiag.genfw.instantiator.xml.GenericInstantiator.getDesignTree(GenericInstantiator.java:2330)
 [generate] at de.bmiag.genfw.instantiator.xml.GenericInstantiator.loadDesign(GenericInstantiator.java:100)
 [generate] at genfwutil.frontends.xmi.XMIInstantiator.loadDesign(XMIInstantiator.java:89)
 [generate] at genfwutil.frontends.composite.CompositeInstatiator.loadElements(CompositeInstatiator.java:70)
 [generate] at genfwutil.frontends.composite.CompositeInstatiator.loadDesign(CompositeInstatiator.java:58)
 [generate] at genfwutil.ant.plugin.PluginRegistryInstantiator.loadDesign(PluginRegistryInstantiator.java:25)
 [generate] at de.bmiag.genfw.ui.AbstractGeneratorUI.loadDesign(AbstractGeneratorUI.java:170)
 [generate] at de.bmiag.genfw.ui.AbstractGeneratorUI.loadDesign(AbstractGeneratorUI.java:139)
 [generate] at genfwutil.ant.AntUI.readModelInput(AntUI.java:254)
 [generate] at genfwutil.ant.AntUI.readModel(AntUI.java:245)
 [generate] at genfwutil.ant.AntUI.run(AntUI.java:184)
 [generate] at genfwutil.ant.DefaultGenerator.run(DefaultGenerator.java:35)
 [generate] at genfwutil.ant.GeneratorTask.execute(GeneratorTask.java:168)
 [generate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [generate] at org.apache.tools.ant.Task.perform(Task.java:364)
 [generate] at org.apache.tools.ant.Target.execute(Target.java:341)
 [generate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [generate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 [generate] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
 [generate] at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
 [generate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 [generate] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
 [generate] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
 [generate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [generate] at org.apache.tools.ant.Task.perform(Task.java:364)
 [generate] at org.apache.tools.ant.Target.execute(Target.java:341)
 [generate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [generate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 [generate] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
 [generate] at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
 [generate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 [generate] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
 [generate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [generate] at org.apache.tools.ant.Task.perform(Task.java:364)
 [generate] at org.apache.tools.ant.Target.execute(Target.java:341)
 [generate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [generate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 [generate] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
 [generate] at org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
 [generate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 [generate] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
 [generate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [generate] at org.apache.tools.ant.Task.perform(Task.java:364)
 [generate] at org.apache.tools.ant.Target.execute(Target.java:341)
 [generate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [generate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 [generate] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
 [generate] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
 [generate] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
 [generate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 [generate] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
 [generate] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
 [generate] 953  ERROR - [CG-ERROR] Error during AbstractGeneratorUI.loadDesign()

BUILD FAILED





and eclipse reports that the opengenfw project can't be built because the import 'org.apache' can't be resolved. None of the libraries shipped within the workspace are showing up in eclipse (V 3.11)

None of the ant scripts seem to be able to complete...


 
Profile Email
Quote
Gareth Moorst
 Wednesday, December 14 2005 @ 03:28 PM CET  


Status: offline

Registered: 12/14/05
Posts: 5

Possibly related :

I get an occasional Eclipse error dialog stating 'Could not write metadata for: /_makros'

with a ruck of exceptions appearing in the Eclipse log, culminating with this one :

!ENTRY org.eclipse.core.resources 4 568 2005-12-14 14:19:19.126
!MESSAGE Could not write metadata for: /_makros.
!STACK 0
java.io.FileNotFoundException: C:\Installers\eclipse3.1 final\openArchitectureWare\exampleWorkspace-3.0.2\.metadata\.plugins\org.eclipse.core.resources\.projects\_makros\.markers.snap (The system cannot find the path specified)
	at java.io.FileOutputStream.openAppend(Native Method)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:43)
	at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init>(SafeChunkyOutputStream.java:39)
	at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1456)
	at org.eclipse.core.internal.resources.SaveManager.visitAndSnap(SaveManager.java:1551)
	at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:989)
	at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:44)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)




Any ideas for a fix?


 
Profile Email
Quote
Gareth Moorst
 Wednesday, December 14 2005 @ 04:10 PM CET  


Status: offline

Registered: 12/14/05
Posts: 5

Never mind, fixed it myself.

The workspace metadata had got screwed up somehow - deleting and readding some of the projects and rebuilding everything a couple of times cured it.


 
Profile Email
Quote
Karsten Thoms
 Wednesday, December 14 2005 @ 04:21 PM CET  
Forum

Status: online

Registered: 07/20/05
Posts: 1849

Do you have the opinion that the Workspace could be corrupt for other users as well or was it a local problem?


 
Profile Email Website
Quote
Gareth Moorst
 Wednesday, December 14 2005 @ 04:35 PM CET  


Status: offline

Registered: 12/14/05
Posts: 5

I can only guess - my installation of eclipse does have a lot of plugins, some of which (notably the SVN plugin from Tigris.org) occasionally throw random exceptions.
One of these could be the cause.
Having said that, I've never seen this problem before. It could conceivably happen to others too.

When I get a spare few minutes I'll try it with a clean install to see if it breaks, and I'll post my results on here.


 
Profile Email
Quote
Karsten Thoms
 Wednesday, December 14 2005 @ 04:55 PM CET  
Forum

Status: online

Registered: 07/20/05
Posts: 1849

Your results will be very useful for other users. If the clean Eclipse succeeds it would be interesting if the couse is the SVN plugin. As SVN will become more important in the future it is likely that others have this plugin installed, too.

Thanks for your help.

~ Karsten


 
Profile Email Website
Quote
Gareth Moorst
 Wednesday, December 14 2005 @ 05:23 PM CET  


Status: offline

Registered: 12/14/05
Posts: 5

Bad news - the SVN plugin isn't the cause - it also happens with a clean install of Eclipse 3.1.1.

Good news - it's relatively easy to fix.

Steps to reproduce the problem -

1. Install eclipse somewhere.
2. Unzip the eclipse plugin 'eclipse-plugin_1.3.1.zip' into the eclipse plugins folder.
3. Unzip the example workspace to a directory of your choice
4. Start eclipse using 'eclipse -clean'
5. Choose the newly unzipped workspace
6. Sit back while the auto build completes and screws up the metadata. After a minute or two an error dialog will appear.

Steps to fix:

1. Delete the _makro and docs projects, without deleting the contents.
2. Create new simple projects with the same names.
3. Alter the ${workspace}/genfwutil/build.xml file to make it not try to read in class files as jars. Edit the javac classpath element on lines 37-44 to look like:


<javac srcdir="${SRC}" destdir="${BUILD.CLASSES}"
           debug="on" optimize="off" deprecation="on"
    	   nowarn="true">
      <classpath>
      	<fileset dir="${LIB}"/>
      	<fileset dir="${GENFWLIB}">
      		<exclude name="**/*.class"/>
      	</fileset>
      </classpath>
    </javac>



4. Add the _makro/build.xml build file back into the ant view (it will have been removed when the project was deleted)
5. Run the rebuild target of the _makro buildfile.

Everything appears to work again, although I can't verify that - I've only just started to play with oAW so I'm not sure what exactly is supposed to happen at this point, but at least ant finishes without any errors now, and Eclipse doesn't report any problems.


 
Profile Email
Quote
Karsten Thoms
 Wednesday, December 14 2005 @ 05:38 PM CET  
Forum

Status: online

Registered: 07/20/05
Posts: 1849

Good work! I'm sure this will help other users to avoid/fix the problem.

I hope you'll enjoy your next steps with oAW. If we could help you feel free to ask.


 
Profile Email Website
Quote
Content generated in: 0.70 seconds
New Topic Post Reply



 All times are CEST. The time is now 09:58 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content