netbeans和jUDDI注释

问题描述

| 我正在尝试使jUDDI注释在netbeans 7.0中工作。我已经将juddi-client-3.0.4.jar和uddi-ws-3.0.4.jar包含在我的项目库中,并将uddi.xml放在了config文件夹中。看来juddi类不在类路径中,因为当我尝试部署时,我得到以下错误。如何设置Netbeans来处理此问题?谢谢。
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)
    

解决方法

我曾经遇到过类似的错误,并解决了将web.xml文件中web-app元素的version属性从2.5更改为2.3的问题。 有了这一更改,我的部署就可以了。 我希望这有帮助。     ,最有可能的是,类路径中某处的juddi-client.jar版本存在冲突。 Web服务器通常会在其发行版中包含一个版本。     

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...