on 01-11-2006 4:36 AM
Hi,
I am trying to write a session bean that accesses the KM.
Normally when we access the KM thorough a portal component or web dynpro we can put a sharing reference to the KM in the portalapp.xml.
How do I refer to the KM from within an EJB. I have inlcluded all the KM jar files in my project, but still I am facing problems.
My Code is as follows.
SessionBean
IUser ep5User = WPUMFactory().getUserFactory().getEP5User(user);
IResourceContext ctx = new ResourceContext(ep5User);
RID rid = RID.getRID("/documents/supply_files");
IResource = ResourceFactory.getInstance().getResource(rid, ctx);
Now this code works fine from a PortalComponent and Web DynPro. But when I try it from an EJB I get the following error.
Cannot get Usermanagement Factory class: java.lang.ClassNotFoundException:
com.sapportals.portal.security.usermanagement.UMFactory
-
Loader Info -
ClassLoader name: [sap.com/KMDocumentTreeEAR]
Parent loader name: [Frame ClassLoader]
References:
common:service:http;service:servlet_jsp
service:ejb
common:service:iiop;service:naming;service:p4;service:ts
service:jmsconnector
library:jsse
library:servlet
common:library:IAIKSecurity;library:activation;library:mail;library:tcsecs
sl
library:ejb20
library:j2eeca
library:jms
library:opensql
common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;li
brary:security.class;library:webservices_lib;service:adminadapter;service:ba
sicadmin;service:com.sap.security.core.ume.service;service:configuration;ser
vice:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notific
ation;service:keystore;service:security;service:userstore
interface:resourcecontext_api
interface:webservices
interface:ejbserialization
Any Help is greatly appriciated.
Hi,
I am facing similar problem. Please let me know how to get IUser in EJB to use it in ResourceContext. What are the JAR files required for the same.
Thanks in Advance.
Regards
Vasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, i have a similar problem.
Where you able to solve it?
Thank you very much for your answer!
Best regards
Jochen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having the same problem, any tips please.
Regards,
Orlando Covault
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.