Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-200

Current Velocity Tools View uses deprecated Velocity properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.2, 3.2.1
    • VelocityView
    • None

    Description

      when using current Velocity with current Velocity Tools View , I get the following error messages in the log:

      org.apache.velocity.deprecation - configuration key 'resource.loader' has been deprecated in favor of 'resource.loaders'
      org.apache.velocity.deprecation - configuration key 'webapp.resource.loader.class' has been deprecated in favor of 'resource.loader.webapp.class'
      org.apache.velocity.deprecation - configuration key 'string.resource.loader.class' has been deprecated in favor of 'resource.loader.string.class'
      org.apache.velocity.deprecation - configuration key 'runtime.introspector.uberspect' has been deprecated in favor of 'introspector.uberspect.class'

       

      OK so maybe the old property names are used to be compatible to old Velocity Engine versions, but the default is that we use current versions - so a "compatibility mode" should be made smarter than just continuing to use deprecated properties.

      my gradle includes:

      earlib group: 'org.apache.velocity', name: 'velocity-engine-core', version: '2.3'
      earlib group: 'org.apache.velocity.tools', name: 'velocity-tools-view', version: '3.1'

       

      This has also been mentioned in a recent stackoverflow thread

      https://stackoverflow.com/questions/73026164/velocity-warnings-about-deprecated-keys-that-i-dont-even-use

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              ghueller Gernot Hueller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: