博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【JAVA错误笔记】 - Unable add facets project AnnotationWebService CXF 2-x Web Services
阅读量:5174 次
发布时间:2019-06-13

本文共 2604 字,大约阅读时间需要 8 分钟。

错误描述:

创建webservice接口服务时候提示:

Unable add facets project AnnotationWebService CXF 2-x Web Services

Unable to add the follwing facets to project AnnotationWebService: CXF 2.x Web Services.

If you are getting below exception while creating annotation based web service using apache CXF:

Unable to add the follwing facets to project AnnotationWebService: CXF 2.x Web Services.    org.eclipse.wst.common.project.facet.core.FacetedProjectFrameworkException: Failed while installing CXF 2.x Web Services 1.0.    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1507)    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:324)    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:339)    at org.eclipse.jst.ws.internal.consumption.ui.common.FacetOperationDelegate$1.run(FacetOperationDelegate.java:62)    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)    Caused by: org.eclipse.core.runtime.CoreException: CXF Runtime location not set. Please set location in Preferences > Web Services > CXf 2.x Preferences    at org.eclipse.jst.ws.internal.cxf.facet.CXFFacetInstallDelegate.execute(CXFFacetInstallDelegate.java:50)    at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)    ... 8 more

 

Analysis of the question:

This exception happens if you didn’t add CXF run time environment and creating web service. Please follow below steps to add CXF run time environment:

 

The solution:

 

  • Go to Apache CXF http://cxf.apache.org/download.html site and download binary distribution apache-cxf-3.0.0-milestone2.zip or latest version
  • Unzip it to any folder of your choice
  • In eclipse click Window –> Preferences

  • On Preferences window click Web Services –> CXF 2.x Preferences –> Select CXF Runtime — Click Add

 

  • Add CXF Runtime window browse to select recently downloaded CXF home –> Click Finish

 

  • Select run time click apply –> OK

 

This should resolve issue Unable add facets project AnnotationWebService CXF 2-x Web Services

 

转载于:https://www.cnblogs.com/Tmc-Blog/p/5802322.html

你可能感兴趣的文章
struts2-json-jquery ajax 操作
查看>>
不用改任何代码在Eclipse中使用AAR
查看>>
从cocos2dx中寻找函数指针传递的方法
查看>>
Unity目录结构
查看>>
欧拉回路和欧拉路径
查看>>
Java 推荐读物与源代码阅读
查看>>
BlogEngine.Net架构与源代码分析系列part1:开篇介绍
查看>>
N皇后问题
查看>>
优化深度神经网络(二)优化算法 SGD Momentum RMSprop Adam
查看>>
2016腾讯全球合作伙伴大会马化腾《给合作伙伴的一封信》
查看>>
钻石操作符
查看>>
软件开发经验总结(五)读源代码的艺术
查看>>
lucene.net 应用资料
查看>>
C#报错:创建调试信息文件 ……obj\Debug\model.pdb: 拒绝访问
查看>>
android 中ImageButton按下改变背景图片的效果
查看>>
Got error -1 when reading table
查看>>
最简单却最关键
查看>>
根据时间删除指定文件夹下的文件
查看>>
(三) Redis高级类型
查看>>
php各种设计模式简单实践思考
查看>>