开发者社区> 问答> 正文

cxf 测试报错 memcached相关?报错

运行org.springside.examples.showcase.functional.AccountWebServiceWithPredefineClientFT.java类

报以下错误:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memcachedSimulator' defined in URL [file:/F:/g/s/examples/showcase/target/classes/cache/applicationContext-memcached.xml]: Invocation of init method failed; nested exception is org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:11211

之前在启动时候碰到类似的问题已经解决了,解决方法如下:

如果使用mvn tomcat:run, 就会出现问题。
解决: applicationContext-memcached.xml修改22行,
beans profile="development,functional,test" 中加入production, 
为: beans profile="production,development,functional,test" 。

不知道是否与以上修改有关,如果没关联该如何修改。

应该是memcached没找到。

展开
收起
爱吃鱼的程序员 2020-06-22 22:32:20 403 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    经人提醒解决了。我是第一步启动了server,第二步执行步AccountWebServiceWithPredefineClientFT.java.

    解决方法是第一步不用启动。

    2020-06-22 22:32:39
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
移动互联网测试到质量的转变 立即下载
给ITer的技术实战进阶课-阿里CIO学院独家教材(四) 立即下载
F2etest — 多浏览器兼容性测试整体解决方案 立即下载