Ok, I took my generated Castor classes (1.0M4 build). I built a small test program that would build up a VERY simple document using the classes, and then try to write out the XML for it.

When I run I get the following error:

Exception in thread "main" java.lang.NoSuchMethodError: generated.goal.Mission.setStatus(Lgenerated/shared/types/Statustypes;)V
       at WriterTester.<init>(WriterTester.java:30)
       at WriterTester.main(WriterTester.java:73)
Java Result: 1


Here's my line of code:

   Mission missiondoc = new Mission();
   missiondoc.setId("mymission");
   missiondoc.setStatus(Statustypes.valueOf("planned"));

(Note, I get the same error even if I use the following line instead of the last one:)

   missiondoc.setStatus(Statustypes.PLANNED);



When I look in the generated java code for Mission I see:
/**
    * Sets the value of field 'status'.
    *
    * @param status the value of field 'status'.
    */
   public void setStatus(generated.shared.types.Statustypes status)
   {
       this._status = status;
   } //-- void setStatus(generated.shared.types.Statustypes)


Why can't it find it?!??! Both classes are in the classpath. I'm getting pretty annoyed and frustrated here!

HELP!
--Mike




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

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

Reply via email to