启动jsipster mvnw

时间:2017-05-31 10:29:22

标签: jhipster

这是错误文本:我使用windows xampp服务器

  

***** 2017-05-31 14:33:41,401 ERROR restartedMain o.s.b.SpringApplication:815 - 应用程序启动失败   org.springframework.context.ApplicationContextException:失败   启动bean' outputBindingLifecycle' ;嵌套异常是   org.springframework.cloud.stream.binder.BinderException:E xception   在构建出站端点时抛出   org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)   在   org.springframework.context.support.DefaultLifecycleProcessor.access $ 200(DefaultLifecycleProcessor.java:50)   在   org.springframework.context.support.DefaultLifecycleProcessor $ LifecycleGroup.start(DefaultLifecycleProcessor.java:348)   在   org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:151)   在   org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:114)   在   org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879)   在   org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)   在   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)   在   org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)   在   org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)   在   org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)   在   org.springframework.boot.SpringApplication.run(SpringApplication.java:314)   在   com.mgm.example.easysample.EasysampleApp.main(EasysampleApp.java:68)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)   在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   在java.lang.reflect.Method.invoke(Method.java:483)at   org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)   引起:org.springframework.cloud.stream.binder.BinderException:   构建出站端点时抛出异常   org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:122)   在   org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:55)   在   org.springframework.cloud.stream.binder.AbstractBinder.bindProducer(AbstractBinder.java:152)   在   org.springframework.cloud.stream.binding.BindingService.bindProducer(BindingService.java:125)   在   org.springframework.cloud.stream.binding.BindableProxyFactory.bindOutputs(BindableProxyFactory.java:238)   在   org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:57)   在   org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:175)   ...省略了17个常见帧引起:   org.I0Itec.zkclient.exception.ZkTimeoutException:无法连接   在超时内的zookeeper服务器:10000 at   org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232)at   org.I0Itec.zkclient.ZkClient。(ZkClient.java:156)at at   org.I0Itec.zkclient.ZkClient。(ZkClient.java:130)at at   kafka.utils.ZkUtils $ .createZkClientAndConnection(ZkUtils.scala:76)at at   kafka.utils.ZkUtils $ .apply(ZkUtils.scala:58)at   kafka.utils.ZkUtils.apply(ZkUtils.scala)at   org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopicAndPartitions(KafkaTopicProvisioner.java:169)   在   org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.createTopicsIfAutoCreateEnabledAndAdminUtilsPresent(KafkaTopicProvisioner.java:153)   在   org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.provisionProducerDestination(KafkaTopicProvisioner.java:109)   在   org.springframework.cloud.stream.binder.kafka.provisioning.KafkaTopicProvisioner.provisionProducerDestination(KafkaTopicProvisioner.java:60)   在   org.springframework.cloud.stream.binder.AbstractMessageChannelBinder.doBindProducer(AbstractMessageChannelBinder.java:108)   ...省略了23个常见帧[INFO]   -------------------------------------------------- ---------------------- [INFO]建立成功[信息]   -------------------------------------------------- ---------------------- [INFO]总时间:01:30分[信息]完成时间:   2017-05-31T14:33:42 + 04:30 [INFO]最终记忆:66M / 533M [INFO]   -------------------------------------------------- ----------------------在这里输入代码*****

1 个答案:

答案 0 :(得分:0)

根据org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 10000的主要错误,您尚未启动Zookeeper。如果您选择了Kafka选项,则需要这样做(有关详细信息,请参阅JHipster's Kafka docs)。

第一个选择是使用Docker。 JHipster在src/main/docker/中为Zookeeper和Kafka提供了docker-compose文件。您可以通过运行来启动它们:

docker-compose -f src/main/docker/kafka.yml up -d

第二个选项是手动设置和安装Kafka和Zookeeper。