Skip to Content
0
Former Member
Jan 28, 2006 at 01:37 PM

Resource List Filter NoClassDefFoundException

23 Views

Hi all!

I have implemented a Resource List Filter to filter out un-approved resources. However, when i run it on the Navigation iView, there is this Exception:

NoClassDefFoundError: com/sapportals/wcm/repository/ResourceFactory;

Can you help me out? The code follows:

	public void filterResourceList(IResourceList list, IParameters params)
		throws WcmException {
			
		IResource resource = null;
                // This seems to be the line raising the error
		IResourceFactory resFactory = ResourceFactory.getInstance();
		IRepositoryServiceFactory repServiceFactory = resFactory.getServiceFactory();
		
		for (int i = list.size() - 1; i >= 0 ; i--) {
			resource = list.get(i);
			IStatemanagementManager stateMgr =
			 (IStatemanagementManager) repServiceFactory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);
			IStatemanagementResource statRsrc = stateMgr.getStatemangementResource(resource);
			IStatemanagementUtilsResource statRsrcUtils = statRsrc.getUtils();
			
			IState state = statRsrcUtils.readState();
			
			if (!"released".equals(state.getID())) list.remove(resource);
		}

	}

Thanks in advance

Thiago