java.lang.reflect.InvocationTargetException

AppFuse JIRA | Tony Ugando | 1 decade ago
  1. 0

    I get the following exception after upgrading to Struts Menu 2.4. Apparently, it is caused by java.lang.NoClassDefFoundError: org/apache/velocity/context/Context 12:23:38,630_PM | ERROR [Digester] 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:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208) at org.apache.commons.digester.Rule.end(Rule.java:228) at org.apache.commons.digester.Digester.endElement(Digester.java:1067) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1591) at net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:202) at net.sf.navigator.menu.MenuContextListener.contextInitialized(MenuContextListener.java:62) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 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) ... 35 more 12:23:38,646_PM | FATAL [MenuContextListener] Failure initializing struts-menu: Error parsing resource file: /WEB-INF/menu-config.xml nested exception is: Error at (8, 62: null

    AppFuse JIRA | 1 decade ago | Tony Ugando
    java.lang.reflect.InvocationTargetException
  2. 0

    I get the following exception after upgrading to Struts Menu 2.4. Apparently, it is caused by java.lang.NoClassDefFoundError: org/apache/velocity/context/Context 12:23:38,630_PM | ERROR [Digester] 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:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208) at org.apache.commons.digester.Rule.end(Rule.java:228) at org.apache.commons.digester.Digester.endElement(Digester.java:1067) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at org.apache.commons.digester.Digester.parse(Digester.java:1591) at net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:202) at net.sf.navigator.menu.MenuContextListener.contextInitialized(MenuContextListener.java:62) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 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) ... 35 more 12:23:38,646_PM | FATAL [MenuContextListener] Failure initializing struts-menu: Error parsing resource file: /WEB-INF/menu-config.xml nested exception is: Error at (8, 62: null

    AppFuse JIRA | 1 decade ago | Tony Ugando
    java.lang.reflect.InvocationTargetException
  3. 0

    Issue adding a mod, can't understand log.

    atlauncher.com | 7 months ago
    java.lang.NoClassDefFoundError: mcp/mobius/mobiuscore/profiler/IProfilerBase
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Junit and Java classpath woes - OS X

    Stack Overflow | 7 years ago | ashgromnies
    java.lang.NoClassDefFoundError: junit/framework/Test
  6. 0

    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/SQLClientInfoException

    Stack Overflow | 4 years ago | Vilas Shelke
    java.lang.NoClassDefFoundError: java/sql/SQLClientInfoException

  1. rlovtangen 2 times, last 6 days ago
  2. serious2monkeys 1 times, last 1 week ago
  3. rp 1 times, last 2 weeks ago
  4. malhobayyeb 3 times, last 1 week ago
  5. kjhdofjosvs 23 times, last 3 weeks ago
5 more registered users
90 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    org/apache/velocity/context/Context

    at java.lang.Class.forName0()
  2. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:164)
    2 frames
  3. net.sf.navigator
    MenuRepository.addMenuDisplayerMapping
    1. net.sf.navigator.menu.MenuRepository.class$(MenuRepository.java:31)
    2. net.sf.navigator.menu.MenuRepository.addMenuDisplayerMapping(MenuRepository.java:164)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  5. Apache Commons BeanUtils
    MethodUtils.invokeMethod
    1. org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
    1 frame
  6. Commons Digester
    Digester.endElement
    1. org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208)
    2. org.apache.commons.digester.Rule.end(Rule.java:228)
    3. org.apache.commons.digester.Digester.endElement(Digester.java:1067)
    3 frames
  7. Java RT
    AbstractSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
    2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
    3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    7. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    8. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    9. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
    9 frames
  8. Commons Digester
    Digester.parse
    1. org.apache.commons.digester.Digester.parse(Digester.java:1591)
    1 frame
  9. net.sf.navigator
    MenuContextListener.contextInitialized
    1. net.sf.navigator.menu.MenuRepository.load(MenuRepository.java:202)
    2. net.sf.navigator.menu.MenuContextListener.contextInitialized(MenuContextListener.java:62)
    2 frames
  10. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
    3. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    4. org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    6. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    7. org.apache.catalina.core.StandardService.start(StandardService.java:450)
    8. org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    9. org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    9 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  12. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    2 frames