Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » COSMOS » Validating test SML-IF documents
Validating test SML-IF documents [message #10390] Fri, 30 May 2008 22:45 Go to next message
Eclipse User
Originally posted by: virginia.smith.hp.com

Hi,

I downloaded the latest stable build of the Resource Modeling Eclipse
Plugin. I grabbed some test SML-IF files from CVS to play with. I cannot
get any of the valid documents to validate. I am getting the following
validation error:

cvc-elt.1: Cannot find the declaration of element 'Course'.

I am getting the same error for the files I've tried - Valid.xml and
RefToNonRoolElement.xml.

Perhaps there is some setup I am missing?

Thanks,

--
ginny
Re: Validating test SML-IF documents [message #10423 is a reply to message #10390] Thu, 05 June 2008 22:38 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
Hi Ginny,

How are you doing the validation? Are you selecting the files in the
Eclipse explorer and selecting Validate SML-IF from the context menu?
Or are you opening them in the editor and selecting the validate link
from the first page of the editor?

Thanks,
David

Ginny Smith wrote:
> Hi,
>
> I downloaded the latest stable build of the Resource Modeling Eclipse
> Plugin. I grabbed some test SML-IF files from CVS to play with. I cannot
> get any of the valid documents to validate. I am getting the following
> validation error:
>
> cvc-elt.1: Cannot find the declaration of element 'Course'.
>
> I am getting the same error for the files I've tried - Valid.xml and
> RefToNonRoolElement.xml.
>
> Perhaps there is some setup I am missing?
>
> Thanks,
>
> --
> ginny
>
Re: Validating test SML-IF documents [message #10456 is a reply to message #10423] Fri, 06 June 2008 16:32 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
Hi Ginny,

I created a Java project and imported the file you tried to validate,
and selected "Validate SML-IF" from the context menu, and I got a
message that there were no validation errors in the document. I'm not
sure if the problem was something in the i10 stable build, but using the
most recent weekly integration build (week 5), and using Eclipse 3.4
RC2, I don't get those (or any) errors.

David

"Smith, Virginia (HP Software)" <virginia.smith@hp.com> wrote on
06/05/2008 06:45:47 PM:

> Both options give me the same errors. I'm attaching one of the files
I downloaded
> and tried to validate.
>
> --
> ginny
Re: Validating test SML-IF documents [message #10488 is a reply to message #10456] Fri, 06 June 2008 23:23 Go to previous messageGo to next message
Eclipse User
Originally posted by: virginia.smith.hp.com

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
Re: Validating test SML-IF documents [message #10520 is a reply to message #10488] Tue, 10 June 2008 00:50 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
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
>
Re: Validating test SML-IF documents [message #10553 is a reply to message #10520] Wed, 11 June 2008 20:38 Go to previous messageGo to next message
Eclipse User
Originally posted by: virginia.smith.hp.com

Thanks, David. That solution took care of the errors. (So Java 1.6 is a
problem.)

However, I am still getting the 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

It looks like the baseURI is not being processed correctly. A different
test file, ValidRule.xml, validates with *no* such warnings. In this file,
the baseURI does not cause problems since all sml references point
directly to the document alias (i.e., either the baseURI is universally
applied or is never applied - it makes no difference).

(Also note that the SML spec has changed terminology. "Dangling"
references are now "unresolved references".)

--
ginny
Re: Validating test SML-IF documents [message #10586 is a reply to message #10553] Thu, 12 June 2008 01:10 Go to previous messageGo to next message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
Thanks, Ginny, for your patience and investigative work. If you don't
mind doing so, please create a bug report and attach your SML-IF file as
a test. Here's the URL for entering a bug; choose component =
ResourceModeling:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Cosmos

I went ahead and split the difference with you by creating a bug report
for Java 1.6. :-) Please add yourself to the cc: list if you want to be
updated on its progress.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=236772

Thanks!
David

Ginny Smith wrote:
> Thanks, David. That solution took care of the errors. (So Java 1.6 is a
> problem.)
>
> However, I am still getting the 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
>
> It looks like the baseURI is not being processed correctly. A different
> test file, ValidRule.xml, validates with *no* such warnings. In this
> file, the baseURI does not cause problems since all sml references point
> directly to the document alias (i.e., either the baseURI is universally
> applied or is never applied - it makes no difference).
>
> (Also note that the SML spec has changed terminology. "Dangling"
> references are now "unresolved references".)
>
> --
> ginny
>
Re: Validating test SML-IF documents [message #10619 is a reply to message #10586] Fri, 13 June 2008 18:27 Go to previous message
Eclipse User
Originally posted by: virginia.smith.hp.com

David,
I submitted the bug today.

--
ginny
Re: Validating test SML-IF documents [message #571163 is a reply to message #10390] Thu, 05 June 2008 22:38 Go to previous message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
Hi Ginny,

How are you doing the validation? Are you selecting the files in the
Eclipse explorer and selecting Validate SML-IF from the context menu?
Or are you opening them in the editor and selecting the validate link
from the first page of the editor?

Thanks,
David

Ginny Smith wrote:
> Hi,
>
> I downloaded the latest stable build of the Resource Modeling Eclipse
> Plugin. I grabbed some test SML-IF files from CVS to play with. I cannot
> get any of the valid documents to validate. I am getting the following
> validation error:
>
> cvc-elt.1: Cannot find the declaration of element 'Course'.
>
> I am getting the same error for the files I've tried - Valid.xml and
> RefToNonRoolElement.xml.
>
> Perhaps there is some setup I am missing?
>
> Thanks,
>
> --
> ginny
>
Re: Validating test SML-IF documents [message #571173 is a reply to message #10423] Fri, 06 June 2008 16:32 Go to previous message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
Hi Ginny,

I created a Java project and imported the file you tried to validate,
and selected "Validate SML-IF" from the context menu, and I got a
message that there were no validation errors in the document. I'm not
sure if the problem was something in the i10 stable build, but using the
most recent weekly integration build (week 5), and using Eclipse 3.4
RC2, I don't get those (or any) errors.

David

"Smith, Virginia (HP Software)" <virginia.smith@hp.com> wrote on
06/05/2008 06:45:47 PM:

> Both options give me the same errors. I'm attaching one of the files
I downloaded
> and tried to validate.
>
> --
> ginny
Re: Validating test SML-IF documents [message #571253 is a reply to message #10456] Fri, 06 June 2008 23:23 Go to previous message
Eclipse User
Originally posted by: virginia.smith.hp.com

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
Re: Validating test SML-IF documents [message #571279 is a reply to message #10488] Tue, 10 June 2008 00:50 Go to previous message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
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
>
Re: Validating test SML-IF documents [message #571328 is a reply to message #10520] Wed, 11 June 2008 20:38 Go to previous message
Eclipse User
Originally posted by: virginia.smith.hp.com

Thanks, David. That solution took care of the errors. (So Java 1.6 is a
problem.)

However, I am still getting the 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

It looks like the baseURI is not being processed correctly. A different
test file, ValidRule.xml, validates with *no* such warnings. In this file,
the baseURI does not cause problems since all sml references point
directly to the document alias (i.e., either the baseURI is universally
applied or is never applied - it makes no difference).

(Also note that the SML spec has changed terminology. "Dangling"
references are now "unresolved references".)

--
ginny
Re: Validating test SML-IF documents [message #571346 is a reply to message #10553] Thu, 12 June 2008 01:10 Go to previous message
David Whiteman is currently offline David Whiteman
Messages: 166
Registered: July 2009
Senior Member
Thanks, Ginny, for your patience and investigative work. If you don't
mind doing so, please create a bug report and attach your SML-IF file as
a test. Here's the URL for entering a bug; choose component =
ResourceModeling:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Cosmos

I went ahead and split the difference with you by creating a bug report
for Java 1.6. :-) Please add yourself to the cc: list if you want to be
updated on its progress.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=236772

Thanks!
David

Ginny Smith wrote:
> Thanks, David. That solution took care of the errors. (So Java 1.6 is a
> problem.)
>
> However, I am still getting the 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
>
> It looks like the baseURI is not being processed correctly. A different
> test file, ValidRule.xml, validates with *no* such warnings. In this
> file, the baseURI does not cause problems since all sml references point
> directly to the document alias (i.e., either the baseURI is universally
> applied or is never applied - it makes no difference).
>
> (Also note that the SML spec has changed terminology. "Dangling"
> references are now "unresolved references".)
>
> --
> ginny
>
Re: Validating test SML-IF documents [message #571398 is a reply to message #10586] Fri, 13 June 2008 18:27 Go to previous message
Eclipse User
Originally posted by: virginia.smith.hp.com

David,
I submitted the bug today.

--
ginny
Previous Topic:Validating test SML-IF documents
Next Topic:help with MDR creation
Goto Forum:
  


Current Time: Sat Oct 25 00:39:22 GMT 2014

Powered by FUDForum. Page generated in 0.06935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software