on 2013 Feb 26 10:14 PM
Hi,
Hope someone can help me with this. I have removed "myaccount" tab from the menuconfig.xml but the myaccount tab still shows up in the application. I have enabled myaccount module in my application but I am assuming if i remove the tab from menuconfig, the myaccount should not show up. I am doing this to test whether the custom menuconfig.xml i have modified is being read or not and it is not. I have changed the menuconfig.xml in my custom main module and also declared it in the metadata.xml in the main md part. My application is running with customer main module namespace. Is there anything else that needs to be done? Attached are my menuconfig and metadata.xml files.
menuConfig.xml:
Thanks,
Sheena
Hi Sheena,
Removing this menu entry for myAccount does not mean that myAccount will be hidden, nor will the myAccount menu button be hidden.
Via not specifiying it in your extension version you somehow state that you don't do changes to this menu button. The idea of this extension mechanism is to just provide the delta between standard and your custom module.
So what you could do to verify that your extension is active:
<MenuConfiguration xmlns:wec="com.sap.wec.core.config">
<wec:ifValue variable="${com.sap.common.Catalog#_ACTIVE_}" value="true">
<Menu name="shop" navigation="toCatalogHomePage" order = "1000" description="custom.resourceKey" />
</wec:ifValue>
</wec:ifValue>
This means that you just exchange the text of one menu button.
Does this help?
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sheena,
You have the main module in your gm namespace I guess, and you are calling the custom app? Then I would recommend the check whether your stuff is deployed. Please check the jars that have been built from your md and ui DC, does this contain the metadata.xml and the menuconfig.xml?
Best regards,
Christoph
Hi Sheena,
did you take a look at the examples provided in the extension guide?
https://service.sap.com/~sapidb/012002523100007004382012E
There you can see how a new menu item is defined.In MAIN_WEC20DEM_D~test~extensibility~mainc~ui~test.sap.com\src\customer\main\ui you can find the menu-config.
Regards,
Elena
Hi Elena,
Thank you very much for those example files... that was extremely helpful. After changing config type in my ui-repository for custom main module from "menuconfig" to "menu-config" and also adding only the extended module to the menuConfig.xml file I get this error when I run the custom application now.
Error:
0 Internal Server Error is returned for HTTP request [http://localhost:50000/gm/main/main/homePage.jsf]:
component [Faces Servlet],
web module [gm/main],
application [gm.com/test~comm~main~leanapp~gm],
DC name [gm.com/test~comm~main~leanapp~gm],
CSN component[],
problem categorization [com.sap.ASJ.web.000137],
internal categorization [1247310970].
[EXCEPTION]
com.sap.wec.tc.core.common.exceptions.WCFBaseRuntimeException: Exception when reading menu-config
at com.sap.wec.tc.core.ui.composition.menu.MenuManagerImpl.<init>(MenuManagerImpl.java:70)
at com.sap.wec.tc.core.runtime.impl.WecApplicationImpl.init(WecApplicationImpl.java:131)
at com.sap.wec.tc.core.runtime.impl.WecApplicationImpl.<init>(WecApplicationImpl.java:115)
at com.sap.wec.tc.core.runtime.impl.WecApplicationFactoryImpl.createWecApplicationObject(WecApplicationFactoryImpl.java:81)
at com.sap.wec.tc.core.runtime.impl.WecApplicationFactoryImpl.getWECApplication(WecApplicationFactoryImpl.java:53)
at com.sap.wec.tc.core.runtime.impl.WecApplicationFactoryImpl.getWECApplication(WecApplicationFactoryImpl.java:68)
at com.sap.wec.tc.core.runtime.impl.WecSessionFactoryImpl.createInstance(WecSessionFactoryImpl.java:41)
at com.sap.wec.tc.core.runtime.RuntimeEnvironment.createWecSession(RuntimeEnvironment.java:123)
at com.sap.wec.tc.core.runtime.impl.WecSessionInitialisation.createSessionObject(WecSessionInitialisation.java:51)
at com.sap.wec.tc.core.filter.SessionInitialisationFilter.createWecSession(SessionInitialisationFilter.java:259)
at com.sap.wec.tc.core.filter.SessionInitialisationFilter.doFilter(SessionInitialisationFilter.java:113)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.wec.tc.core.filter.HttpsSwitchFilter.doFilter(HttpsSwitchFilter.java:136)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.wec.tc.core.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:56)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: com.sap.wec.tc.core.configuration.ConfigurationException: Error retrieveing configuration container [key]='599E586F359E4D4FB5050360CF5F7E8F' Error merging documents [alias]='menu-config'.: Error loading document [path]='gm/main/ui/menuConfig.xml'
at com.sap.wec.tc.core.configuration.ConfigContainer.throwMergeDocumentsException(ConfigContainer.java:970)
at com.sap.wec.tc.core.configuration.ConfigContainer.getMergedDocument(ConfigContainer.java:490)
at com.sap.wec.tc.core.configuration.ConfigContainer.getMergedFiles(ConfigContainer.java:294)
at com.sap.wec.tc.core.configuration.ConfigContainer.getConfigFile(ConfigContainer.java:168)
at com.sap.wec.tc.core.ui.composition.menu.MenuManagerImpl.<init>(MenuManagerImpl.java:63)
... 52 more
Caused by: com.sap.wec.tc.core.configuration.ConfigurationException: Error loading document [path]='gm/main/ui/menuConfig.xml'
at com.sap.wec.tc.core.configuration.files.ConfigLoader.loadSingleDocument(ConfigLoader.java:113)
at com.sap.wec.tc.core.configuration.ConfigContainer.readDocument(ConfigContainer.java:863)
at com.sap.wec.tc.core.configuration.ConfigContainer.mergeDocumentForObject(ConfigContainer.java:536)
at com.sap.wec.tc.core.configuration.ConfigContainer.getMergedDocument(ConfigContainer.java:437)
... 55 more
Caused by: com.sap.wec.tc.core.configuration.xml.XIncludeProcessor$XIncludeException: Exception while parsing uri [uri]='gm/main/ui/menuConfig.xml':Premature end of file.
at com.sap.wec.tc.core.configuration.xml.XIncludeProcessor.parse(XIncludeProcessor.java:752)
at com.sap.wec.tc.core.configuration.files.ConfigLoader.loadSingleDocument(ConfigLoader.java:73)
... 58 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:131)
at com.sap.wec.tc.core.configuration.xml.XIncludeProcessor.parseDoc(XIncludeProcessor.java:245)
at com.sap.wec.tc.core.configuration.xml.XIncludeProcessor.parse(XIncludeProcessor.java:741)
... 59 more
Its not clear to me from the error what is wrong. It throws that error regardless of the content that I put in menuConfig.xml (I tried deleting everything in the file).
Thanks,
Sheena
User | Count |
---|---|
31 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.