Anish , I would appreciate if you could avoid to post in 2 different forums the same question.
Either you downloaded GateIn Portal, and you should ask here *or* you downloaded JBoss Portal and you would ask where you did your other post The specified item was not found.
Thanks in advance and I hope you understand
Sorry thomas, i downloaded and checked on GateIn 3.6. Thanks for your advice i am going to delete my post from jboss portal fourm. Also i am expecting an answer for my above problem
Make sure you log in as that user first. The portal doesn't create a dashboard (user site) until they log in.
I am sure that i am logged in with as user in GateIn. But the user page worked if i add that user under predefinedOwner tag in portal-configuration.xml like following way
(In above manager and admin can create user page because they are under predefinedOwner tag )
But in the case of adding user page for users who are added programatically i got the above exception. I am using the following code for adding users programatically
OrganizationService orgService = (OrganizationService)PortalContainer.getInstance().getComponentInstanceOfType(OrganizationService.class);
User user =new UserImpl("supervisor");
By default, user site is lazily created (performance reason). You can change this behaviour by changing this property:
gatein.portal.idm.createuserportal in tomcat/gatein/conf/configuration.properties
Or you'll need to create User site first, before creating User site's pages:
Site userSite = portal.createSite(new SiteId(user));
//Now create user site's page