webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

local element ambiguous error on Create

  • 1.  local element ambiguous error on Create

    Posted Mon August 18, 2003 10:09 AM

    X-Application Version: 4.1.1
    Tamino Version : 4.1.4.1
    Platform : WinXP
    WebContainer : Tomcat 4.1.24
    JDK Version : 1.4.1

    Schema loaded, sample document loaded and now XApplication generated. Cannot get to the “Create” page as I get an error:
    Error message: internal error
    Help message:
    Exception id: 999
    Exception Type: ApplicationException
    Stacktrace:


    XException: id = 999
    com.softwareag.xtools.xapplication.common.AssertionFailed
    invalid schema: local element ambiguous: AddressInfo
    at com.softwareag.xtools.xapplication.schema.Schema.lookupElementLocal(Schema.java:380)
    at com.softwareag.xtools.xapplication.businessdocument.BusinessDocument.getElementDeclaration(BusinessDocument.java:725)
    at com.softwareag.xtools.xapplication.businessdocument.BusinessDocument.getElementNode(BusinessDocument.java:697)
    at com.softwareag.xtools.xapplication.businessdocument.BusinessDocument.getBusinessNode(BusinessDocument.java:668)
    etc…etc…

    Can somebody please tell me what is wrong!

    tsd schema and sample xml document attached
    sample.xml (3.54 KB)


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: local element ambiguous error on Create

    Posted Mon August 18, 2003 10:10 AM

    tsd file didn’t get attached
    sample.tsd (9.74 KB)


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: local element ambiguous error on Create

    Posted Mon August 18, 2003 10:49 AM

    Hello,

    I had a look at your schema. You have two element definitions for ‘AddressInfo’ within your schema.

    1) Element defintion ‘abc’ contains a defintion for ‘AddressInfo’

    2) Element defintion ‘abc.CompaniesRepresent.Company’ contains a defintion for ‘AddressInfo’.

    X-Application does not support different element defintions with the same name within the schemas of an application.

    You could rename the ‘AddressInfo’ elements into
    ‘AddressInfo2’ and ‘AddressInfo4’ depending on the maximal entries of ‘Address’ it can have.

    I made this change within the attached TSD file. Please have a look at it because I defined also a ‘global’ Address element that is referenced by the two ‘AddressInfo’ definitions. Otherwise, you had the same ambiguity with ‘Address’.

    Currently, I don’t know another workaround for you problem.

    Bye,
    Christian.
    sample.xml (9.74 KB)


    #Tamino
    #API-Management
    #webMethods


  • 4.  RE: local element ambiguous error on Create

    Posted Mon August 18, 2003 11:30 AM

    Thankyou for this - I can now get to the create screen.


    #webMethods
    #API-Management
    #Tamino