English 中文(简体)
netbeans和jUDDI注释
原标题:netbeans and the jUDDI annotations

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

I:javasrcsvnPeopleWS	runkuildclassesPeopleWSServiceBean.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:javasrcsvnPeopleWS	runkuildclassesPeopleWSServiceBean.class: warning: Cannot find annotation method  serviceKey()  in type  org.apache.juddi.v3.annotations.UDDIService 
I:javasrcsvnPeopleWS	runkuildclassesPeopleWSServiceBean.class: warning: Cannot find annotation method  description()  in type  org.apache.juddi.v3.annotations.UDDIService 
I:javasrcsvnPeopleWS	runkuildclassesPeopleWSServiceBean.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:javasrcsvnPeopleWS	runkuildclassesPeopleWSServiceBean.class: warning: Cannot find annotation method  description()  in type  org.apache.juddi.v3.annotations.UDDIServiceBinding 
I:javasrcsvnPeopleWS	runkuildclassesPeopleWSServiceBean.class: warning: Cannot find annotation method  accessPointType()  in type  org.apache.juddi.v3.annotations.UDDIServiceBinding 
I:javasrcsvnPeopleWS	runkuildclassesukacsusxpeoplewssessionPeopleWSServiceBean.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)
问题回答

I had a similar error once and solved it changing the version attribute of the web-app element in the web.xml file from 2.5 to 2.3. Just with that change my deployment worked OK. I hope this helps.

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





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签