• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.5
    • None
    • None

      First exception is caused by missing servlet-api in classpath:

      Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletContext
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
      	at java.lang.Class.getMethod0(Class.java:2694)
      	at java.lang.Class.getMethod(Class.java:1622)
      	at info.magnolia.tools.AbstractLauncher.launch(AbstractLauncher.java:124)
      	at info.magnolia.tools.AbstractLauncher.doMain(AbstractLauncher.java:84)
      	at info.magnolia.tools.exec.RemoveNodeLauncher.main(RemoveNodeLauncher.java:41)
      Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      	at info.magnolia.tools.InvertedURLClassLoader.loadClass(InvertedURLClassLoader.java:59)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      	... 7 more
      

      After fixing first one, another one pops up:

      Exception in thread "main" java.lang.ClassCastException: info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper cannot be cast to org.apache.jackrabbit.core.NodeImpl
      	at info.magnolia.tools.exec.RemoveNode.doExec(RemoveNode.java:35)
      	at info.magnolia.tools.exec.NodeOperationExecutable.doExec(NodeOperationExecutable.java:47)
      	at info.magnolia.tools.AbstractBasicExecutable.exec(AbstractBasicExecutable.java:73)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at info.magnolia.tools.AbstractLauncher.launch(AbstractLauncher.java:126)
      	at info.magnolia.tools.AbstractLauncher.doMain(AbstractLauncher.java:84)
      	at info.magnolia.tools.exec.RemoveNodeLauncher.main(RemoveNodeLauncher.java:41)
      
      

            jsimak Jaroslav Simak
            jsimak Jaroslav Simak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: