Re: help: error in parsing menu-config.xml after upgrading to 2.4
"Matt Raible" <[email protected]> Fri, 19 May 2006 22:59:50 -0600
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
Do you have other Velocity JARs in your classpath? Do you have duplicate JARs in your WEB-INF/lib directory? Matt On 5/19/06, Pallavi Nagboth <pnagboth-/[email protected]> wrote: > > Hi, > > After upgrading to Struts-menu 2.4, I am getting the following error, even > though I have velocity.jar and velocity-tools-view.jar in place. > > Can somebody please help me. > > Thanks, > Pallavi > > 2006-05-19 15:03:09,343 ERROR [Main Thread] displayer.VelocityMenuDisplayer > (VelocityMenuDisplayer.java:76) - Error initializing Velocity: Problem > initializing template loader: > org.apache.velocity.tools.view.servlet.WebappLoader > Error is: java.lang.ClassNotFoundException: > org.apache.velocity.tools.view.servlet.WebappLoader > at > java.lang.Class.forName(Ljava/lang/String;I)Ljava/lang/Class;(Unknown > Source) > at > org.apache.velocity.runtime.resource.loader.ResourceLoaderFactory.getLoader(Lorg/apache/velocity/runtime/RuntimeServices;Ljava/lang/String;)Lorg/apache/velocity/runtime/resource/loader/ResourceLoader;(ResourceLoaderFactory.java:41) > at > org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(Lorg/apache/velocity/runtime/RuntimeServices;)V(ResourceManagerImpl.java:142) > at > org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager()V(RuntimeInstance.java:522) > at > org.apache.velocity.runtime.RuntimeInstance.init()V(RuntimeInstance.java:227) > at > org.apache.velocity.runtime.RuntimeInstance.init(Ljava/util/Properties;)V(RuntimeInstance.java:461) > at > org.apache.velocity.runtime.RuntimeSingleton.init(Ljava/util/Properties;)V(RuntimeSingleton.java:208) > at > org.apache.velocity.app.Velocity.init(Ljava/util/Properties;)V(Velocity.java:106) > > > > > lixin chu <lixin_chu-/[email protected]> wrote: > > that's strange. i do not use velocity and i removed > the displayer. but i remember i saw classnotfound > error in my log file. > > i should test it again. > > --- Matt Raible wrote: > > > > On 5/13/06, lixin chu wrote: > > > fixed: did not realize that velocity jar is > > required > > > now. > > > > It shouldn't be required if you're not using a > > VelocityMenuDisplayer. > > > > Matt > > > > > > > > --- lixin chu wrote: > > > > > > > Hi, > > > > I got an error message after upgrading to > > > > Struts-menu > > > > 2.4: > > > > > > > > Error parsing resource file: > > > > /WEB-INF/menu-config.xml > > > > nested exception is: Error at line 7 char 75: > > null > > > > > > > > same error after trying the sample > > menu-config.xml > > > > in > > > > .war file. I am also using > > commons-digest-1.7.jar. > > > > > > > > The line 7 is this: > > > > > > > > > > type="net.sf.navigator.displayer.DropDownMenuDisplayer"/> > > > > char 75 is the end of the line. > > > > > > > > what's the problem ? > > > > > > > > thanks ! > > > > lixin > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam > > > > protection around > > > > http://mail.yahoo.com > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > 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&kid0709&bid&3057&dat1642 > > _______________________________________________ > > struts-menu-user mailing list > > struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > 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 > > > > > ________________________________ > Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! > Messenger with Voice > > ------------------------------------------------------- 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&kid0709&bid&3057&dat1642