Unable to access KM APIs in DC during run time!!!
I tried to access KM APIs in DC. However, I fould the way DC imports external libraries is
quite different from web dynpro project. In web dynpro project, I just need to follow the
tutorial "Using Knowledge Management Functions in Web Dynpro" to add the class path and the
corresponding variables. Then I can access KM APIs smoothly.
But in DC, I do the same thing but unfortunately, I get the compilation error "package not found".
I searched the sdn and got some userful help. I have created an external library DC ,
J2EE server component DC and deploy to a server where my EP and J2EE engine resides.
I am able to see my deployed library which includes 6 jar files
in visual administrator. "libfile" is the name shown on my visual administrator.
I have added "libfile" to the web dynpro library references. But now I face a problem
that I can not reference to KM API in my DC during run time. For example,
WPUMFactory.getUserFactory() returns null which should not be this way
because I am able to get non-null value in my web dynpro project. It returns NullPointerException in this line:<b>IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);</b> Can anyone share your experence with me about solving this problem?