All,
I'm having problems inserting a new menu item into the menu bar of Webtop 6.5 SP2. I've created the following menubar_modification.xml file and placed it in the custom/config folder.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config version="1.0">
<scope>
<menuconfig modifies="doc_vdm_submenu:webcomponent\config\library\menubar\menubar_component.xml">
<insertafter path="menuconfig.menu[name=doc_vdm].filter.actionmenuitem[name=doc_vdm_save_changes]">
<actionmenuitem dynamic="multiselect" action="cancelcheckout" nlsid="MSG_CANCEL_CHECKOUT" showifdisabled="true" showifinvalid="false"/>
</insertafter>
</menuconfig>
</scope>
</config>
The problem appears to be the insertafter line. I have tried various entries here but always get error messages as below in the stdout when Tomcat is restarted
12:32:37,121 ERROR [Thread-1] com.documentum.web.common.Trace - An error occurred during application intialization : Can't locate a unique child element with path: menuconfig.menu[name=doc_vdm].filter.actionmenuitem[name=doc_vdm_save_changes] in: (C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\webtop/webcomponent/config/library/menubar/menubar_component.xml)config[version=1.0].scope[application=webcomponent,version=latest].menuconfig[id=doc_vdm_submenu,version=latest].
The path is specified by: (C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\webtop/custom/config/menubar_modification.xml)config[version=1.0].scope[application=custom].menuconfig[modifies=doc_vdm_submenu:webcomponent\config\library\menubar\menubar_component.xml].insertafter[path=menuconfig.menu[name=doc_vdm].filter.actionmenuitem[name=doc_vdm_save_changes]]
java.lang.IllegalStateException: Can't locate a unique child element with path: menuconfig.menu[name=doc_vdm].filter.actionmenuitem[name=doc_vdm_save_changes] in: (C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\webtop/webcomponent/config/library/menubar/menubar_component.xml)config[version=1.0].scope[application=webcomponent,version=latest].menuconfig[id=doc_vdm_submenu,version=latest].
The path is specified by: (C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\webtop/custom/config/menubar_modification.xml)config[version=1.0].scope[application=custom].menuconfig[modifies=doc_vdm_submenu:webcomponent\config\library\menubar\menubar_component.xml].insertafter[path=menuconfig.menu[name=doc_vdm].filter.actionmenuitem[name=doc_vdm_save_changes]]
The file that I am trying to modify, webcomponent\config\library\menubar\menubar_component.xml, is the standard out of the box version.
Regards
Andy