dubbo 的model服务报错了
新装的centos6.4,部署的时候报错了java.net.UnknownHostException: ws.cn: ws.cn
at java.net.InetAddress.getLocalHost(InetAddress.java:1374) ~[na:1.6.0_43]
at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:299) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143) [dubbo-2.5.3.jar:2.5.3]
at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109) [dubbo-2.5.3.jar:2.5.3]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96) [spring-context-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334) [spring-context-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948) [spring-context-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) [spring-context-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) [spring-context-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) [spring-context-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at com.wondershare.router.common.system.ServerStarter.main(ServerStarter.java:23) [classes/:na]
15:53:41.428 [main] INFO c.a.dubbo.config.AbstractConfig - [DUBBO] Export dubbo service com.wondershare.router.service.CustomTypeSettingService to local registry, dubbo version: 2.5.3, current host: 127.0.0.1
15:53:41.428 [main] INFO c.a.dubbo.config.AbstractConfig - [DUBBO] Export dubbo service com.wondershare.router.service.CustomTypeSettingService to url dubbo://192.168.8.40:20882/com.wondershare.router.service.CustomTypeSettingService?anyhost=true&application=router-module-provider&dubbo=2.5.3&inte易做图ce=com.wondershare.router.service.CustomTypeSettingService&logger=slf4j&methods=findByBySiteIdAndSn,updateBySiteIdAndSn,findBySNPage,findAllSiteTypeListBySN,findAllSiteTypeList,updateStatus&owner=luobiao&pid=5584&revision=1.0.0-SNAPSHOT&side=provider×tamp=1382687621412, dubbo version: 2.5.3, current host: 127.0.0.1 dubbo centos application zookeeper --------------------编程问答-------------------- 修改 /etc/hosts 文件
127.0.0.1 主机名 localhost.localdomain localhost
或是再添加一条
127.0.0.1 主机名
补充:Java , Web 开发