XSD 2.0 [message #382852] |
Wed, 10 March 2004 11:34  |
Eclipse User |
|
|
|
Originally posted by: jdmcduf.nsa.gov
I am getting an error message when reading a schema when I added the
pluging for EMF 2.0 and XSD2.0.
The error message is
Specify a valid XML Schema and try loading again
The Schema is valid checked in XMLSpy and also loaded it with EMF 1.1.1
and XSD1.1.1
Can anyone help?
|
|
|
|
|
|
|
|
|
Re: XSD 2.0 [message #382865 is a reply to message #382862] |
Thu, 11 March 2004 09:59  |
Eclipse User |
|
|
|
JD,
Perhaps you are using the 20040225_1234SL build in which the xsd.jar is missing the
message.properties; this causes XSD to fail for any schema that uses xsd:pattern.
The I200403081633 build fixes this problem. I could not reproduce a problem for
Okay.xsd with this later build.
jdmcduf wrote:
> Ed,
> when loading a model from the XML Schema some .xsd's are processed(e.g.
> Other.xsd). Some were processed with errors. Some are not even processed.
>
> Some that were processed had errors were of this type:
> Error: XSD: the element urn:<ElementName> may not overlap with another
> element <ElementName2> Line 1178 Column 2
>
> Where <ElemenName> was an element in the shema
>
> For the ones are not processed in the log I get the following type errors
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.inovke0(Native Method)
> ..
> (XSDConcreteCompnentImpl.java:544)
> at org.eclipse.xsd.impl.XSDSchemaImpl.validate(XSDSchemaImpl.ja va:1512)
> at org.eclipse.xsd.ecore.XSDEcoreBuilder.validate
> (XSDEcoreBuilder.java:2023)
> at org.eclipse.xsd.ecore.XSDEcoreBuilder.generate
> (XSDEcoreBuilder.java:1562)
> at org.eclipse.xsd.ecore.XSDEcoreBuilder.generate
> (XSDEcoreBuilder.java:1540)
> ... 43 more
>
> This occurred on several xsd's. Even the xsd's in
> plugins\org.eclipse.xsd.test_2.0.0\test\diagnostics\Okay.xsd
>
> -------------------------------------------------------
> My command line was
> eclipse.exe -vm C:\JBuilder8\jdk1.4\jre\bin\javaw -vmargs
> -Djava.endorsed.dirs=plugins/org.apache.xerces_4.0.13
>
> The -vm was necessary to get the correct virtual machine.
>
> Any ideas????
>
> Ed Merks wrote:
>
> > JD,
>
> > When in doubt, check the workspace/.metadata/.log.
>
> > jdmcduf wrote:
>
> > > Gerhard,
> > > still no luck. How much did you have to tailor the startup line?
> > > Gerhard Wagner wrote:
> > >
> > > > I had the same problem after moving to 2.0 from 1.1,
> > > > make sure that you provide the needed startup property to exclipse.exe as
> > > > described on top of the EMF download page.
> > >
> > > > Additionally, I have to start eclipse.exe from the command line - using a
> > > > desktop link the property got not picked up, but that may be due
> > > > to my lacking windows skills :-))
> > >
> > > > cu
> > > > Gerhard.
> > >
> > > > "jdmcduf" <jdmcduf@nsa.gov> schrieb im Newsbeitrag
> > > > news:c2ng1t$99a$1@eclipse.org...
> > > > > I am getting an error message when reading a schema when I added the
> > > > > pluging for EMF 2.0 and XSD2.0.
> > > > > The error message is
> > > > > Specify a valid XML Schema and try loading again
> > > > >
> > > > > The Schema is valid checked in XMLSpy and also loaded it with EMF 1.1.1
> > > > > and XSD1.1.1
> > > > >
> > > > > Can anyone help?
> > > > >
|
|
|
Powered by
FUDForum. Page generated in 0.03250 seconds