on 07-10-2008 12:14 PM
Hi experts!!!
I am trying to create a portal user from a web dynpro java apploication.
Below is the code i am using.
I get the following exception
No data source feels responsible for principal. Please check the data source configuration
I checked the various exceptions of IUserMaint & IUserFactory but could not find a solution for that..
Please help!!
try{
String uid = "iria2";
IUserMaint newUser = UMFactory.getUserFactory().newUser(uid);
newUser.setFirstName("iria1234");
newUser.setLastName("Kouts");
newUser.setEmail("xxxxx");
newUser.commit();
}catch (Exception e){
wdComponentAPI.getMessageManager().reportSuccess(e.getLocalizedMessage());
}
try{
IUserFactory userfact = UMFactory.getUserFactory();
IUserMaint userMaint = userfact.newUser("TestUser");
userMaint.setDisplayName("Any Name");
userMaint.setFirstName("Name");
userMaint.setLastName("Last Name");
userMaint.save();
userMaint.commit();
} catch (Exception e){
wdComponentAPI.getMessageManager().reportSuccess(e.getLocalizedMessage());
}
Hi Iria,
Try this link and follow the procedure accordingly and see that you have all the required jar files.I tried this procedure and I got the result.
Rewards points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi durga!!!
I tried it but i still get the same exception...
any other ideas???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.