Ok, I've not tried command prompt (I just want to use it in eclipse..)

I've downloaded xerces 1.4.4, but this does not help.

However it does use the xerces parser, because now the xerces parser throws the 
same error :





Buildfile: d:androbuild.xml

mda:

 [andromda] INFO  [sax] 
org.apache.xerces.jaxp.SAXParserImpl: 
http://java.sun.com/xml/jaxp/properties/schemaLanguage not supported.

 [andromda] WARN  [XmlObjectFactory] WARNING! Your 
parser does NOT support the  schema validation continuing in non 
validation mode

 [andromda] org.xml.sax.SAXNotRecognizedException: 
http://java.sun.com/xml/jaxp/properties/schemaLanguage

 [andromda] at 
org.apache.xerces.framework.XMLParser.setProperty(XMLParser.java:1714)

 [andromda] at 
org.apache.xerces.parsers.SAXParser.setProperty(SAXParser.java:770)

 [andromda] at 
org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:190)

 [andromda] at 
org.apache.commons.digester.Digester.setProperty(Digester.java:735)

 [andromda] at 
org.andromda.core.common.XmlObjectFactory.setValidating(XmlObjectFactory.java:174)

 [andromda] at 
org.andromda.core.common.XmlObjectFactory.getInstance(XmlObjectFactory.java:111)

 [andromda] at 
org.andromda.core.configuration.Configuration.getInstance(Configuration.java:67)

 [andromda] at 
org.andromda.core.AndroMDA.run(AndroMDA.java:91)

 [andromda] at 
org.andromda.ant.task.AndroMDAGenTask.execute(AndroMDAGenTask.java:77)

 [andromda] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

 [andromda] at 
org.apache.tools.ant.Task.perform(Task.java:364)

 [andromda] at 
org.apache.tools.ant.Target.execute(Target.java:341)

 [andromda] at 
org.apache.tools.ant.Target.performTasks(Target.java:369)

 [andromda] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

 [andromda] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)

 [andromda] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

 [andromda] at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

 [andromda] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)

 [andromda] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)

 [andromda] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

 [andromda] ERROR [Digester] Parse Error at line 1 column 
11: Element type "andromda" must be declared.

 [andromda] org.xml.sax.SAXParseException: Element type 
"andromda" must be declared.

 [andromda] at 
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)

 [andromda] at 
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1807)

 [andromda] at 
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:3633)

 [andromda] at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1229)

 [andromda] at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:938)

 [andromda] at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

 [andromda] at 
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)

 [andromda] at 
org.apache.commons.digester.Digester.parse(Digester.java:1610)

 [andromda] at 
org.andromda.core.common.XmlObjectFactory.getObject(XmlObjectFactory.java:242)

 [andromda] at 
org.andromda.core.configuration.Configuration.getInstance(Configuration.java:67)

 [andromda] at 
org.andromda.core.AndroMDA.run(AndroMDA.java:91)

 [andromda] at 
org.andromda.ant.task.AndroMDAGenTask.execute(AndroMDAGenTask.java:77)

 [andromda] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

 [andromda] at 
org.apache.tools.ant.Task.perform(Task.java:364)

 [andromda] at 
org.apache.tools.ant.Target.execute(Target.java:341)

 [andromda] at 
org.apache.tools.ant.Target.performTasks(Target.java:369)

 [andromda] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

 [andromda] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)

 [andromda] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

 [andromda] at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

 [andromda] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)

 [andromda] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)

 [andromda] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)



BUILD FAILED

D:androbuild.xml:316: 
org.andromda.core.common.XmlObjectFactoryException: VALIDATION FAILED for 
--> '<andromda>

&nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="xmlValidation">false</property> 

&nbsp; &nbsp; &nbsp; &nbsp; <property name="modelValidation">true</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="cartridgeFilter"></property>

&nbsp; &nbsp; </properties>

&nbsp; &nbsp; <models>

&nbsp; &nbsp; &nbsp; &nbsp; <model>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<uri>file&#58;/d&#58;/andro/src/java/conf/CRUDModel.xml.zip!/CRUDModel.xml</uri>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <moduleSearchLocations>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<location>D&#58;/andromda-bin-3.1-M1/andromda/xml.zips</location>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </moduleSearchLocations>

&nbsp; &nbsp; &nbsp; &nbsp; </model>

&nbsp; &nbsp; </models>

&nbsp; &nbsp; <namespaces>

&nbsp; &nbsp; &nbsp; &nbsp; <namespace name="default">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="languageMappingsUri">Java</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="wrapperMappingsUri">JavaWrapper</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="sqlMappingsUri"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="jdbcMappingsUri">JDBC</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="maxSqlNameLength">30</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="foreignKeySuffix">_FK</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="ejbJndiNamePrefix"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- used in both 
hibernate and spring cartridges -->

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateVersion">3</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>

&nbsp; &nbsp; &nbsp; &nbsp; <namespace name="spring">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="dataSource"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="sessionFactory">org.springframework.orm.hibernate3.LocalSessionFactoryBean</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateDialect"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateShowSql"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateInheritanceStrategy"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateCacheProvider">org.hibernate.cache.EhCacheProvider</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="transactionManager">org.springframework.orm.hibernate3.HibernateTransactionManager</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="springTypesPackage"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="daos"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="dao-impls"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="spring-configuration"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="services"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="service-impls"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>

&nbsp; &nbsp; &nbsp; &nbsp; <namespace name="hibernate">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateTypeMappingsUri">Hibernate</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateInheritanceStrategy"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="defaultHibernateGeneratorClass"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateDefaultCascade">none</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="entities"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="entity-impls"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="customTypesPackage"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="compositionDefinesEagerLoading">true</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>

&nbsp; &nbsp; &nbsp; &nbsp; <namespace name="java">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="enumerations"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="exceptions"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="value-objects"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>

&nbsp; &nbsp; &nbsp; &nbsp; <namespace name="bpm4struts">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="forms"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="pages"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="actions"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="controllers"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="controller-impls"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="decorators"></property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="messages">/WEB-INF/classes</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="configuration">/WEB-INF</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="security">false</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="securityRealm">other</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="serviceAccessorPattern">&#40;&#41;</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="manageableServiceAccessorPattern">&#40;&#41;</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>

&nbsp; &nbsp; </namespaces>

</andromda>

' against SCHEMA --> 
'jar&#58;file&#58;/D&#58;/andro/lib/andromda-core-3.1-M1.jar!/org/andromda/core/configuration/Configuration.xsd'
 --> message&#58; 'Element type "andromda" must be declared., line&#58; 1, 
column&#58; 11'



Total time&#58; 5 seconds









By the way. This is how I call the Task in Ant. 

Isn't there a property here that says not to validate the xml. 





&nbsp; &nbsp;<property name="gen.src.dir" location="src/gen"/>

&nbsp; &nbsp;

&nbsp; &nbsp;<target name="mda">

&nbsp; &nbsp;&nbsp; &nbsp; <taskdef name="andromda" 
classname="org.andromda.ant.task.AndroMDAGenTask" 

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;classpathref="project.class.path"/>

&nbsp; &nbsp;&nbsp; &nbsp; <andromda 
configurationUri="file&#58;$&#123;conf.dir&#125;/andromda.xml"/>

&nbsp; &nbsp;</target>


_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3382#3382
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to