Re: struts-menu-user Digest, Vol 1, Issue 358

"croote croote" <[email protected]> Fri, 23 Jun 2006 10:45:37 +0200
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Hi,
I'm sure it's a ridiculous pb ... but :

My so basic menu-config :

<?xml version="1.0" encoding="UTF-8"?>
<MenuConfig>
    <Displayers>
        <Displayer 	name="TabbedMenu"
  					type="net.sf.navigator.displayer.TabbedMenuDisplayer"/>
	    <Displayer  name="CSSListMenu"
                 type="net.sf.navigator.displayer.CSSListMenuDisplayer"/>
	</Displayers>
    <Menus>
        <Menu 	name="fichier"
				title="menu.fichier"
				description="Recherche de fichiers"
				page="/welcome.do?type=file"/>
	    <Menu 	name="facture"
				title="menu.facture"
				description="Recherche de factures"
				page="/welcome.do?type=fact"/>
        <Menu 	name="parametrage"
				title="menu.parametrage"
				description="Parametrage">
			<Item  title="Paramétrage des alertes"
				   toolTip="Paramétrage des alertes"
				   page="/reportAlerte.do"/>
		</Menu>
     </Menus>
</MenuConfig>


My StackTrace (in order) when i'm deploying :
10:40:46,002 ERROR [Digester.endElement] End event threw exception
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
	at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
	at org.apache.commons.digester.Rule.end(Rule.java:276)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
.............
Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:164)
	at net.sf.navigator.menu.MenuRepository.class$(MenuRepository.java:31)
	at net.sf.navigator.menu.MenuRepository.addMenuDisplayerMapping(MenuRepository.java:164)
	... 172 more
10:40:46,877 ERROR [ContextLoaderPlugIn.init] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'menu' defined in ServletContext resource
[/WEB-INF/action-servlet.xml]: Initialization of bean failed; nested
exception is org.springframework.context.ApplicationContextException:
Failed to initialize Struts Menu repository; nested exception is
javax.servlet.ServletException: Failure initializing struts-menu:
Error parsing resource file: /WEB-INF/menu-config.xml nested exception
is: Error at (5, 63: null
org.springframework.context.ApplicationContextException: Failed to
initialize Struts Menu repository; nested exception is
javax.servlet.ServletException: Failure initializing struts-menu:
Error parsing resource file: /WEB-INF/menu-config.xml nested exception
is: Error at (5, 63: null
javax.servlet.ServletException: Failure initializing struts-menu:
Error parsing resource file: /WEB-INF/menu-config.xml nested exception
is: Error at (5, 63: null
	at net.sf.navigator.menu.MenuLoader.initApplicationContext(MenuLoader.java:63)
	at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:79)

And i want to notice you i'm using Spring. So in my action-servlet i have :
	<bean id="menu" class="net.sf.navigator.menu.MenuLoader">
		<property name="menuConfig">
			<value>/WEB-INF/menu-config.xml</value>
		</property>
	</bean>

As we can see, the velocity context is problematic. I'm not in a
velocity envir. but i don't think to use a particuliar exclusive
feature of this envir.

If you can help me ...

ps : this config work without any pb in 2.3

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 22 Jun 2006 15:56:51 +0200
> From: "croote croote" <[email protected]>
> Subject: [struts-menu] 2.4 menu-config.xml parsing error
> To: struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Message-ID:
>         <8d087f310606220656i579b083dp243bbe915f5d0414-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
> I'm using at this moment struts-menu 2.3 and i would like to chge to
> 2.4 but i have a problem when i'm deploying my webapp.
> A parsing error in menu-config.xml occured ...
> It's a shame cause a like the new cssMenu.
>
> Could you help me ?
>
> Thks
> bye
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 22 Jun 2006 11:05:00 -0600
> From: "Matt Raible" <[email protected]>
> Subject: Re: [struts-menu] 2.4 menu-config.xml parsing error
> To: "General mailing list for Struts Menu"
>         <struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Message-ID:
>         <7feebe1f0606221005j137b2655m5ad04a476941179d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Can you post your menu-config.xml?  I'd like to try it in the sample
> application and see if I can reproduce the problem.  Can you post a
> stack trace or the error you're getting?
>
> Matt
>
> On 6/22/06, croote croote <[email protected]> wrote:
> > Hi,
> > I'm using at this moment struts-menu 2.3 and i would like to chge to
> > 2.4 but i have a problem when i'm deploying my webapp.
> > A parsing error in menu-config.xml occured ...
> > It's a shame cause a like the new cssMenu.
> >
> > Could you help me ?
> >
> > Thks
> > bye
> >
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > struts-menu-user mailing list
> > struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
>
>
>
> ------------------------------
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------
>
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>
> End of struts-menu-user Digest, Vol 1, Issue 358
> ************************************************
>

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642