{"action":"closed","issue":{"url":"https://api.github.com/repos/calrissian/spark-jetty-server/issues/2","labels_url":"https://api.github.com/repos/calrissian/spark-jetty-server/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/calrissian/spark-jetty-server/issues/2/comments","events_url":"https://api.github.com/repos/calrissian/spark-jetty-server/issues/2/events","html_url":"https://github.com/calrissian/spark-jetty-server/issues/2","id":54979989,"number":2,"title":"NoClassDefFoundError: org/apache/spark/SparkContext when starting Jetty","user":{"login":"kulkeez","id":10609934,"avatar_url":"https://avatars.githubusercontent.com/u/10609934?v=3","gravatar_id":"","url":"https://api.github.com/users/kulkeez","html_url":"https://github.com/kulkeez","followers_url":"https://api.github.com/users/kulkeez/followers","following_url":"https://api.github.com/users/kulkeez/following{/other_user}","gists_url":"https://api.github.com/users/kulkeez/gists{/gist_id}","starred_url":"https://api.github.com/users/kulkeez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kulkeez/subscriptions","organizations_url":"https://api.github.com/users/kulkeez/orgs","repos_url":"https://api.github.com/users/kulkeez/repos","events_url":"https://api.github.com/users/kulkeez/events{/privacy}","received_events_url":"https://api.github.com/users/kulkeez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-21T05:41:03Z","updated_at":"2015-01-21T06:02:32Z","closed_at":"2015-01-21T06:02:32Z","body":"I performed a \"mvn clean install\" in the root folder. Moved into the war folder and upon doing a \"mvn jetty:run\" the maven build throws this exception:\r\n\r\n[INFO] Configuring Jetty for project: war\r\n[INFO] Webapp source directory = /home/tbda/spark-jetty-server/war/src/main/webapp\r\n[INFO] web.xml file = /home/tbda/spark-jetty-server/war/src/main/webapp/WEB-INF/web.xml\r\n[INFO] Classes = /home/tbda/spark-jetty-server/war/target/classes\r\n[INFO] Property spark.home=/opt/spark-1.2.0-bin-hadoop2.4 was set\r\n[INFO] Property spark.scheduler.allocation.file=/home/tbda/spark-jetty-server/war/src/main/resources/defaultPoolConfig.xml was set\r\n[INFO] Property spark.ui.port=4040 was set\r\n[INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog\r\n[INFO] Context path = /test\r\n[INFO] Tmp directory =  determined at runtime\r\n[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml\r\n[INFO] Web overrides =  none\r\n[INFO] Webapp directory = /home/tbda/spark-jetty-server/war/src/main/webapp\r\n[INFO] Starting jetty 6.1.10 ...\r\n[INFO] jetty-6.1.10\r\n[INFO] No Transaction manager found - if your webapp requires one, please configure one.\r\n[INFO] Initializing Spring root WebApplicationContext\r\nJan 21, 2015 11:07:48 AM org.springframework.web.context.ContextLoader initWebApplicationContext\r\nINFO: Root WebApplicationContext: initialization started\r\nJan 21, 2015 11:07:48 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh\r\nINFO: Refreshing Root WebApplicationContext: startup date [Wed Jan 21 11:07:48 IST 2015]; root of context hierarchy\r\nJan 21, 2015 11:07:48 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions\r\nINFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]\r\nJan 21, 2015 11:07:48 AM org.springframework.web.context.ContextLoader initWebApplicationContext\r\nSEVERE: Context initialization failed\r\njava.lang.NoClassDefFoundError: org/apache/spark/SparkContext\r\n        at java.lang.Class.getDeclaredMethods0(Native Method)\r\n        at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)\r\n        at java.lang.Class.getDeclaredMethods(Class.java:1860)\r\n        at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:467)\r\n        at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:451)\r\n        at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:511)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:634)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:573)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1331)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:341)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:312)\r\n\r\nThe Spark hom eis set; not sure why it is not able to locate the classes."}}