Velocity Tools
  1. Velocity Tools
  2. VELTOOLS-91

"ant test" then "ant showcase" results in invalid war

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Build
    • Labels:
      None

      Description

      When I run "ant test" and "ant showcase" using JDK 1.6, I get these errors in Tomcat when I deploy the war

      (a) running with Tomcat 5.5/JDK 1.5 gave me this exception when deploying.
      java.lang.UnsupportedClassVersionError: Bad version number in .class
      file (Caused by java.lang.UnsupportedClassVersionError: Bad version
      number in .class file))

      (b) Running with Tomcat 6 / JDK 1.6 didn't work either.

      org.apache.commons.logging.LogConfigurationException: User-specified
      log class 'org.apache.velocity.tools.test.FilteredLogChuteCommonsLog'
      cannot be found or is not useable.
      org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
      org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
      org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
      org.apache.commons.logging.LogFactory.getLog(LogFactory.java:664)
      org.apache.commons.digester.Digester.<init>(Digester.java:308)
      org.apache.velocity.tools.config.XmlFactoryConfiguration.read(XmlFactoryConfiguration.java:77)
      org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:167)
      org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:145)
      org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:88)
      org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:66)
      org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:56)
      org.apache.velocity.tools.config.ConfigurationUtils.getDefaultTools(ConfigurationUtils.java:78)
      org.apache.velocity.tools.view.VelocityView.configure(VelocityView.java:469)
      org.apache.velocity.tools.view.VelocityView.init(VelocityView.java:349)
      org.apache.velocity.tools.view.VelocityView.init(VelocityView.java:284)
      org.apache.velocity.tools.view.VelocityView.<init>(VelocityView.java:182)
      org.apache.velocity.tools.view.VelocityView.<init>(VelocityView.java:174)
      org.apache.velocity.tools.view.ServletUtils.getVelocityView(ServletUtils.java:89)
      org.apache.velocity.tools.view.VelocityViewServlet.getVelocityView(VelocityViewServlet.java:142)
      org.apache.velocity.tools.view.VelocityViewServlet.init(VelocityViewServlet.java:109)
      org.apache.velocity.tools.view.VelocityLayoutServlet.init(VelocityLayoutServlet.java:137)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      org.apache.ca

      Note that doing an "ant clean' and then "ant showcase" produces a war that works in either situtation.

        Activity

        Hide
        Nathan Bubna added a comment -

        Thanks for catching this, Will.

        Show
        Nathan Bubna added a comment - Thanks for catching this, Will.

          People

          • Assignee:
            Unassigned
            Reporter:
            Will Glass-Husain
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development