Re: Trouble Installing - XML Parse Error?
Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
What version of Struts Menu are you using? Does this happen with 2.3? If so, is there any way to zip up your project and send it to me (with instructions to reproduce)? dropload.com works well for this. Matt Tim Christopher wrote: >Hi, > >Cheers for the reply. The file contents is shown below: > >struts-config.xml [extract] >-------------------------------------- > <!-- ========== Struts Menu Plug-in ================ --> > <plug-in className="net.sf.navigator.menu.MenuPlugIn"> > <set-property property="menuConfig" value="/WEB-INF/menu-config.xml"/> > </plug-in> > > >JSP Code (one tile of many) >------------------------------------------ ><%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %> > ><script language="javascript" >src="/Web_Module/assets/scripts/struts-menu/coolmenus3.js" >type="text/javascript"></script> ><script language="javascript" >src="/Web_Module/assets/scripts/struts-menu/coolmenu-config.js" >type="text/javascript"></script> > ><menu:useMenuDisplayer name="CoolMenu"> > <menu:displayMenu name="MenuFile"/> ></menu:useMenuDisplayer> > > >Note >-------- >menu-config.xml and errors generated same as in previous post. > > >On Tue, 15 Feb 2005 08:17:40 -0700, Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]> wrote: > > >>What's your plugin configuration look like? Also, please post your >>JSP. It looks like it's puking on the XML declaration at the top, but >>mine looks similar: >> >><?xml version="1.0" encoding="UTF-8"?> >> >>Matt >> >>On Feb 14, 2005, at 11:59 AM, Tim Christopher wrote: >> >> >> >>>Hi, >>> >>>I've noticed a few people have had this error in the past, but I >>>cannot find a solution for it anywhere :o( >>> >>>My menu-config.xml file looks like this: >>> >>><?xml version="1.0" encoding="UTF-8" ?> >>><MenuConfig> >>> <Displayers> >>> <Displayer name="CoolMenu" >>>type="net.sf.navigator.displayer.CoolMenuDisplayer"/> >>> </Displayers> >>> <Menus> >>> <Menu name="MenuFile" title="Contact"> >>> <Item name="phone" title="Phone" location="?Phone"/> >>> </Menu> >>> </Menus> >>></MenuConfig> >>> >>> >>> >>>If I remove the Item tag then a menu bar appears with one heading, >>>which is "???en_GB.Contact???"; this heading does nothing when you >>>click on it. >>> >>>If I leave the menu-config.xml file as shown above the page does not >>>load at all; instead it produces the following error message: >>> >>>HTTP Status 500 - >>>Exception: >>>javax.servlet.ServletException: Exception forwarding for name about: >>>javax.servlet.ServletException: Failure initializing struts-menu: >>>Error parsing resource file: >>>/WEB-INF/resources/xml/config/menu-config.xml nested exception is: The >>>processing instruction target matching "[xX][mM][lL]" is not allowed. >>>org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon >>>textImpl.java:825) >>> <snip /> >>> >>>Root Cause: >>>javax.servlet.jsp.JspException: Exception forwarding for name about: >>>javax.servlet.ServletException: Failure initializing struts-menu: >>>Error parsing resource file: >>>/WEB-INF/resources/xml/config/menu-config.xml nested exception is: The >>>processing instruction target matching "[xX][mM][lL]" is not allowed. >>>org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java: >>>127) >>> <snip /> >>> >>>As far as I can tell there is nothing wrong with the format of my xml >>>file (though I cannot find a dtd for it). >>> >>>If anyone recognises this error and can help point me in the right >>>direction then it would be much appreciated. >>> >>>Tim Christopher >>> >>> >>> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click