And this is what I get as Error when I do it from the Eclipse Plug-in

===
Could not write property: com.pnehrer.castor generated.
org.eclipse.core.internal.resources.ResourceException: Could not delete from
indexed store:
D:\EnvDevGutenberg\eclipse\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\COMMUNS\.properties.
org.eclipse.core.internal.properties.IndexedStoreWrapper.removeObject(IndexedStoreWrapper.java:201)
org.eclipse.core.internal.properties.PropertyStore.basicUpdate(PropertyStore.java:100)
org.eclipse.core.internal.properties.PropertyStore.commonSet(PropertyStore.java:120)
org.eclipse.core.internal.properties.PropertyStore.set(PropertyStore.java:455)
org.eclipse.core.internal.properties.PropertyManager.setProperty(PropertyManager.java:244)
org.eclipse.core.internal.resources.Resource.setPersistentProperty(Resource.java:1284)
com.pnehrer.castor.OutputMonitor.writeGenerated(OutputMonitor.java:281)
com.pnehrer.castor.OutputMonitor.access$5(OutputMonitor.java:270)
com.pnehrer.castor.OutputMonitor$1.run(OutputMonitor.java:150)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
===

Fady

----- Original Message ----- From: "Stephen Winnall" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, September 16, 2005 3:30 PM
Subject: Re: [castor-user] "SomeClass extends SomeClass" Problem


You don't have to have a binding file: it was only a possible reason
for your error.

I just took your schema and ran it through Castor under Eclipse on my
machine.
The class Definition came out as I would expect:

public class Definition implements java.io.Serializable {
...
}

I guess from the version number you gave originally that you are
using the Castor
Plugin for Eclipse. If this is the case, open the "External Tools"
dialogue and look
at all the parameters. Perhaps there's something there that's not right.

Steve

On 16 Sep 2005, at 13:52, Fady Kaddoum wrote:

Actually I don't have any binding file!

Am I obliged to have one? I have 10 to 15 other XSDs, and all Java Classes were generated fine without a binding file! The problem arises only with this specific XSD!

Fady

----- Original Message ----- From: "Stephen Winnall"  <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, September 16, 2005 1:41 PM
Subject: Re: [castor-user] "SomeClass extends SomeClass" Problem


Is there is a binding file which contains something like this?

    <complexTypeBinding name="Definition">
        <java-class xmlns="view">
            <extends>Definition</extends>
        </java-class>
    </complexTypeBinding>

If you change "<extends>Definition</extends>" to the name of the
class you
want Definition to be a subclass of, all should be well.

Regards
Steve



-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to