[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.cosmos] Re: Validating test SML-IF documents

Hi Ginny,

I too am using Ganymede, and am using the Sun JRE 1.5.0_13. I believe the JRE that is used to run Eclipse (which would include running plugins invoked by menu options) would be 1.6, since you have not overridden the system default when starting Eclipse. The one listed in your preferences only affects Java programs you launch from within Eclipse, and the JRE used in compiling code that you write. So basically, all code you got from Eclipse (including COSMOS) is running 1.6, and all code you wrote or run in your workspace is using 1.5.0_13.

Just to try and eliminate the JRE from being a variable here (I would do this myself, but I don't have 1.6 installed on this machine), try modifying which JRE is used to launch Eclipse. You can do this in Windows by selecting eclipse.exe, right clicking and selecting Create Shortcut. Then edit the shortcut and add "-vm <path-to-JRE-1.5-VM.exe>" to the end of the Target line. For example, I have the following in my Eclipse shortcut:

c:\eclipse-34-RC2\eclipse\eclipse.exe -vm C:\work\Java\jdk1.5.0_13\bin\java.exe

Let me know how this goes for you...

Regards,
David

Ginny Smith wrote:
David,

I started over with a fresh install of Eclipse Ganymede and then installed Cosmos.

Eclipse Platform, Version: 3.4.0, Build id: I20080523-0100
cosmos-rm-incubation-COSMOS-1.0.0-200806041150.zip

Here is what I've done so far:

1 - I imported the IF file. I imported as an Interchange file which caused the IF file to be unpacked. I can successfully validate the Student_xx.xml file (and all the other xml files if I give them an xml extension). So it appears that each file in the model is valid itself.

2 - I really want to validate the entire model as an SML model, including references. I assume that to do this in Cosmos, I must first package the model into an IF file. Therefore, importing the file into Eclipse as an IF file (as in step 1 above) is not what I want to do. So now I am assuming that when you said you imported the file, you meant that you imported the file directly from the 'file system' and NOT as an IF file. So next I re-imported the IF file as a generic file.

3 - I opened the IF file just imported and see the IF editor. I clicked on "Validate the entire document" and got the following errors.

errors:
cvc-elt.1: Cannot find the declaration of element 'Course'. Valid.xml SMLTest1 line 107 Service Modeling Language
cvc-elt.1: Cannot find the declaration of element 'Course'. Valid.xml SMLTest1 line 132 Service Modeling Language
cvc-elt.1: Cannot find the declaration of element 'GraduateCourse'. Valid.xml SMLTest1 line 119 Service Modeling Language


warnings:
The reference Course1 is dangling Valid.xml SMLTest1 line 86 Service Modeling Language
The reference Course3 is dangling Valid.xml SMLTest1 line 92 Service Modeling Language
The reference GraduateCourse is dangling Valid.xml SMLTest1 line 89 Service Modeling Language


Is Ganymede a problem - could there be a conflict?
Is anything else needed other than Cosmos SML component?
How about my java version? I have JRE 1.5.0_13 and 1.6.0_06 installed on my system. In Eclipse, I have only the JRE 1.5.0_13 listed in the Installed JRE preferences and set as the workbench default but how can I be sure what Cosmos is using. Note that when I run "java -version in a DOS window" - I get the 1.6 version returned so 1.6 is the default on my system.


Thanks for your help!

--
ginny