Hello.
This is kind of jar-hell issue i think.
There is lots ways to solve this issue, but i think cleanning the maven
repo is the simplest way to solve the problem.
Thanks.

2016-01-14 13:54 GMT+09:00 Fazlan Nazeem <fazl...@wso2.com>:

> Hi Hyung,
>
> Cleaning the m2 repo and building it solved the issue. Any idea how the m2
> repo would have affected this issue?
>
> On Wed, Jan 13, 2016 at 7:39 PM, Hyung Sung Shim <hss...@nflabs.com>
> wrote:
>
>> Hello.
>>
>> I try to build and run as you followed, it's working well.
>> My test environment of zeppelin is CenOS6 and jdk7.
>>
>> What's your environment of zeppelin?
>> Could you try to build and run zeppelin after remove your maven
>> repository(~/.m2/repository/)?
>>
>> If you let me know the result, I could help you.
>>
>> Thanks.
>>
>>
>> 2016-01-13 21:44 GMT+09:00 Fazlan Nazeem <fazl...@wso2.com>:
>>
>>> Hi,
>>>
>>> I cloned the latest repo of Zeppelin and built it using the following
>>> command.
>>>
>>> mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -DskipTests
>>>
>>>
>>> The build is successful. But when I start the server using the following
>>> command
>>>
>>> bin/zeppelin.sh
>>>
>>> I am getting the following error
>>>
>>> SLF4J: Class path contains multiple SLF4J bindings.
>>> SLF4J: Found binding in
>>> [jar:file:/home/fazlann/zeppelin-repo/test/incubator-zeppelin/zeppelin-server/target/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in
>>> [jar:file:/home/fazlann/zeppelin-repo/test/incubator-zeppelin/zeppelin-server/target/lib/zeppelin-interpreter-0.6.0-incubating-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in
>>> [jar:file:/home/fazlann/zeppelin-repo/test/incubator-zeppelin/zeppelin-zengine/target/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in
>>> [jar:file:/home/fazlann/zeppelin-repo/test/incubator-zeppelin/zeppelin-zengine/target/lib/zeppelin-interpreter-0.6.0-incubating-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in
>>> [jar:file:/home/fazlann/zeppelin-repo/test/incubator-zeppelin/zeppelin-interpreter/target/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>>> explanation.
>>> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> com/sun/jersey/server/impl/application/DeferredResourceConfig
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2595)
>>> at java.lang.Class.getConstructor0(Class.java:2895)
>>> at java.lang.Class.newInstance(Class.java:354)
>>> at
>>> org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1075)
>>> at
>>> org.eclipse.jetty.servlet.ServletHolder.newInstance(ServletHolder.java:957)
>>> at
>>> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:514)
>>> at
>>> org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:344)
>>> at
>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>>> at
>>> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:791)
>>> at
>>> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>>> at
>>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
>>> at
>>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>>> at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
>>> at
>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>>> at
>>> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
>>> at
>>> org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
>>> at
>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>>> at
>>> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>>> at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>>> at
>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>>> at
>>> org.apache.zeppelin.server.ZeppelinServer.main(ZeppelinServer.java:114)
>>> Caused by: java.lang.ClassNotFoundException:
>>> com.sun.jersey.server.impl.application.DeferredResourceConfig
>>> 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)
>>> ... 22 more
>>>
>>> How do I solve this issue?
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
>

Reply via email to