Hi,
I am trying to implement a KM Web Service to read out some links from a repository. I already implemented the code as a servlet and it works there. No I implemented a Web Service with the same code. The Web Service works, I tested it with a "Hello World" String.
The code I use is nearly the same as in the KM documention for this kind of access to a repository.
But with
IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
there comes
com/sapportals/portal/security/usermanagement/UserManagementException
The only Error in the logs are:
java.lang.NoClassDefFoundError: com/sapportals/portal/security/usermanagement/UserManagementException
So I implenented this code and the errors does not appear any longer:
com.sap.security.api.IUserFactory usrFact = UMFactory.getUserFactory();
IUser serviceUser = (IUser) usrFact.getUser("<anyusername>");
But now I try to go on with
IResourceContext resourceContext = new ResourceContext(serviceUser);
IResource resource = ResourceFactory.getInstance().getResource(RID.getRID("/documents"), resourceContext);
and there comes
java.lang.NoClassDefFoundError: com/sapportals/portal/security/usermanagement/UserManagementException
Do you have an idea, why my code works in a servlet, but not in a web service