{"action":"closed","issue":{"url":"https://api.github.com/repos/alibaba/jstorm/issues/147","labels_url":"https://api.github.com/repos/alibaba/jstorm/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/jstorm/issues/147/comments","events_url":"https://api.github.com/repos/alibaba/jstorm/issues/147/events","html_url":"https://github.com/alibaba/jstorm/issues/147","id":121655920,"number":147,"title":"jstorm ui启动失败","user":{"login":"NextMark","id":5387163,"avatar_url":"https://avatars.githubusercontent.com/u/5387163?v=3","gravatar_id":"","url":"https://api.github.com/users/NextMark","html_url":"https://github.com/NextMark","followers_url":"https://api.github.com/users/NextMark/followers","following_url":"https://api.github.com/users/NextMark/following{/other_user}","gists_url":"https://api.github.com/users/NextMark/gists{/gist_id}","starred_url":"https://api.github.com/users/NextMark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NextMark/subscriptions","organizations_url":"https://api.github.com/users/NextMark/orgs","repos_url":"https://api.github.com/users/NextMark/repos","events_url":"https://api.github.com/users/NextMark/events{/privacy}","received_events_url":"https://api.github.com/users/NextMark/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T07:40:54Z","updated_at":"2015-12-11T10:31:27Z","closed_at":"2015-12-11T10:31:27Z","body":"按官方文档指导方式启动jstorm ui一直失败，无法初始化log4j，如下\r\n09-Dec-2015 19:13:10.510 WARNING [localhost-startStop-1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt\r\n org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clusterAPIController' defined in file [/home/work/local/tomcat-jstorm-ui/webapps/jstorm-ui-2.1.0/WEB-INF/classes/com/alibaba/jstorm/ui/api/ClusterAPIController.class]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1095)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)\r\n        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)\r\n\r\n解决办法：删除${jstorm-ui}/webapps/jstorm-ui-2.1.0/WEB-INF/lib/ 下的slf4j-log4j12-1.7.5.jar包"}}