Repository Form Handler : File contains duplicate definition of item-descriptor

623 views
Skip to first unread message

deepa...@gmail.com

unread,
Jan 29, 2011, 7:17:00 AM1/29/11
to ATG_Tech
We are getting the below exception when we submit a form using the
repository form handler:We checked the combined xml using component
browser, but there is only one xml file. However we are able to add
data through ACC, but not thru program. Any pointers to this issue is
highly appreciated.

ERROR [nucleusNamespace.heb.template.FormTemplateRepository] Error
parsing template: atg.repository.RepositoryException: File contains
duplicate definition of item-descriptor formTemplate

atg.repository.RepositoryException: File contains duplicate definition
of item-descriptor formTemplate
at
atg.adapter.gsa.xml.TemplateParser.addDocumentToTemplate(TemplateParser.java:
701)
at
atg.adapter.gsa.xml.TemplateParser.addToTemplate(TemplateParser.java:
529)
at
atg.adapter.gsa.xml.TemplateParser.addToTemplate(TemplateParser.java:
421)
at
atg.adapter.gsa.GSARepository.parseFirstPass(GSARepository.java:6208)
at
atg.adapter.gsa.GSARepository.readXMLFiles(GSARepository.java:6140)

Thanks.

janijoeli

unread,
Jan 29, 2011, 9:25:32 AM1/29/11
to ATG_Tech
Search the repository definition XML file for "formTemplate" manually,
e.g. using a text editor. To me that error looks like you have two
item-descriptors for "formTemplate" within a single XML file.

Regards,
Jani


On Jan 29, 12:17 pm, "deepama...@gmail.com" <deepama...@gmail.com>
wrote:

deepa...@gmail.com

unread,
Jan 29, 2011, 9:34:30 AM1/29/11
to ATG_Tech
Thanks janijoeli for your reply.

We searched for the duplicate item-descriptor, but we couldn't find
any. Also we are able to add data through ACC, though it is not
working programatically.

Any other possibilities. We enabled debug also, but this is the only
exception that we are getting?

-Deepa
> > Thanks.- Hide quoted text -
>
> - Show quoted text -

Naga

unread,
Jan 29, 2011, 9:51:32 AM1/29/11
to atg_...@googlegroups.com
Go to dyn/admin and access the Template definition for the repository ..by clicking on the Examine Template Definition link and attach the content in your next email

-Naga

On Sat, Jan 29, 2011 at 8:10 PM, Pavithra Atrangada <pavit...@gmail.com> wrote:
Check your locaconfig for the file?

Thanks
Pavithra
> --
> You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
> To post to this group, send email to atg_...@googlegroups.com
> To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en

--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en

deepa...@gmail.com

unread,
Jan 29, 2011, 11:22:36 AM1/29/11
to ATG_Tech
Please find below the repository definition file from dyn/admin

CONFIGPATH filename /mymodule/template/formTemplate.xml
Source files /appl/ecomm/tmp/deploy/tmp363490744456968571MyModule.ear-
contents/atg_bootstrap-exp.war/WEB-INF/ATG-INF/MyModule/Data/config/
mymodule/template/formTemplate.xml

System Id (DTD name) http://www.atg.com/dtds/gsa/gsa_1.0.dtd
XML value <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE gsa-template SYSTEM "dynamosystemresource:/atg/dtds/gsa/
gsa_1.0.dtd">

<gsa-template>
<header>
<name>Form Template Repository</name>
<author/>
</header>

<item-descriptor expert="false" writable="true" id-separator=":"
display-name="Form Template" hidden="false" display-property="name"
cache-mode="simple" content="false" default="true" use-id-for-
path="false" folder="false" name="formTemplate">
<attribute value="last" name="cascadeDeleteOrder"/>

<table type="primary" id-column-name="frm_template_id" shared-
table-sequence="1" name="form_template">
<property expert="false" readable="true" writable="true"
required="false" display-name="id" hidden="false" column-
name="frm_template_id" cache-mode="inherit" data-type="string"
name="id" queryable="true">
<attribute value="-25" name="propertySortPriority"/>
<attribute value="false" name="uiwritable"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="Name" hidden="false" column-name="name"
cache-mode="inherit" data-type="string" name="name" queryable="true">
<attribute value="10" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="Address" hidden="false" column-
name="addr" cache-mode="inherit" data-type="string" name="address"
queryable="true">
<attribute value="20" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="City" hidden="false" column-name="city"
cache-mode="inherit" data-type="string" name="city" queryable="true">
<attribute value="30" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="Zip code" hidden="false" column-
name="zip_code" cache-mode="inherit" data-type="string" name="zipcode"
queryable="true">
<attribute value="40" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="Store" hidden="false" column-
name="store" cache-mode="inherit" data-type="string" name="store"
queryable="true">
<attribute value="80" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="Dynamic Property" hidden="false" column-
name="dyn_prprty" cache-mode="inherit" data-type="string"
name="dynProperty" queryable="true">
<attribute value="90" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="true" display-name="Dynamic Property Value" hidden="false"
column-name="dyn_prprty_value" cache-mode="inherit" data-type="big
string" name="dynPropertyValue" queryable="true">
<attribute value="100" name="propertySortPriority"/>
</property>
<property expert="false" readable="true" writable="true"
required="false" display-name="Created On" hidden="false" column-
name="crtd_on" cache-mode="inherit" data-type="string"
name="createDate" queryable="true">
<attribute value="110" name="propertySortPriority"/>
</property>
</table>
</item-descriptor>
</gsa-template>
<!-- result of combining:
/appl/ecomm/tmp/deploy/tmp363490744456968571MyModule.ear-contents/
atg_bootstrap-exp.war/WEB-INF/ATG-INF/MyModule/Data/config/mymodule/
template/formTemplate.xml
-->


Naga

unread,
Jan 29, 2011, 1:46:30 PM1/29/11
to atg_...@googlegroups.com
Do you have a config.jar and an extracted config folder in your config path by any chance? So your repository starts up properly even after you see the startup error?

When you clicked on the Examine Template repository definition, you would seen a few paths from where your repository definition xmls were combined, can you look at that and see if there is an entry that you do not expect to be present there?

-Naga

Kiran Kumar Rapelly

unread,
Jan 29, 2011, 2:00:51 PM1/29/11
to atg_...@googlegroups.com
Navigate to the repository component in the dyn admin console and
click on the 'View Service Configuration' and verify the XML in all
the resolved layers, you would find a duplicate deifinition.

--

Regards
Kiran Kumar Rapelly
(M) +91- 9741 200 822

ganesh karthik

unread,
Jan 30, 2011, 11:14:05 PM1/30/11
to atg_...@googlegroups.com
Hi deepa manoj,
 
The error states that there is duplicate definition of item-descriptor. But i guess you are checking for duplicate xml file.
 
Check whether you defined two item-descriptor with the same name. Also check the server start-up log. for error on the same.

On Sat, Jan 29, 2011 at 5:47 PM, deepa...@gmail.com <deepa...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en



--
Thanks,
Ganesh Karthik. C

Reply all
Reply to author
Forward
Message has been deleted
0 new messages