X-Application Version : 3.1.1
Tamino Version : 3.1.1.1
Platform : NT
WebContainer : Tomcat 4.0
JDK Version : 1.3.1_01
Question:
I have a Tamino collection containing two doctypes. Element “custname” appears in both doctypes in the schema. If I try to generate an X-Application for either doctype, I get the following exception. Can this by bypassed in any way?
Exception:
code:
D:\xapplication_311\examples\generator>generateresreq
X-Application Generator generate
[ConfigContainer] reading D:\jakarta-tomcat-4.0.1\webapps\resreqgen\config.xml
[ConfigContainer] done reading D:\jakarta-tomcat-4.0.1\webapps\resreqgen\config.xml
[ConfigContainer] reading D:\jakarta-tomcat-4.0.1\webapps\resreqgen\WEB-INF\web.xml
[ConfigContainer] done reading D:\jakarta-tomcat-4.0.1\webapps\resreqgen\WEB-INF\web.xml
[ConfigContainer] …TAMINO_URL found!
[ConfigContainer] …TAMINO_COLLECTION1 found!
[Generator] Initializing Generator!
[Generator] Reading Schema!
Exception in thread “main” InvalidSchemaException: duplicate element decl: custname
com.softwareag.xtools.xapplication.businessdocument.InvalidSchemaException
duplicate element decl: custname
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:373)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.addElementDecls(Schema.java:379)
at com.softwareag.xtools.xapplication.businessdocument.Schema.(Schema.java:358)
at com.softwareag.xtools.xapplication.businessdocument.Schema.read(Schema.java:156)
at com.softwareag.xtools.xapplication.generator.Generator.readSchema(Generator.java:604)
at com.softwareag.xtools.xapplication.generator.Generator.(Generator.java:267)
at com.softwareag.xtools.xapplication.generator.Generate.process(Generate.java:95)
at com.softwareag.xtools.xapplication.generator.Generate.main(Generate.java:62)