Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5187

java.lang.NoClassDefFoundError: org/apache/struts2/views/velocity/VelocityManager

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 6.0.0
    • 6.0.3
    • Plugin - SiteMesh
    • None

    Description

      We are getting a java.lang.NoClassDefFoundError, when using the SiteMesh plugin. Adding the Velocity plugin to the class path fixes the problem for us.

      Here is a stacktrace:

      java.lang.NoClassDefFoundError: org/apache/struts2/views/velocity/VelocityManager
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2729)
              at java.lang.Class.getDeclaredMethods(Class.java:2003)
              at com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:97)
              at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:632)
              at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:209)
              at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:65)
              at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:1035)
              at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:516)
              at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:549)
              at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:44)
              at org.apache.struts2.dispatcher.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:53)
              ...
      

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              tstadler Tobias Stadler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h