首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >netbeans和jUDDI标注

netbeans和jUDDI标注
EN

Stack Overflow用户
提问于 2011-05-27 00:21:00
回答 2查看 588关注 0票数 0

我正在尝试让jUDDI注解在NetBeans7.0中工作。我已经在我的项目库中包含了juddi-client-3.0.4.jar和uddi-ws-3.0.4.jar,并在uddi.xml文件夹中放置了一个配置。juddi类似乎不在类路径中,因为当我尝试部署时,我得到了下面的错误。如何设置netbeans来处理此问题?谢谢。

代码语言:javascript
复制
I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning: Cannot find annotation method 'businessKey()' in type     'org.apache.juddi.v3.annotations.UDDIService': class file for org.apache.juddi.v3.annotations.UDDIService not found
I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning: Cannot find annotation method 'serviceKey()' in type 'org.apache.juddi.v3.annotations.UDDIService'
I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning: Cannot find annotation method 'description()' in type 'org.apache.juddi.v3.annotations.UDDIService'
I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning: Cannot find annotation method 'bindingKey()' in type 'org.apache.juddi.v3.annotations.UDDIServiceBinding': class file for org.apache.juddi.v3.annotations.UDDIServiceBinding not found
I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning: Cannot find annotation method 'description()' in type 'org.apache.juddi.v3.annotations.UDDIServiceBinding'
I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning: Cannot find annotation method 'accessPointType()' in type 'org.apache.juddi.v3.annotations.UDDIServiceBinding'
I:\java\src\svn\PeopleWS\trunk\build\classes\uk\ac\susx\peoplews\session\PeopleWSServiceBean.class: warning: Cannot find annotation method 'accessPoint()' in type 'org.apache.juddi.v3.annotations.UDDIServiceBinding'
error: Could not create declaration for annotation type org.apache.juddi.v3.annotations.UDDIService
error: Could not create declaration for annotation type org.apache.juddi.v3.annotations.UDDIServiceBinding
2 errors
7 warnings
error: compilation failed, errors should have been reported
Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED
at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2256)
at     com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:427)
at   com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:141)
at   com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:182)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at  com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at  com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at     com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
EN

回答 2

Stack Overflow用户

发布于 2012-04-13 02:09:19

我曾经遇到过一个类似的错误,将web.xml文件中web-app元素的版本属性从2.5改为2.3解决了这个问题。有了这个改变,我的部署就可以正常工作了。我希望这能帮到你。

票数 2
EN

Stack Overflow用户

发布于 2013-12-31 10:07:55

最有可能的情况是,在类路径中的某个地方存在一个冲突版本的juddi-client.jar。通常,web服务器会在其发行版中包含一个版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6141804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档