Home » Archived » XML Schema Definition (XSD) » Trouble getting XSD sample running
Trouble getting XSD sample running [message #71005] |
Thu, 21 December 2006 20:17  |
Eclipse User |
|
|
|
Originally posted by: x031661-eclipse.yahoo.com
Is this the correct place to ask for help with that?
I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
It seems I was able to create a XSDSchema object, at least no errors
were generated, but when I try to get information out of it it seems
there's nothing there.
If I do a toString on the schema object, I get
org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
(element: null)
(
document: null,
schemaLocation: null,
targetNamespace: null,
attributeFormDefault: <unset>,
elementFormDefault: <unset>,
finalDefault: null,
blockDefault: null,
version: null
)
I've used the FindTypesMissingFacets.xsd example XSD as well as other
more simple examples.
Where is the best place to go for advice on getting this off the ground?
|
|
|
Re: Trouble getting XSD sample running [message #71027 is a reply to message #71005] |
Thu, 21 December 2006 20:43   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------060308080606060406060804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Dave,
This is always a good example to look at:
http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
Running the "main example" and looking at the source would help show how
to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in the
org.eclipse.xsd.example plugin.
Dave wrote:
> Is this the correct place to ask for help with that?
>
> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>
> It seems I was able to create a XSDSchema object, at least no errors
> were generated, but when I try to get information out of it it seems
> there's nothing there.
>
> If I do a toString on the schema object, I get
>
> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
> (element: null)
> (
> document: null,
> schemaLocation: null,
> targetNamespace: null,
> attributeFormDefault: <unset>,
> elementFormDefault: <unset>,
> finalDefault: null,
> blockDefault: null,
> version: null
> )
>
> I've used the FindTypesMissingFacets.xsd example XSD as well as other
> more simple examples.
>
> Where is the best place to go for advice on getting this off the ground?
--------------060308080606060406060804
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dave,<br>
<br>
This is always a good example to look at:<br>
<blockquote><a
href=" http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html"> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html</a><br>
</blockquote>
Running the "main example" and looking at the source would help show
how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in
the org.eclipse.xsd.example plugin.<br>
<br>
<br>
Dave wrote:
<blockquote cite="midemeq46$nmt$1@utils.eclipse.org" type="cite">Is
this the correct place to ask for help with that?
<br>
<br>
I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
<br>
<br>
It seems I was able to create a XSDSchema object, at least no errors
were generated, but when I try to get information out of it it seems
there's nothing there.
<br>
<br>
If I do a toString on the schema object, I get
<br>
<br>
org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
<br>
(element: null)
<br>
(
<br>
document: null,
<br>
schemaLocation: null,
<br>
targetNamespace: null,
<br>
attributeFormDefault: <unset>,
<br>
elementFormDefault: <unset>,
<br>
finalDefault: null,
<br>
blockDefault: null,
<br>
version: null
<br>
)
<br>
<br>
I've used the FindTypesMissingFacets.xsd example XSD as well as other
more simple examples.
<br>
<br>
Where is the best place to go for advice on getting this off the
ground?
<br>
</blockquote>
<br>
</body>
</html>
--------------060308080606060406060804--
|
|
|
Re: Trouble getting XSD sample running [message #71085 is a reply to message #71027] |
Thu, 04 January 2007 18:38   |
Eclipse User |
|
|
|
Originally posted by: x031661-eclipse.yahoo.com
Thanks Ed. I was not able to find XSDMainExample in the distribution I
downloaded. Because we're stuck at Java 1.4.2_09 we are not using the
most current EMF. Was XSDMainExample perhaps not available in EMF 2.2.2?
I was able to find a copy on the web but it did not work. This line,
which occurs pretty early on, is what failed:
XSDResourceImpl xsdMainResource =
(XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
It returns null.
This line is not based on any variable input so I would not expect it to
fail unless there are some resources it requires internally that I have
not provided.
Any suggestions?
Ed Merks wrote:
> Dave,
>
> This is always a good example to look at:
>
> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>
> Running the "main example" and looking at the source would help show how
> to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in the
> org.eclipse.xsd.example plugin.
>
>
> Dave wrote:
>> Is this the correct place to ask for help with that?
>>
>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>
>> It seems I was able to create a XSDSchema object, at least no errors
>> were generated, but when I try to get information out of it it seems
>> there's nothing there.
>>
>> If I do a toString on the schema object, I get
>>
>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>> (element: null)
>> (
>> document: null,
>> schemaLocation: null,
>> targetNamespace: null,
>> attributeFormDefault: <unset>,
>> elementFormDefault: <unset>,
>> finalDefault: null,
>> blockDefault: null,
>> version: null
>> )
>>
>> I've used the FindTypesMissingFacets.xsd example XSD as well as other
>> more simple examples.
>>
>> Where is the best place to go for advice on getting this off the ground?
>
|
|
|
Re: Trouble getting XSD sample running [message #71105 is a reply to message #71085] |
Sun, 07 January 2007 20:40   |
Eclipse User |
|
|
|
Hi Dave,
In every build we publish you can find a zip file with all EMF, SDO and
XSD examples. On our last 2.2.2 build
( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
for example, notice the "Examples" link under the "EMF, SDO, and XSD"
section.
The XSDMainExample file has been around since June 2005, so I am sure
you should be able to find an example zip that works with the EMF
version you are using.
Since I don't know how old is the file you found on the web, I would
prefer to wait for you to try the one from the appropriate example zip.
Give us a shout if you are still having problem ;-)
Cheers,
Marcelo
Dave wrote:
> Thanks Ed. I was not able to find XSDMainExample in the distribution I
> downloaded. Because we're stuck at Java 1.4.2_09 we are not using the
> most current EMF. Was XSDMainExample perhaps not available in EMF 2.2.2?
>
>
> I was able to find a copy on the web but it did not work. This line,
> which occurs pretty early on, is what failed:
>
> XSDResourceImpl xsdMainResource =
> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>
> It returns null.
>
> This line is not based on any variable input so I would not expect it to
> fail unless there are some resources it requires internally that I have
> not provided.
>
> Any suggestions?
>
>
>
> Ed Merks wrote:
>> Dave,
>>
>> This is always a good example to look at:
>>
>>
>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>
>>
>> Running the "main example" and looking at the source would help show
>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in
>> the org.eclipse.xsd.example plugin.
>>
>>
>> Dave wrote:
>>> Is this the correct place to ask for help with that?
>>>
>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>
>>> It seems I was able to create a XSDSchema object, at least no errors
>>> were generated, but when I try to get information out of it it seems
>>> there's nothing there.
>>>
>>> If I do a toString on the schema object, I get
>>>
>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>> (element: null)
>>> (
>>> document: null,
>>> schemaLocation: null,
>>> targetNamespace: null,
>>> attributeFormDefault: <unset>,
>>> elementFormDefault: <unset>,
>>> finalDefault: null,
>>> blockDefault: null,
>>> version: null
>>> )
>>>
>>> I've used the FindTypesMissingFacets.xsd example XSD as well as other
>>> more simple examples.
>>>
>>> Where is the best place to go for advice on getting this off the ground?
>>
|
|
|
Re: Trouble getting XSD sample running [message #71126 is a reply to message #71105] |
Mon, 08 January 2007 13:49   |
Eclipse User |
|
|
|
Originally posted by: x031661-eclipse.yahoo.com
Thanks Marcelo,
I don't think I realized that the examples were a separate download.
I'll check that out today
Marcelo Paternostro wrote:
> Hi Dave,
>
> In every build we publish you can find a zip file with all EMF, SDO and
> XSD examples. On our last 2.2.2 build
> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
> for example, notice the "Examples" link under the "EMF, SDO, and XSD"
> section.
>
> The XSDMainExample file has been around since June 2005, so I am sure
> you should be able to find an example zip that works with the EMF
> version you are using.
>
> Since I don't know how old is the file you found on the web, I would
> prefer to wait for you to try the one from the appropriate example zip.
> Give us a shout if you are still having problem ;-)
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> Thanks Ed. I was not able to find XSDMainExample in the distribution
>> I downloaded. Because we're stuck at Java 1.4.2_09 we are not using
>> the most current EMF. Was XSDMainExample perhaps not available in EMF
>> 2.2.2?
>>
>>
>> I was able to find a copy on the web but it did not work. This line,
>> which occurs pretty early on, is what failed:
>>
>> XSDResourceImpl xsdMainResource =
>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>
>> It returns null.
>>
>> This line is not based on any variable input so I would not expect it
>> to fail unless there are some resources it requires internally that I
>> have not provided.
>>
>> Any suggestions?
>>
>>
>>
>> Ed Merks wrote:
>>> Dave,
>>>
>>> This is always a good example to look at:
>>>
>>>
>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>
>>>
>>> Running the "main example" and looking at the source would help show
>>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample
>>> in the org.eclipse.xsd.example plugin.
>>>
>>>
>>> Dave wrote:
>>>> Is this the correct place to ask for help with that?
>>>>
>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>
>>>> It seems I was able to create a XSDSchema object, at least no errors
>>>> were generated, but when I try to get information out of it it seems
>>>> there's nothing there.
>>>>
>>>> If I do a toString on the schema object, I get
>>>>
>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>> (element: null)
>>>> (
>>>> document: null,
>>>> schemaLocation: null,
>>>> targetNamespace: null,
>>>> attributeFormDefault: <unset>,
>>>> elementFormDefault: <unset>,
>>>> finalDefault: null,
>>>> blockDefault: null,
>>>> version: null
>>>> )
>>>>
>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>> other more simple examples.
>>>>
>>>> Where is the best place to go for advice on getting this off the
>>>> ground?
>>>
|
|
|
Re: Trouble getting XSD sample running [message #71145 is a reply to message #71105] |
Mon, 08 January 2007 18:10   |
Eclipse User |
|
|
|
Originally posted by: x031661-eclipse.yahoo.com
It seems I had some success. I was able to run the XSDMainExample
without error, however, I could not find the source code for the example
anywhere.
Do I need to decompile the jar or is the source for the example
available somewhere?
Marcelo Paternostro wrote:
> Hi Dave,
>
> In every build we publish you can find a zip file with all EMF, SDO and
> XSD examples. On our last 2.2.2 build
> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
> for example, notice the "Examples" link under the "EMF, SDO, and XSD"
> section.
>
> The XSDMainExample file has been around since June 2005, so I am sure
> you should be able to find an example zip that works with the EMF
> version you are using.
>
> Since I don't know how old is the file you found on the web, I would
> prefer to wait for you to try the one from the appropriate example zip.
> Give us a shout if you are still having problem ;-)
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> Thanks Ed. I was not able to find XSDMainExample in the distribution
>> I downloaded. Because we're stuck at Java 1.4.2_09 we are not using
>> the most current EMF. Was XSDMainExample perhaps not available in EMF
>> 2.2.2?
>>
>>
>> I was able to find a copy on the web but it did not work. This line,
>> which occurs pretty early on, is what failed:
>>
>> XSDResourceImpl xsdMainResource =
>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>
>> It returns null.
>>
>> This line is not based on any variable input so I would not expect it
>> to fail unless there are some resources it requires internally that I
>> have not provided.
>>
>> Any suggestions?
>>
>>
>>
>> Ed Merks wrote:
>>> Dave,
>>>
>>> This is always a good example to look at:
>>>
>>>
>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>
>>>
>>> Running the "main example" and looking at the source would help show
>>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample
>>> in the org.eclipse.xsd.example plugin.
>>>
>>>
>>> Dave wrote:
>>>> Is this the correct place to ask for help with that?
>>>>
>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>
>>>> It seems I was able to create a XSDSchema object, at least no errors
>>>> were generated, but when I try to get information out of it it seems
>>>> there's nothing there.
>>>>
>>>> If I do a toString on the schema object, I get
>>>>
>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>> (element: null)
>>>> (
>>>> document: null,
>>>> schemaLocation: null,
>>>> targetNamespace: null,
>>>> attributeFormDefault: <unset>,
>>>> elementFormDefault: <unset>,
>>>> finalDefault: null,
>>>> blockDefault: null,
>>>> version: null
>>>> )
>>>>
>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>> other more simple examples.
>>>>
>>>> Where is the best place to go for advice on getting this off the
>>>> ground?
>>>
|
|
|
Re: Trouble getting XSD sample running [message #71165 is a reply to message #71145] |
Mon, 08 January 2007 19:50   |
Eclipse User |
|
|
|
Hi Dave,
The source code should be in the example directory or jar file. Clearly
we missed something in a few build.properties files. Do you mind
opening a bugzilla to report the problem? I would fix it for this
week's build.
Every code we have is located in Eclipse's CVS. Here's the link to the
XSD example bundle.
http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
Cheers,
Marcelo
Dave wrote:
> It seems I had some success. I was able to run the XSDMainExample
> without error, however, I could not find the source code for the example
> anywhere.
>
> Do I need to decompile the jar or is the source for the example
> available somewhere?
>
>
>
>
> Marcelo Paternostro wrote:
>> Hi Dave,
>>
>> In every build we publish you can find a zip file with all EMF, SDO
>> and XSD examples. On our last 2.2.2 build
>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>> for example, notice the "Examples" link under the "EMF, SDO, and
>> XSD" section.
>>
>> The XSDMainExample file has been around since June 2005, so I am sure
>> you should be able to find an example zip that works with the EMF
>> version you are using.
>>
>> Since I don't know how old is the file you found on the web, I would
>> prefer to wait for you to try the one from the appropriate example
>> zip. Give us a shout if you are still having problem ;-)
>>
>> Cheers,
>> Marcelo
>>
>> Dave wrote:
>>> Thanks Ed. I was not able to find XSDMainExample in the distribution
>>> I downloaded. Because we're stuck at Java 1.4.2_09 we are not using
>>> the most current EMF. Was XSDMainExample perhaps not available in
>>> EMF 2.2.2?
>>>
>>>
>>> I was able to find a copy on the web but it did not work. This line,
>>> which occurs pretty early on, is what failed:
>>>
>>> XSDResourceImpl xsdMainResource =
>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>
>>> It returns null.
>>>
>>> This line is not based on any variable input so I would not expect it
>>> to fail unless there are some resources it requires internally that I
>>> have not provided.
>>>
>>> Any suggestions?
>>>
>>>
>>>
>>> Ed Merks wrote:
>>>> Dave,
>>>>
>>>> This is always a good example to look at:
>>>>
>>>>
>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>
>>>>
>>>> Running the "main example" and looking at the source would help show
>>>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample
>>>> in the org.eclipse.xsd.example plugin.
>>>>
>>>>
>>>> Dave wrote:
>>>>> Is this the correct place to ask for help with that?
>>>>>
>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>
>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>> errors were generated, but when I try to get information out of it
>>>>> it seems there's nothing there.
>>>>>
>>>>> If I do a toString on the schema object, I get
>>>>>
>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>> (element: null)
>>>>> (
>>>>> document: null,
>>>>> schemaLocation: null,
>>>>> targetNamespace: null,
>>>>> attributeFormDefault: <unset>,
>>>>> elementFormDefault: <unset>,
>>>>> finalDefault: null,
>>>>> blockDefault: null,
>>>>> version: null
>>>>> )
>>>>>
>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>> other more simple examples.
>>>>>
>>>>> Where is the best place to go for advice on getting this off the
>>>>> ground?
>>>>
|
|
|
Re: Trouble getting XSD sample running [message #71185 is a reply to message #71165] |
Mon, 08 January 2007 22:35   |
Eclipse User |
|
|
|
Originally posted by: x031661-eclipse.yahoo.com
Yeah, it seems that xsd.example.jar has only the manifest and 3 class files.
I don't have an account to fill out a bugzilla report.
I went to the link to look at the list of file versions, 1.1 - 1.5 but
it wasn't clear which version I should need. It seems that version 1.3
requires java 1.5, so I assume I need version 1.1 or 1.2.
Both of those files seems to reference an IPlatformRunnable which is
also referenced in xsd.example.jar but I don't see that interface in any
of the jar files I needed for xsd.example.jar, which were:
emf.ecore_2.2.2.v200701040000.jar
emf.common_2.2.1.v200701040000.jar
xsd_2.2.2.v200701040000.jar
emf.ecore.xmi_2.2.2.v200701040000.jar
Do you know where IPlatformRunnable lives?
Marcelo Paternostro wrote:
> Hi Dave,
>
> The source code should be in the example directory or jar file. Clearly
> we missed something in a few build.properties files. Do you mind
> opening a bugzilla to report the problem? I would fix it for this
> week's build.
>
> Every code we have is located in Eclipse's CVS. Here's the link to the
> XSD example bundle.
> http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
>
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> It seems I had some success. I was able to run the XSDMainExample
>> without error, however, I could not find the source code for the
>> example anywhere.
>>
>> Do I need to decompile the jar or is the source for the example
>> available somewhere?
>>
>>
>>
>>
>> Marcelo Paternostro wrote:
>>> Hi Dave,
>>>
>>> In every build we publish you can find a zip file with all EMF, SDO
>>> and XSD examples. On our last 2.2.2 build
>>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>>> for example, notice the "Examples" link under the "EMF, SDO, and
>>> XSD" section.
>>>
>>> The XSDMainExample file has been around since June 2005, so I am sure
>>> you should be able to find an example zip that works with the EMF
>>> version you are using.
>>>
>>> Since I don't know how old is the file you found on the web, I would
>>> prefer to wait for you to try the one from the appropriate example
>>> zip. Give us a shout if you are still having problem ;-)
>>>
>>> Cheers,
>>> Marcelo
>>>
>>> Dave wrote:
>>>> Thanks Ed. I was not able to find XSDMainExample in the
>>>> distribution I downloaded. Because we're stuck at Java 1.4.2_09 we
>>>> are not using the most current EMF. Was XSDMainExample perhaps not
>>>> available in EMF 2.2.2?
>>>>
>>>>
>>>> I was able to find a copy on the web but it did not work. This
>>>> line, which occurs pretty early on, is what failed:
>>>>
>>>> XSDResourceImpl xsdMainResource =
>>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>>
>>>> It returns null.
>>>>
>>>> This line is not based on any variable input so I would not expect
>>>> it to fail unless there are some resources it requires internally
>>>> that I have not provided.
>>>>
>>>> Any suggestions?
>>>>
>>>>
>>>>
>>>> Ed Merks wrote:
>>>>> Dave,
>>>>>
>>>>> This is always a good example to look at:
>>>>>
>>>>>
>>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>>
>>>>>
>>>>> Running the "main example" and looking at the source would help
>>>>> show how to set things up. I.e.,
>>>>> org.eclipse.xsd.example.XSDMainExample in the
>>>>> org.eclipse.xsd.example plugin.
>>>>>
>>>>>
>>>>> Dave wrote:
>>>>>> Is this the correct place to ask for help with that?
>>>>>>
>>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>>
>>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>>> errors were generated, but when I try to get information out of it
>>>>>> it seems there's nothing there.
>>>>>>
>>>>>> If I do a toString on the schema object, I get
>>>>>>
>>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>>> (element: null)
>>>>>> (
>>>>>> document: null,
>>>>>> schemaLocation: null,
>>>>>> targetNamespace: null,
>>>>>> attributeFormDefault: <unset>,
>>>>>> elementFormDefault: <unset>,
>>>>>> finalDefault: null,
>>>>>> blockDefault: null,
>>>>>> version: null
>>>>>> )
>>>>>>
>>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>>> other more simple examples.
>>>>>>
>>>>>> Where is the best place to go for advice on getting this off the
>>>>>> ground?
>>>>>
|
|
|
Re: Trouble getting XSD sample running [message #71205 is a reply to message #71185] |
Tue, 09 January 2007 14:42   |
Eclipse User |
|
|
|
IPlatformRunnable is an Eclipse class
(org.eclipse.core.runtime.IPlatformRunnable).
I will make sure we have the source files in our next build.
Thanks for spotting this.
Cheers,
Marcelo
Dave wrote:
> Yeah, it seems that xsd.example.jar has only the manifest and 3 class
> files.
>
> I don't have an account to fill out a bugzilla report.
>
> I went to the link to look at the list of file versions, 1.1 - 1.5 but
> it wasn't clear which version I should need. It seems that version 1.3
> requires java 1.5, so I assume I need version 1.1 or 1.2.
>
> Both of those files seems to reference an IPlatformRunnable which is
> also referenced in xsd.example.jar but I don't see that interface in any
> of the jar files I needed for xsd.example.jar, which were:
>
> emf.ecore_2.2.2.v200701040000.jar
> emf.common_2.2.1.v200701040000.jar
> xsd_2.2.2.v200701040000.jar
> emf.ecore.xmi_2.2.2.v200701040000.jar
>
> Do you know where IPlatformRunnable lives?
>
>
> Marcelo Paternostro wrote:
>> Hi Dave,
>>
>> The source code should be in the example directory or jar file.
>> Clearly we missed something in a few build.properties files. Do you
>> mind opening a bugzilla to report the problem? I would fix it for
>> this week's build.
>>
>> Every code we have is located in Eclipse's CVS. Here's the link to
>> the XSD example bundle.
>> http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
>>
>>
>> Cheers,
>> Marcelo
>>
>> Dave wrote:
>>> It seems I had some success. I was able to run the XSDMainExample
>>> without error, however, I could not find the source code for the
>>> example anywhere.
>>>
>>> Do I need to decompile the jar or is the source for the example
>>> available somewhere?
>>>
>>>
>>>
>>>
>>> Marcelo Paternostro wrote:
>>>> Hi Dave,
>>>>
>>>> In every build we publish you can find a zip file with all EMF, SDO
>>>> and XSD examples. On our last 2.2.2 build
>>>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>>>> for example, notice the "Examples" link under the "EMF, SDO, and
>>>> XSD" section.
>>>>
>>>> The XSDMainExample file has been around since June 2005, so I am
>>>> sure you should be able to find an example zip that works with the
>>>> EMF version you are using.
>>>>
>>>> Since I don't know how old is the file you found on the web, I would
>>>> prefer to wait for you to try the one from the appropriate example
>>>> zip. Give us a shout if you are still having problem ;-)
>>>>
>>>> Cheers,
>>>> Marcelo
>>>>
>>>> Dave wrote:
>>>>> Thanks Ed. I was not able to find XSDMainExample in the
>>>>> distribution I downloaded. Because we're stuck at Java 1.4.2_09 we
>>>>> are not using the most current EMF. Was XSDMainExample perhaps not
>>>>> available in EMF 2.2.2?
>>>>>
>>>>>
>>>>> I was able to find a copy on the web but it did not work. This
>>>>> line, which occurs pretty early on, is what failed:
>>>>>
>>>>> XSDResourceImpl xsdMainResource =
>>>>>
>>>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>>>
>>>>> It returns null.
>>>>>
>>>>> This line is not based on any variable input so I would not expect
>>>>> it to fail unless there are some resources it requires internally
>>>>> that I have not provided.
>>>>>
>>>>> Any suggestions?
>>>>>
>>>>>
>>>>>
>>>>> Ed Merks wrote:
>>>>>> Dave,
>>>>>>
>>>>>> This is always a good example to look at:
>>>>>>
>>>>>>
>>>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>>>
>>>>>>
>>>>>> Running the "main example" and looking at the source would help
>>>>>> show how to set things up. I.e.,
>>>>>> org.eclipse.xsd.example.XSDMainExample in the
>>>>>> org.eclipse.xsd.example plugin.
>>>>>>
>>>>>>
>>>>>> Dave wrote:
>>>>>>> Is this the correct place to ask for help with that?
>>>>>>>
>>>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>>>
>>>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>>>> errors were generated, but when I try to get information out of
>>>>>>> it it seems there's nothing there.
>>>>>>>
>>>>>>> If I do a toString on the schema object, I get
>>>>>>>
>>>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>>>> (element: null)
>>>>>>> (
>>>>>>> document: null,
>>>>>>> schemaLocation: null,
>>>>>>> targetNamespace: null,
>>>>>>> attributeFormDefault: <unset>,
>>>>>>> elementFormDefault: <unset>,
>>>>>>> finalDefault: null,
>>>>>>> blockDefault: null,
>>>>>>> version: null
>>>>>>> )
>>>>>>>
>>>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>>>> other more simple examples.
>>>>>>>
>>>>>>> Where is the best place to go for advice on getting this off the
>>>>>>> ground?
>>>>>>
|
|
|
Re: Trouble getting XSD sample running [message #71225 is a reply to message #71205] |
Tue, 09 January 2007 18:34  |
Eclipse User |
|
|
|
Originally posted by: x031661-eclipse.yahoo.com
OK. I've got version 1.2 of the XSDMainExample source code running and
producing output without errors.
I'll probably be back with more questions but I'm good for now.
Thanks for all your help
Marcelo Paternostro wrote:
> IPlatformRunnable is an Eclipse class
> (org.eclipse.core.runtime.IPlatformRunnable).
>
> I will make sure we have the source files in our next build.
>
> Thanks for spotting this.
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> Yeah, it seems that xsd.example.jar has only the manifest and 3 class
>> files.
>>
>> I don't have an account to fill out a bugzilla report.
>>
>> I went to the link to look at the list of file versions, 1.1 - 1.5 but
>> it wasn't clear which version I should need. It seems that version
>> 1.3 requires java 1.5, so I assume I need version 1.1 or 1.2.
>>
>> Both of those files seems to reference an IPlatformRunnable which is
>> also referenced in xsd.example.jar but I don't see that interface in
>> any of the jar files I needed for xsd.example.jar, which were:
>>
>> emf.ecore_2.2.2.v200701040000.jar
>> emf.common_2.2.1.v200701040000.jar
>> xsd_2.2.2.v200701040000.jar
>> emf.ecore.xmi_2.2.2.v200701040000.jar
>>
>> Do you know where IPlatformRunnable lives?
>>
>>
>> Marcelo Paternostro wrote:
>>> Hi Dave,
>>>
>>> The source code should be in the example directory or jar file.
>>> Clearly we missed something in a few build.properties files. Do you
>>> mind opening a bugzilla to report the problem? I would fix it for
>>> this week's build.
>>>
>>> Every code we have is located in Eclipse's CVS. Here's the link to
>>> the XSD example bundle.
>>> http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
>>>
>>>
>>> Cheers,
>>> Marcelo
>>>
>>> Dave wrote:
>>>> It seems I had some success. I was able to run the XSDMainExample
>>>> without error, however, I could not find the source code for the
>>>> example anywhere.
>>>>
>>>> Do I need to decompile the jar or is the source for the example
>>>> available somewhere?
>>>>
>>>>
>>>>
>>>>
>>>> Marcelo Paternostro wrote:
>>>>> Hi Dave,
>>>>>
>>>>> In every build we publish you can find a zip file with all EMF, SDO
>>>>> and XSD examples. On our last 2.2.2 build
>>>>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>>>>> for example, notice the "Examples" link under the "EMF, SDO, and
>>>>> XSD" section.
>>>>>
>>>>> The XSDMainExample file has been around since June 2005, so I am
>>>>> sure you should be able to find an example zip that works with the
>>>>> EMF version you are using.
>>>>>
>>>>> Since I don't know how old is the file you found on the web, I
>>>>> would prefer to wait for you to try the one from the appropriate
>>>>> example zip. Give us a shout if you are still having problem ;-)
>>>>>
>>>>> Cheers,
>>>>> Marcelo
>>>>>
>>>>> Dave wrote:
>>>>>> Thanks Ed. I was not able to find XSDMainExample in the
>>>>>> distribution I downloaded. Because we're stuck at Java 1.4.2_09
>>>>>> we are not using the most current EMF. Was XSDMainExample perhaps
>>>>>> not available in EMF 2.2.2?
>>>>>>
>>>>>>
>>>>>> I was able to find a copy on the web but it did not work. This
>>>>>> line, which occurs pretty early on, is what failed:
>>>>>>
>>>>>> XSDResourceImpl xsdMainResource =
>>>>>>
>>>>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>>>>
>>>>>> It returns null.
>>>>>>
>>>>>> This line is not based on any variable input so I would not expect
>>>>>> it to fail unless there are some resources it requires internally
>>>>>> that I have not provided.
>>>>>>
>>>>>> Any suggestions?
>>>>>>
>>>>>>
>>>>>>
>>>>>> Ed Merks wrote:
>>>>>>> Dave,
>>>>>>>
>>>>>>> This is always a good example to look at:
>>>>>>>
>>>>>>>
>>>>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>>>>
>>>>>>>
>>>>>>> Running the "main example" and looking at the source would help
>>>>>>> show how to set things up. I.e.,
>>>>>>> org.eclipse.xsd.example.XSDMainExample in the
>>>>>>> org.eclipse.xsd.example plugin.
>>>>>>>
>>>>>>>
>>>>>>> Dave wrote:
>>>>>>>> Is this the correct place to ask for help with that?
>>>>>>>>
>>>>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>>>>
>>>>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>>>>> errors were generated, but when I try to get information out of
>>>>>>>> it it seems there's nothing there.
>>>>>>>>
>>>>>>>> If I do a toString on the schema object, I get
>>>>>>>>
>>>>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>>>>> (element: null)
>>>>>>>> (
>>>>>>>> document: null,
>>>>>>>> schemaLocation: null,
>>>>>>>> targetNamespace: null,
>>>>>>>> attributeFormDefault: <unset>,
>>>>>>>> elementFormDefault: <unset>,
>>>>>>>> finalDefault: null,
>>>>>>>> blockDefault: null,
>>>>>>>> version: null
>>>>>>>> )
>>>>>>>>
>>>>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>>>>> other more simple examples.
>>>>>>>>
>>>>>>>> Where is the best place to go for advice on getting this off the
>>>>>>>> ground?
>>>>>>>
|
|
|
Re: Trouble getting XSD sample running [message #599302 is a reply to message #71005] |
Thu, 21 December 2006 20:43  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------060308080606060406060804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Dave,
This is always a good example to look at:
http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
Running the "main example" and looking at the source would help show how
to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in the
org.eclipse.xsd.example plugin.
Dave wrote:
> Is this the correct place to ask for help with that?
>
> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>
> It seems I was able to create a XSDSchema object, at least no errors
> were generated, but when I try to get information out of it it seems
> there's nothing there.
>
> If I do a toString on the schema object, I get
>
> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
> (element: null)
> (
> document: null,
> schemaLocation: null,
> targetNamespace: null,
> attributeFormDefault: <unset>,
> elementFormDefault: <unset>,
> finalDefault: null,
> blockDefault: null,
> version: null
> )
>
> I've used the FindTypesMissingFacets.xsd example XSD as well as other
> more simple examples.
>
> Where is the best place to go for advice on getting this off the ground?
--------------060308080606060406060804
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dave,<br>
<br>
This is always a good example to look at:<br>
<blockquote><a
href=" http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html"> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html</a><br>
</blockquote>
Running the "main example" and looking at the source would help show
how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in
the org.eclipse.xsd.example plugin.<br>
<br>
<br>
Dave wrote:
<blockquote cite="midemeq46$nmt$1@utils.eclipse.org" type="cite">Is
this the correct place to ask for help with that?
<br>
<br>
I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
<br>
<br>
It seems I was able to create a XSDSchema object, at least no errors
were generated, but when I try to get information out of it it seems
there's nothing there.
<br>
<br>
If I do a toString on the schema object, I get
<br>
<br>
org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
<br>
(element: null)
<br>
(
<br>
document: null,
<br>
schemaLocation: null,
<br>
targetNamespace: null,
<br>
attributeFormDefault: <unset>,
<br>
elementFormDefault: <unset>,
<br>
finalDefault: null,
<br>
blockDefault: null,
<br>
version: null
<br>
)
<br>
<br>
I've used the FindTypesMissingFacets.xsd example XSD as well as other
more simple examples.
<br>
<br>
Where is the best place to go for advice on getting this off the
ground?
<br>
</blockquote>
<br>
</body>
</html>
--------------060308080606060406060804--
|
|
|
Re: Trouble getting XSD sample running [message #599329 is a reply to message #71027] |
Thu, 04 January 2007 18:38  |
Eclipse User |
|
|
|
Thanks Ed. I was not able to find XSDMainExample in the distribution I
downloaded. Because we're stuck at Java 1.4.2_09 we are not using the
most current EMF. Was XSDMainExample perhaps not available in EMF 2.2.2?
I was able to find a copy on the web but it did not work. This line,
which occurs pretty early on, is what failed:
XSDResourceImpl xsdMainResource =
(XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
It returns null.
This line is not based on any variable input so I would not expect it to
fail unless there are some resources it requires internally that I have
not provided.
Any suggestions?
Ed Merks wrote:
> Dave,
>
> This is always a good example to look at:
>
> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>
> Running the "main example" and looking at the source would help show how
> to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in the
> org.eclipse.xsd.example plugin.
>
>
> Dave wrote:
>> Is this the correct place to ask for help with that?
>>
>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>
>> It seems I was able to create a XSDSchema object, at least no errors
>> were generated, but when I try to get information out of it it seems
>> there's nothing there.
>>
>> If I do a toString on the schema object, I get
>>
>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>> (element: null)
>> (
>> document: null,
>> schemaLocation: null,
>> targetNamespace: null,
>> attributeFormDefault: <unset>,
>> elementFormDefault: <unset>,
>> finalDefault: null,
>> blockDefault: null,
>> version: null
>> )
>>
>> I've used the FindTypesMissingFacets.xsd example XSD as well as other
>> more simple examples.
>>
>> Where is the best place to go for advice on getting this off the ground?
>
|
|
|
Re: Trouble getting XSD sample running [message #599336 is a reply to message #71085] |
Sun, 07 January 2007 20:40  |
Eclipse User |
|
|
|
Hi Dave,
In every build we publish you can find a zip file with all EMF, SDO and
XSD examples. On our last 2.2.2 build
( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
for example, notice the "Examples" link under the "EMF, SDO, and XSD"
section.
The XSDMainExample file has been around since June 2005, so I am sure
you should be able to find an example zip that works with the EMF
version you are using.
Since I don't know how old is the file you found on the web, I would
prefer to wait for you to try the one from the appropriate example zip.
Give us a shout if you are still having problem ;-)
Cheers,
Marcelo
Dave wrote:
> Thanks Ed. I was not able to find XSDMainExample in the distribution I
> downloaded. Because we're stuck at Java 1.4.2_09 we are not using the
> most current EMF. Was XSDMainExample perhaps not available in EMF 2.2.2?
>
>
> I was able to find a copy on the web but it did not work. This line,
> which occurs pretty early on, is what failed:
>
> XSDResourceImpl xsdMainResource =
> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>
> It returns null.
>
> This line is not based on any variable input so I would not expect it to
> fail unless there are some resources it requires internally that I have
> not provided.
>
> Any suggestions?
>
>
>
> Ed Merks wrote:
>> Dave,
>>
>> This is always a good example to look at:
>>
>>
>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>
>>
>> Running the "main example" and looking at the source would help show
>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample in
>> the org.eclipse.xsd.example plugin.
>>
>>
>> Dave wrote:
>>> Is this the correct place to ask for help with that?
>>>
>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>
>>> It seems I was able to create a XSDSchema object, at least no errors
>>> were generated, but when I try to get information out of it it seems
>>> there's nothing there.
>>>
>>> If I do a toString on the schema object, I get
>>>
>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>> (element: null)
>>> (
>>> document: null,
>>> schemaLocation: null,
>>> targetNamespace: null,
>>> attributeFormDefault: <unset>,
>>> elementFormDefault: <unset>,
>>> finalDefault: null,
>>> blockDefault: null,
>>> version: null
>>> )
>>>
>>> I've used the FindTypesMissingFacets.xsd example XSD as well as other
>>> more simple examples.
>>>
>>> Where is the best place to go for advice on getting this off the ground?
>>
|
|
|
Re: Trouble getting XSD sample running [message #599350 is a reply to message #71105] |
Mon, 08 January 2007 13:49  |
Eclipse User |
|
|
|
Thanks Marcelo,
I don't think I realized that the examples were a separate download.
I'll check that out today
Marcelo Paternostro wrote:
> Hi Dave,
>
> In every build we publish you can find a zip file with all EMF, SDO and
> XSD examples. On our last 2.2.2 build
> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
> for example, notice the "Examples" link under the "EMF, SDO, and XSD"
> section.
>
> The XSDMainExample file has been around since June 2005, so I am sure
> you should be able to find an example zip that works with the EMF
> version you are using.
>
> Since I don't know how old is the file you found on the web, I would
> prefer to wait for you to try the one from the appropriate example zip.
> Give us a shout if you are still having problem ;-)
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> Thanks Ed. I was not able to find XSDMainExample in the distribution
>> I downloaded. Because we're stuck at Java 1.4.2_09 we are not using
>> the most current EMF. Was XSDMainExample perhaps not available in EMF
>> 2.2.2?
>>
>>
>> I was able to find a copy on the web but it did not work. This line,
>> which occurs pretty early on, is what failed:
>>
>> XSDResourceImpl xsdMainResource =
>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>
>> It returns null.
>>
>> This line is not based on any variable input so I would not expect it
>> to fail unless there are some resources it requires internally that I
>> have not provided.
>>
>> Any suggestions?
>>
>>
>>
>> Ed Merks wrote:
>>> Dave,
>>>
>>> This is always a good example to look at:
>>>
>>>
>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>
>>>
>>> Running the "main example" and looking at the source would help show
>>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample
>>> in the org.eclipse.xsd.example plugin.
>>>
>>>
>>> Dave wrote:
>>>> Is this the correct place to ask for help with that?
>>>>
>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>
>>>> It seems I was able to create a XSDSchema object, at least no errors
>>>> were generated, but when I try to get information out of it it seems
>>>> there's nothing there.
>>>>
>>>> If I do a toString on the schema object, I get
>>>>
>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>> (element: null)
>>>> (
>>>> document: null,
>>>> schemaLocation: null,
>>>> targetNamespace: null,
>>>> attributeFormDefault: <unset>,
>>>> elementFormDefault: <unset>,
>>>> finalDefault: null,
>>>> blockDefault: null,
>>>> version: null
>>>> )
>>>>
>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>> other more simple examples.
>>>>
>>>> Where is the best place to go for advice on getting this off the
>>>> ground?
>>>
|
|
|
Re: Trouble getting XSD sample running [message #599358 is a reply to message #71105] |
Mon, 08 January 2007 18:10  |
Eclipse User |
|
|
|
It seems I had some success. I was able to run the XSDMainExample
without error, however, I could not find the source code for the example
anywhere.
Do I need to decompile the jar or is the source for the example
available somewhere?
Marcelo Paternostro wrote:
> Hi Dave,
>
> In every build we publish you can find a zip file with all EMF, SDO and
> XSD examples. On our last 2.2.2 build
> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
> for example, notice the "Examples" link under the "EMF, SDO, and XSD"
> section.
>
> The XSDMainExample file has been around since June 2005, so I am sure
> you should be able to find an example zip that works with the EMF
> version you are using.
>
> Since I don't know how old is the file you found on the web, I would
> prefer to wait for you to try the one from the appropriate example zip.
> Give us a shout if you are still having problem ;-)
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> Thanks Ed. I was not able to find XSDMainExample in the distribution
>> I downloaded. Because we're stuck at Java 1.4.2_09 we are not using
>> the most current EMF. Was XSDMainExample perhaps not available in EMF
>> 2.2.2?
>>
>>
>> I was able to find a copy on the web but it did not work. This line,
>> which occurs pretty early on, is what failed:
>>
>> XSDResourceImpl xsdMainResource =
>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>
>> It returns null.
>>
>> This line is not based on any variable input so I would not expect it
>> to fail unless there are some resources it requires internally that I
>> have not provided.
>>
>> Any suggestions?
>>
>>
>>
>> Ed Merks wrote:
>>> Dave,
>>>
>>> This is always a good example to look at:
>>>
>>>
>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>
>>>
>>> Running the "main example" and looking at the source would help show
>>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample
>>> in the org.eclipse.xsd.example plugin.
>>>
>>>
>>> Dave wrote:
>>>> Is this the correct place to ask for help with that?
>>>>
>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>
>>>> It seems I was able to create a XSDSchema object, at least no errors
>>>> were generated, but when I try to get information out of it it seems
>>>> there's nothing there.
>>>>
>>>> If I do a toString on the schema object, I get
>>>>
>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>> (element: null)
>>>> (
>>>> document: null,
>>>> schemaLocation: null,
>>>> targetNamespace: null,
>>>> attributeFormDefault: <unset>,
>>>> elementFormDefault: <unset>,
>>>> finalDefault: null,
>>>> blockDefault: null,
>>>> version: null
>>>> )
>>>>
>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>> other more simple examples.
>>>>
>>>> Where is the best place to go for advice on getting this off the
>>>> ground?
>>>
|
|
|
Re: Trouble getting XSD sample running [message #599368 is a reply to message #71145] |
Mon, 08 January 2007 19:50  |
Eclipse User |
|
|
|
Hi Dave,
The source code should be in the example directory or jar file. Clearly
we missed something in a few build.properties files. Do you mind
opening a bugzilla to report the problem? I would fix it for this
week's build.
Every code we have is located in Eclipse's CVS. Here's the link to the
XSD example bundle.
http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
Cheers,
Marcelo
Dave wrote:
> It seems I had some success. I was able to run the XSDMainExample
> without error, however, I could not find the source code for the example
> anywhere.
>
> Do I need to decompile the jar or is the source for the example
> available somewhere?
>
>
>
>
> Marcelo Paternostro wrote:
>> Hi Dave,
>>
>> In every build we publish you can find a zip file with all EMF, SDO
>> and XSD examples. On our last 2.2.2 build
>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>> for example, notice the "Examples" link under the "EMF, SDO, and
>> XSD" section.
>>
>> The XSDMainExample file has been around since June 2005, so I am sure
>> you should be able to find an example zip that works with the EMF
>> version you are using.
>>
>> Since I don't know how old is the file you found on the web, I would
>> prefer to wait for you to try the one from the appropriate example
>> zip. Give us a shout if you are still having problem ;-)
>>
>> Cheers,
>> Marcelo
>>
>> Dave wrote:
>>> Thanks Ed. I was not able to find XSDMainExample in the distribution
>>> I downloaded. Because we're stuck at Java 1.4.2_09 we are not using
>>> the most current EMF. Was XSDMainExample perhaps not available in
>>> EMF 2.2.2?
>>>
>>>
>>> I was able to find a copy on the web but it did not work. This line,
>>> which occurs pretty early on, is what failed:
>>>
>>> XSDResourceImpl xsdMainResource =
>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>
>>> It returns null.
>>>
>>> This line is not based on any variable input so I would not expect it
>>> to fail unless there are some resources it requires internally that I
>>> have not provided.
>>>
>>> Any suggestions?
>>>
>>>
>>>
>>> Ed Merks wrote:
>>>> Dave,
>>>>
>>>> This is always a good example to look at:
>>>>
>>>>
>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>
>>>>
>>>> Running the "main example" and looking at the source would help show
>>>> how to set things up. I.e., org.eclipse.xsd.example.XSDMainExample
>>>> in the org.eclipse.xsd.example plugin.
>>>>
>>>>
>>>> Dave wrote:
>>>>> Is this the correct place to ask for help with that?
>>>>>
>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>
>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>> errors were generated, but when I try to get information out of it
>>>>> it seems there's nothing there.
>>>>>
>>>>> If I do a toString on the schema object, I get
>>>>>
>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>> (element: null)
>>>>> (
>>>>> document: null,
>>>>> schemaLocation: null,
>>>>> targetNamespace: null,
>>>>> attributeFormDefault: <unset>,
>>>>> elementFormDefault: <unset>,
>>>>> finalDefault: null,
>>>>> blockDefault: null,
>>>>> version: null
>>>>> )
>>>>>
>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>> other more simple examples.
>>>>>
>>>>> Where is the best place to go for advice on getting this off the
>>>>> ground?
>>>>
|
|
|
Re: Trouble getting XSD sample running [message #599378 is a reply to message #71165] |
Mon, 08 January 2007 22:35  |
Eclipse User |
|
|
|
Yeah, it seems that xsd.example.jar has only the manifest and 3 class files.
I don't have an account to fill out a bugzilla report.
I went to the link to look at the list of file versions, 1.1 - 1.5 but
it wasn't clear which version I should need. It seems that version 1.3
requires java 1.5, so I assume I need version 1.1 or 1.2.
Both of those files seems to reference an IPlatformRunnable which is
also referenced in xsd.example.jar but I don't see that interface in any
of the jar files I needed for xsd.example.jar, which were:
emf.ecore_2.2.2.v200701040000.jar
emf.common_2.2.1.v200701040000.jar
xsd_2.2.2.v200701040000.jar
emf.ecore.xmi_2.2.2.v200701040000.jar
Do you know where IPlatformRunnable lives?
Marcelo Paternostro wrote:
> Hi Dave,
>
> The source code should be in the example directory or jar file. Clearly
> we missed something in a few build.properties files. Do you mind
> opening a bugzilla to report the problem? I would fix it for this
> week's build.
>
> Every code we have is located in Eclipse's CVS. Here's the link to the
> XSD example bundle.
> http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
>
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> It seems I had some success. I was able to run the XSDMainExample
>> without error, however, I could not find the source code for the
>> example anywhere.
>>
>> Do I need to decompile the jar or is the source for the example
>> available somewhere?
>>
>>
>>
>>
>> Marcelo Paternostro wrote:
>>> Hi Dave,
>>>
>>> In every build we publish you can find a zip file with all EMF, SDO
>>> and XSD examples. On our last 2.2.2 build
>>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>>> for example, notice the "Examples" link under the "EMF, SDO, and
>>> XSD" section.
>>>
>>> The XSDMainExample file has been around since June 2005, so I am sure
>>> you should be able to find an example zip that works with the EMF
>>> version you are using.
>>>
>>> Since I don't know how old is the file you found on the web, I would
>>> prefer to wait for you to try the one from the appropriate example
>>> zip. Give us a shout if you are still having problem ;-)
>>>
>>> Cheers,
>>> Marcelo
>>>
>>> Dave wrote:
>>>> Thanks Ed. I was not able to find XSDMainExample in the
>>>> distribution I downloaded. Because we're stuck at Java 1.4.2_09 we
>>>> are not using the most current EMF. Was XSDMainExample perhaps not
>>>> available in EMF 2.2.2?
>>>>
>>>>
>>>> I was able to find a copy on the web but it did not work. This
>>>> line, which occurs pretty early on, is what failed:
>>>>
>>>> XSDResourceImpl xsdMainResource =
>>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>>
>>>> It returns null.
>>>>
>>>> This line is not based on any variable input so I would not expect
>>>> it to fail unless there are some resources it requires internally
>>>> that I have not provided.
>>>>
>>>> Any suggestions?
>>>>
>>>>
>>>>
>>>> Ed Merks wrote:
>>>>> Dave,
>>>>>
>>>>> This is always a good example to look at:
>>>>>
>>>>>
>>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>>
>>>>>
>>>>> Running the "main example" and looking at the source would help
>>>>> show how to set things up. I.e.,
>>>>> org.eclipse.xsd.example.XSDMainExample in the
>>>>> org.eclipse.xsd.example plugin.
>>>>>
>>>>>
>>>>> Dave wrote:
>>>>>> Is this the correct place to ask for help with that?
>>>>>>
>>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>>
>>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>>> errors were generated, but when I try to get information out of it
>>>>>> it seems there's nothing there.
>>>>>>
>>>>>> If I do a toString on the schema object, I get
>>>>>>
>>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>>> (element: null)
>>>>>> (
>>>>>> document: null,
>>>>>> schemaLocation: null,
>>>>>> targetNamespace: null,
>>>>>> attributeFormDefault: <unset>,
>>>>>> elementFormDefault: <unset>,
>>>>>> finalDefault: null,
>>>>>> blockDefault: null,
>>>>>> version: null
>>>>>> )
>>>>>>
>>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>>> other more simple examples.
>>>>>>
>>>>>> Where is the best place to go for advice on getting this off the
>>>>>> ground?
>>>>>
|
|
|
Re: Trouble getting XSD sample running [message #599384 is a reply to message #71185] |
Tue, 09 January 2007 14:42  |
Eclipse User |
|
|
|
IPlatformRunnable is an Eclipse class
(org.eclipse.core.runtime.IPlatformRunnable).
I will make sure we have the source files in our next build.
Thanks for spotting this.
Cheers,
Marcelo
Dave wrote:
> Yeah, it seems that xsd.example.jar has only the manifest and 3 class
> files.
>
> I don't have an account to fill out a bugzilla report.
>
> I went to the link to look at the list of file versions, 1.1 - 1.5 but
> it wasn't clear which version I should need. It seems that version 1.3
> requires java 1.5, so I assume I need version 1.1 or 1.2.
>
> Both of those files seems to reference an IPlatformRunnable which is
> also referenced in xsd.example.jar but I don't see that interface in any
> of the jar files I needed for xsd.example.jar, which were:
>
> emf.ecore_2.2.2.v200701040000.jar
> emf.common_2.2.1.v200701040000.jar
> xsd_2.2.2.v200701040000.jar
> emf.ecore.xmi_2.2.2.v200701040000.jar
>
> Do you know where IPlatformRunnable lives?
>
>
> Marcelo Paternostro wrote:
>> Hi Dave,
>>
>> The source code should be in the example directory or jar file.
>> Clearly we missed something in a few build.properties files. Do you
>> mind opening a bugzilla to report the problem? I would fix it for
>> this week's build.
>>
>> Every code we have is located in Eclipse's CVS. Here's the link to
>> the XSD example bundle.
>> http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
>>
>>
>> Cheers,
>> Marcelo
>>
>> Dave wrote:
>>> It seems I had some success. I was able to run the XSDMainExample
>>> without error, however, I could not find the source code for the
>>> example anywhere.
>>>
>>> Do I need to decompile the jar or is the source for the example
>>> available somewhere?
>>>
>>>
>>>
>>>
>>> Marcelo Paternostro wrote:
>>>> Hi Dave,
>>>>
>>>> In every build we publish you can find a zip file with all EMF, SDO
>>>> and XSD examples. On our last 2.2.2 build
>>>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>>>> for example, notice the "Examples" link under the "EMF, SDO, and
>>>> XSD" section.
>>>>
>>>> The XSDMainExample file has been around since June 2005, so I am
>>>> sure you should be able to find an example zip that works with the
>>>> EMF version you are using.
>>>>
>>>> Since I don't know how old is the file you found on the web, I would
>>>> prefer to wait for you to try the one from the appropriate example
>>>> zip. Give us a shout if you are still having problem ;-)
>>>>
>>>> Cheers,
>>>> Marcelo
>>>>
>>>> Dave wrote:
>>>>> Thanks Ed. I was not able to find XSDMainExample in the
>>>>> distribution I downloaded. Because we're stuck at Java 1.4.2_09 we
>>>>> are not using the most current EMF. Was XSDMainExample perhaps not
>>>>> available in EMF 2.2.2?
>>>>>
>>>>>
>>>>> I was able to find a copy on the web but it did not work. This
>>>>> line, which occurs pretty early on, is what failed:
>>>>>
>>>>> XSDResourceImpl xsdMainResource =
>>>>>
>>>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>>>
>>>>> It returns null.
>>>>>
>>>>> This line is not based on any variable input so I would not expect
>>>>> it to fail unless there are some resources it requires internally
>>>>> that I have not provided.
>>>>>
>>>>> Any suggestions?
>>>>>
>>>>>
>>>>>
>>>>> Ed Merks wrote:
>>>>>> Dave,
>>>>>>
>>>>>> This is always a good example to look at:
>>>>>>
>>>>>>
>>>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>>>
>>>>>>
>>>>>> Running the "main example" and looking at the source would help
>>>>>> show how to set things up. I.e.,
>>>>>> org.eclipse.xsd.example.XSDMainExample in the
>>>>>> org.eclipse.xsd.example plugin.
>>>>>>
>>>>>>
>>>>>> Dave wrote:
>>>>>>> Is this the correct place to ask for help with that?
>>>>>>>
>>>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>>>
>>>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>>>> errors were generated, but when I try to get information out of
>>>>>>> it it seems there's nothing there.
>>>>>>>
>>>>>>> If I do a toString on the schema object, I get
>>>>>>>
>>>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>>>> (element: null)
>>>>>>> (
>>>>>>> document: null,
>>>>>>> schemaLocation: null,
>>>>>>> targetNamespace: null,
>>>>>>> attributeFormDefault: <unset>,
>>>>>>> elementFormDefault: <unset>,
>>>>>>> finalDefault: null,
>>>>>>> blockDefault: null,
>>>>>>> version: null
>>>>>>> )
>>>>>>>
>>>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>>>> other more simple examples.
>>>>>>>
>>>>>>> Where is the best place to go for advice on getting this off the
>>>>>>> ground?
>>>>>>
|
|
|
Re: Trouble getting XSD sample running [message #599406 is a reply to message #71205] |
Tue, 09 January 2007 18:34  |
Eclipse User |
|
|
|
OK. I've got version 1.2 of the XSDMainExample source code running and
producing output without errors.
I'll probably be back with more questions but I'm good for now.
Thanks for all your help
Marcelo Paternostro wrote:
> IPlatformRunnable is an Eclipse class
> (org.eclipse.core.runtime.IPlatformRunnable).
>
> I will make sure we have the source files in our next build.
>
> Thanks for spotting this.
>
> Cheers,
> Marcelo
>
> Dave wrote:
>> Yeah, it seems that xsd.example.jar has only the manifest and 3 class
>> files.
>>
>> I don't have an account to fill out a bugzilla report.
>>
>> I went to the link to look at the list of file versions, 1.1 - 1.5 but
>> it wasn't clear which version I should need. It seems that version
>> 1.3 requires java 1.5, so I assume I need version 1.1 or 1.2.
>>
>> Both of those files seems to reference an IPlatformRunnable which is
>> also referenced in xsd.example.jar but I don't see that interface in
>> any of the jar files I needed for xsd.example.jar, which were:
>>
>> emf.ecore_2.2.2.v200701040000.jar
>> emf.common_2.2.1.v200701040000.jar
>> xsd_2.2.2.v200701040000.jar
>> emf.ecore.xmi_2.2.2.v200701040000.jar
>>
>> Do you know where IPlatformRunnable lives?
>>
>>
>> Marcelo Paternostro wrote:
>>> Hi Dave,
>>>
>>> The source code should be in the example directory or jar file.
>>> Clearly we missed something in a few build.properties files. Do you
>>> mind opening a bugzilla to report the problem? I would fix it for
>>> this week's build.
>>>
>>> Every code we have is located in Eclipse's CVS. Here's the link to
>>> the XSD example bundle.
>>> http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/examples/org.eclipse.xsd.example/
>>>
>>>
>>> Cheers,
>>> Marcelo
>>>
>>> Dave wrote:
>>>> It seems I had some success. I was able to run the XSDMainExample
>>>> without error, however, I could not find the source code for the
>>>> example anywhere.
>>>>
>>>> Do I need to decompile the jar or is the source for the example
>>>> available somewhere?
>>>>
>>>>
>>>>
>>>>
>>>> Marcelo Paternostro wrote:
>>>>> Hi Dave,
>>>>>
>>>>> In every build we publish you can find a zip file with all EMF, SDO
>>>>> and XSD examples. On our last 2.2.2 build
>>>>> ( http://www.eclipse.org/emf/downloads/index.php?showAll=1& ;hlbuild=M200701040000#M200701040000),
>>>>> for example, notice the "Examples" link under the "EMF, SDO, and
>>>>> XSD" section.
>>>>>
>>>>> The XSDMainExample file has been around since June 2005, so I am
>>>>> sure you should be able to find an example zip that works with the
>>>>> EMF version you are using.
>>>>>
>>>>> Since I don't know how old is the file you found on the web, I
>>>>> would prefer to wait for you to try the one from the appropriate
>>>>> example zip. Give us a shout if you are still having problem ;-)
>>>>>
>>>>> Cheers,
>>>>> Marcelo
>>>>>
>>>>> Dave wrote:
>>>>>> Thanks Ed. I was not able to find XSDMainExample in the
>>>>>> distribution I downloaded. Because we're stuck at Java 1.4.2_09
>>>>>> we are not using the most current EMF. Was XSDMainExample perhaps
>>>>>> not available in EMF 2.2.2?
>>>>>>
>>>>>>
>>>>>> I was able to find a copy on the web but it did not work. This
>>>>>> line, which occurs pretty early on, is what failed:
>>>>>>
>>>>>> XSDResourceImpl xsdMainResource =
>>>>>>
>>>>>> (XSDResourceImpl)resourceSet.createResource(URI.createURI("*.xsd "));
>>>>>>
>>>>>> It returns null.
>>>>>>
>>>>>> This line is not based on any variable input so I would not expect
>>>>>> it to fail unless there are some resources it requires internally
>>>>>> that I have not provided.
>>>>>>
>>>>>> Any suggestions?
>>>>>>
>>>>>>
>>>>>>
>>>>>> Ed Merks wrote:
>>>>>>> Dave,
>>>>>>>
>>>>>>> This is always a good example to look at:
>>>>>>>
>>>>>>>
>>>>>>> http://download.eclipse.org/tools/emf/xsd/javadoc/2.3.0/org/ eclipse/xsd/util/XSDPrototypicalSchema.html
>>>>>>>
>>>>>>>
>>>>>>> Running the "main example" and looking at the source would help
>>>>>>> show how to set things up. I.e.,
>>>>>>> org.eclipse.xsd.example.XSDMainExample in the
>>>>>>> org.eclipse.xsd.example plugin.
>>>>>>>
>>>>>>>
>>>>>>> Dave wrote:
>>>>>>>> Is this the correct place to ask for help with that?
>>>>>>>>
>>>>>>>> I'm stuck at Java 1.4.2_09 so I downloaded EMF 2.2.2
>>>>>>>>
>>>>>>>> It seems I was able to create a XSDSchema object, at least no
>>>>>>>> errors were generated, but when I try to get information out of
>>>>>>>> it it seems there's nothing there.
>>>>>>>>
>>>>>>>> If I do a toString on the schema object, I get
>>>>>>>>
>>>>>>>> org.eclipse.xsd.impl.XSDSchemaImpl@1eb2c1b
>>>>>>>> (element: null)
>>>>>>>> (
>>>>>>>> document: null,
>>>>>>>> schemaLocation: null,
>>>>>>>> targetNamespace: null,
>>>>>>>> attributeFormDefault: <unset>,
>>>>>>>> elementFormDefault: <unset>,
>>>>>>>> finalDefault: null,
>>>>>>>> blockDefault: null,
>>>>>>>> version: null
>>>>>>>> )
>>>>>>>>
>>>>>>>> I've used the FindTypesMissingFacets.xsd example XSD as well as
>>>>>>>> other more simple examples.
>>>>>>>>
>>>>>>>> Where is the best place to go for advice on getting this off the
>>>>>>>> ground?
>>>>>>>
|
|
|
Goto Forum:
Current Time: Mon Feb 17 13:37:45 GMT 2025
Powered by FUDForum. Page generated in 0.05348 seconds
|