2011-05-26 29 views
0

我正試圖讓NetBeans 7.0中的jUDDI註解工作。我在我的項目庫中包含了juddi-client-3.0.4.jar和uddi-ws-3.0.4.jar,並在配置文件夾中放入了一個uddi.xml。看起來juddi類不在classpath中,因爲當我嘗試部署時,我得到下面的錯誤。我如何設置netbeans來處理這個問題?謝謝。netbeans和jUDDI註解

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) 
+0

我應該明確指出,我使用的是glassfish 2.1,爲glassfish添加了juddi庫,並且我的juddi設置工作正常 - 我可以使用soapUI和我寫的簡單客戶端註冊服務等。 – jaybee 2011-05-27 08:32:03

回答

2

我曾經有過類似的錯誤,並解決了它將web.xml文件中的web-app元素的版本屬性從2.5更改爲2.3。 就在這種變化下,我的部署工作正常。 我希望這可以幫助。

0

最有可能的是,在類路徑中的某處存在juddi-client.jar的衝突版本。 Web服務器通常會在其發行版中包含一個版本。