2
有誰知道glassfish如何使用ManagedObjectManagers?我得到以下異常:glassfish如何使用ManagedObjectManagers?
Exception in thread "Thread-14" java.lang.NoClassDefFoundError: org/glassfish/gmbal/ManagedObjectManager
at com.sun.xml.ws.client.Stub.<init>(Stub.java:196)
at com.sun.xml.ws.client.Stub.<init>(Stub.java:174)
at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:81)
at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:602)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:308)
at javax.xml.ws.Service.getPort(Service.java:92)
at project.CollectionManagementService.getCollectionManagementPort(CollectionManagementService.java:55)
當我打電話以下方法:
@WebEndpoint(name = "CollectionManagementPort")
public CollectionManagement getCollectionManagementPort() {
return super.getPort(new QName("http://project/", "CollectionManagementPort"), CollectionManagement.class);
}
,我想弄清楚是怎麼回事。我沒有在我寫的代碼中積極使用ManagedObjectManagers,所以我想知道它們是如何用來解決NoClassDefFoundError的。謝謝!