ClassNotFoundException when init WikiRemoteServiceClient to call webcenter
568002Sep 11 2007 — edited Jul 9 2010We are trying to call webcenter wiki service by java client following the Oracle® WebCenter Framework Developer's Guide Chapter 6.4.1.3. The guide link is: http://st-doc.us.oracle.com/review/AS101320/webcenter.1013/b31074/jpsdg_wiki.htm#BABIEAIA
Below is our java client code:
public static void main(String[] args) throws Exception {
try {
WikiRemoteServiceClient client = new WikiRemoteServiceClient();
client.setEndpoint(endpoint);
String key = KeyEncryptor.genkey(username, passphrase);
PageInfo[] pages = client.getAllPageInfo(domain, key);
for (int i = 0; i < pages.length; i++) {
System.out.println(" " + pages.getName());
}
} catch (Exception e) {
System.out.println("Exception: " + e);
}
}
The imported lib packages in our project are: axis.jar, jaxrpc.jar, ora_wiki_sec.jar, oracle-portlet-tags.jar, web_service_proxy.jar.
We meet ClassNotFoundException "Exception: javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: oracle.webcenter.wiki.ws.WikiServiceServiceLocator" when init WikiRemoteServiceClient instance.
We think the class "oracle.webcenter.wiki.ws.WikiServiceServiceLocator" should be contained in the lib web_service_proxy.jar, but it is not exist in this lib package. Can you give us some suggestions on this problem?
Thanks,Hart