You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by Daniel Carroza <dc...@stratio.com> on 2015/02/12 11:25:53 UTC

About deploying Kylin in DEV enviroment

Hi all,

I'm following the tutorial:
https://github.com/KylinOLAP/Kylin/wiki/Off-Hadoop-CLI-Installation-(Dev-Env-Setup)

Instead of deploying it in Eclipse I use Intellij but I don' think it would
be the problem...

The fact is that running the class DebugTomcat I get the error:

Connected to the target VM, address: '127.0.0.1:54785', transport: 'socket'
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/LifecycleListener
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException:
org.apache.catalina.LifecycleListener
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:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more


I found a workarround by removing the scope provided regarding to Tomcat
dependencies. But I'm not sure if its the proper way

Thanks in advance!


Daniel Carroza


<http://www.stratio.com/>
Vía de las Dos Castillas, 33, Ática 4, 3ª Planta.
28224 Pozuelo de Alarcón. Madrid.
Tel: +34 91 828 64 73 // *@stratiobd <https://twitter.com/StratioBD>*

Re: About deploying Kylin in DEV enviroment

Posted by "Zhou, Qianhao" <qi...@ebay.com>.
Hi, Daniel
    That is a workaround, cause idea does not add the provided
dependencies into the classpath, which by the way is the right way to do.
    So far our workaround is to modify the .iml file generated by idea,
change all provided dependency to compile, so that the pom.xml won¹t be
affected.

Best Regard
Zhou QianHao





On 2/12/15, 6:25 PM, "Daniel Carroza" <dc...@stratio.com> wrote:

>Hi all,
>
>I'm following the tutorial:
>https://github.com/KylinOLAP/Kylin/wiki/Off-Hadoop-CLI-Installation-(Dev-E
>nv-Setup)
>
>Instead of deploying it in Eclipse I use Intellij but I don' think it
>would
>be the problem...
>
>The fact is that running the class DebugTomcat I get the error:
>
>Connected to the target VM, address: '127.0.0.1:54785', transport:
>'socket'
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/apache/catalina/LifecycleListener
>at java.lang.Class.getDeclaredMethods0(Native Method)
>at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
>at java.lang.Class.getMethod0(Class.java:2856)
>at java.lang.Class.getMethod(Class.java:1668)
>at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
>at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
>Caused by: java.lang.ClassNotFoundException:
>org.apache.catalina.LifecycleListener
>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:425)
>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>... 6 more
>
>
>I found a workarround by removing the scope provided regarding to Tomcat
>dependencies. But I'm not sure if its the proper way
>
>Thanks in advance!
>
>
>Daniel Carroza
>
>
><http://www.stratio.com/>
>Vía de las Dos Castillas, 33, Ática 4, 3ª Planta.
>28224 Pozuelo de Alarcón. Madrid.
>Tel: +34 91 828 64 73 // *@stratiobd <https://twitter.com/StratioBD>*