Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java netbeans和jUDDI注释_Java_Web Services_Netbeans_Uddi - Fatal编程技术网

Java netbeans和jUDDI注释

Java netbeans和jUDDI注释,java,web-services,netbeans,uddi,Java,Web Services,Netbeans,Uddi,我试图让jUDDI注释在netbeans 7.0中工作。我已经在我的项目libs中包含了juddi-client-3.0.4.jar和uddi-ws-3.0.4.jar,并在config文件夹中放了一个uddi.xml。但是,juddi类似乎不在类路径中,因为当我尝试部署时,会出现下面的错误。如何设置netbeans来处理此问题?谢谢 I:\java\src\svn\PeopleWS\trunk\build\classes\PeopleWSServiceBean.class: warning:

我试图让jUDDI注释在netbeans 7.0中工作。我已经在我的项目libs中包含了juddi-client-3.0.4.jar和uddi-ws-3.0.4.jar,并在config文件夹中放了一个uddi.xml。但是,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应用元素的version属性从2.5更改为2.3,从而解决了这个问题。 就这样,我的部署工作正常。
我希望这能有所帮助。

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

我应该清楚地表明我正在使用glassfish 2.1,已经将juddi libs添加到glassfish中,我的juddi设置工作正常——我可以使用soapUI和我编写的简单客户端注册服务等。