Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSD 2.0
XSD 2.0 [message #382852] Wed, 10 March 2004 16:34 Go to next message
Eclipse UserFriend
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 #382853 is a reply to message #382852] Wed, 10 March 2004 17:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gerhard.wagner.iternum.com

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?
>
Re: XSD 2.0 [message #382854 is a reply to message #382853] Wed, 10 March 2004 18:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jdmcduf.nsa.gov

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?
> >
Re: XSD 2.0 [message #382855 is a reply to message #382854] Wed, 10 March 2004 19:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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?
> > >


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XSD 2.0 [message #382856 is a reply to message #382854] Wed, 10 March 2004 20:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gerhard.wagner.iternum.com

"jdmcduf" <jdmcduf@nsa.gov> schrieb im Newsbeitrag
news:c2no9q$kf0$1@eclipse.org...
> Gerhard,
> still no luck. How much did you have to tailor the startup line?

My startup line is as follows ("Programme" equals "Program Files"):

C:\Programme\eclipse-3.0M6\eclipse.exe -vmargs -Djava.endorsed.dirs=c:\Progr
amme\eclipse-3.0M6\plugins\org.apache.xerces_4.0.13

(I use a desktop reference and fully qualified paths, to be able to choose
different workspaces by changing the
field "execute in".)

Gerhard.
Re: XSD 2.0 [message #382857 is a reply to message #382855] Wed, 10 March 2004 21:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: servaas.van.der.heijden.ict.nl

JD,

I got the same error message when I moved to 2.0. The message has no
relation with the provided xsd file, it's caused by a bug in the default
Crimson DOM implementation.

The next workaround is also described at the EMF download page:

The Crimson DOM implementation in (some versions of) the Sun JDK has
bug in the implementation of hasAttributeNS which manifests itself as
a null pointer exception when importing a model from XML Schema. Use
the following to control the JAXP implementation:

D:\applications\Development\eclipse3M6\eclipse.exe -vmargs
-Djava.endorsed.dirs=plugins/org.apache.xerces_4.0.13

After creating a desktop shortcut with this command everything worked OK.

Success!

Servaas


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?
>>>>
>
>
Re: XSD 2.0 [message #382862 is a reply to message #382855] Thu, 11 March 2004 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jdmcduf.nsa.gov

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?
> > > >
Re: XSD 2.0 [message #382865 is a reply to message #382862] Thu, 11 March 2004 14:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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?
> > > > >


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EClass and EFactory as objects in an EMF resource
Next Topic:New type hierarchy
Goto Forum:
  


Current Time: Fri Apr 26 12:47:12 GMT 2024

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

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

Back to the top