[MGNLTOOLS-7] Scripts fail with NoClassDefFoundError when no parameter is passed (because they assume current directory is the webapp's dir) Created: 22/Jul/08  Updated: 10/Jan/14  Resolved: 22/Jul/08

Status: Closed
Project: Repository Tools
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 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)



 Comments   
Comment by Magnolia International [ 22/Jul/08 ]

fixed - throwing a ParseArgumentsException if lib not found

Generated at Mon Feb 12 10:40:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.