Sory for this, I had forgotten the xmlns:castor="castor" Now I get another error when running the Castor generator :
castor:prepare-filesystem: [echo] Generating sources for D:\eclipse\workspace\crbt-metier\src\schemas\add_group_response.xsd -- Suppressing non fatal warnings. -- Disabling generation of Marshalling framework methods (marshall, unmarshall, validate). BUILD FAILED File...... C:\Documents and Settings\ndeloof\.maven\cache\maven-castor-plugin-1.2\plugin.jelly Element... ant:java Line...... 92 Column.... 38 java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl Total time: 6 seconds Any idea ? Notice I use SUN jdk 1.4.2 and that I can run the generator from command line without troubles. Nico. > Hi, > > can someone help me using castor plugin ? > > I've added this in my maven.xml : > > <attainGoal name="castor:prepare-filesystem"/> > <castor:generate schema="${schema}" package="${package}" marshal="false"/> > > And I get : > SAXParseException: The prefix "castor" for element "castor:generate" is not bound. > > What did I miss ? > > Nico. Our name has changed. Please update your address book to the following format: "[EMAIL PROTECTED]". This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]