Skip to Content
0
Former Member
Jul 22, 2008 at 09:23 PM

The method getInstance() is undefined for the type ResourceFactory

498 Views

Hi All

I am trying to create an application for creating folders in KM dynamicall by following the

two blogs.

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1750

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1761

I have added all the jar files required (Given in the blog) from the server to the build path

and added PORTAL:sap.com/com.sap.km.application in the sharing references of webdynpro refernces.

But it is giving me the error "The method getInstance() is undefined for the type ResourceFactory" in the desing time.

ResourceContext context = new ResourceContext(ep5User);

RID rid = RID.getRID("/documents");

ICollection parent = (ICollection) ResourceFactory.getInstance().getResource(rid,context);

Could you suggest me the reason and solution for this error.

Thanks,

Sudheer.