Uploaded image for project: 'Repository Tools'
  1. Repository Tools
  2. MGNLTOOLS-7

Scripts fail with NoClassDefFoundError when no parameter is passed (because they assume current directory is the webapp's dir)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0
    • None
    • None

    Description

      $ ./update35to36
      WARNING: No lib directory found at /Users/gjoseph/tmp/magnolia-tools-1.0-rc2-SNAPSHOT/bin/WEB-INF/lib
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
      at java.lang.Class.getMethod0(Class.java:2642)
      at java.lang.Class.getMethod(Class.java:1579)
      at info.magnolia.tools.AbstractLauncher.launch(AbstractLauncher.java:126)
      at info.magnolia.tools.AbstractLauncher.doMain(AbstractLauncher.java:86)
      at info.magnolia.tools.BasicLauncher.main(BasicLauncher.java:54)

      $ ./updatenodetypes
      WARNING: No lib directory found at /Users/gjoseph/tmp/magnolia-tools-1.0-rc2-SNAPSHOT/bin/WEB-INF/lib
      Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
      at java.lang.Class.getMethod0(Class.java:2642)
      at java.lang.Class.getMethod(Class.java:1579)
      at info.magnolia.tools.AbstractLauncher.launch(AbstractLauncher.java:126)
      at info.magnolia.tools.AbstractLauncher.doMain(AbstractLauncher.java:86)
      at info.magnolia.tools.BasicLauncher.main(BasicLauncher.java:54)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD