【问题标题】:netbeans and the jUDDI annotationsnetbeans 和 jUDDI 注释
【发布时间】:2011-05-26 16:21:00
【问题描述】:

我正在尝试让 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)

【问题讨论】:

  • 我应该明确表示我使用的是 glassfish 2.1,已将 juddi 库添加到 glassfish,并且我的 juddi 设置工作正常——我可以使用soapUI 和一个简单的客户端注册服务等我写的。

标签: java web-services netbeans uddi


【解决方案1】:

我曾经遇到过类似的错误并解决了它,将 web.xml 文件中的 web-app 元素的版本属性从 2.5 更改为 2.3。 只是有了这个改变,我的部署工作正常。 我希望这会有所帮助。

【讨论】:

    【解决方案2】:

    很可能,类路径中某处的 juddi-client.jar 版本存在冲突。 Web 服务器通常会在其分发中包含一个版本。

    【讨论】:

      猜你喜欢
      • 2011-01-23
      • 2011-12-08
      • 1970-01-01
      • 1970-01-01
      • 2016-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-15
      相关资源
      最近更新 更多