Hello,
I'm getting an error while trying to instanciate the IUriMapperService.
The error I get is the following:
Failed to initialize the ServiceFactory: java.lang.NoClassDefFoundError: com/sapportals/wcm/crt/CrtClassLoaderRegistry
at com.sapportals.wcm.service.ServiceFactory.getInstance(ServiceFactory.java:66)
at com.sapportals.wcm.service.urimapper.UriMapperServiceFactory.getInstance(UriMapperServiceFactory.java:40)
The code I use is:
public String getGUIDFromPath(String path) {
String guid = null;
try {
IUriMapperService mapper = UriMapperServiceFactory.getInstance(); //there is where I get the error
guid = mapper.getGuidRIDFromRID(RID.getRID(path)).toString();
} catch (Exception e) {
guid = null;
}
return guid;
}
Anybody knows what is wrong.
Thank you