-
1. Re: Administration Page/Portlet is disabled accidentally, ho
vivek saini Mar 26, 2009 12:57 PM (in response to Benson Fung)you can make changes in default-object.xml and restart the server.
-
2. Re: Administration Page/Portlet is disabled accidentally, ho
Benson Fung Mar 26, 2009 1:55 PM (in response to Benson Fung)Hi Vivek,
thanks for your suggestions. However, can you be more specific? As I wrongly unchecked the admin role view option for the Admin portlet, that's why the admin portlet disappear under the admin account. Please advice how to make changes to the default-object.xml so that it will revert back to the original stage.
Thanks
Benson -
3. Re: Administration Page/Portlet is disabled accidentally, ho
vivek saini Mar 27, 2009 11:46 AM (in response to Benson Fung)hi
default-object.xml is present in portal-core-sar/conf/data folder.
Find for<portal-name>admin</portal-name>
in it and change it from<deployment> <parent-ref/> <if-exists>keep</if-exists> <portal> <portal-name>admin</portal-name>
to<deployment> <parent-ref/> <if-exists>overwrite</if-exists> <portal> <portal-name>admin</portal-name>
and restart the server. It will come back to original state. -
4. Re: Administration Page/Portlet is disabled accidentally, ho
Benson Fung Mar 27, 2009 12:09 PM (in response to Benson Fung)Hi Vivek,
There is no such file at portal-core-sar/conf/data folder. But there is such file at jboss-portal.sar/conf/data folder.
Anyway, I tried to modify the file according to your suggestion. It doesn't work unfortunately. I think the reason is I unchecked the view permission of the admin portlet for admin role.
Please help. -
5. Re: Administration Page/Portlet is disabled accidentally, ho
vivek saini Mar 27, 2009 1:43 PM (in response to Benson Fung)hi
You are at right default-object.xml file. I gave you path in source code, you are checking it in binaries. Anyway we are at same file now.
Now do one more thing.
1. go to the same file let it be "overwrite" from "keep"
2. Find following in default-object.xml<window> <window-name>AdminPortletWindow</window-name> <instance-ref>AdminPortletInstance</instance-ref> <region>center</region> <height>0</height>
change it to<window> <window-name>AdminPortletWindow</window-name> <instance-ref>AdminPortletInstance1</instance-ref> <region>center</region> <height>0</height>
3. now go to portal-admin.sar/portal-admin.war/WEB-INF/portlet-instances.xml
4. find for following in it.<instance-id>AdminPortletInstance</instance-id> <portlet-ref>AdminPortlet</portlet-ref> <security-constraint> <policy-permission>
and change it to<instance-id>AdminPortletInstance1</instance-id> <portlet-ref>AdminPortlet</portlet-ref> <security-constraint> <policy-permission>
5. Restart the server
Basically now we are changing AdminPortletInstance to AdminPortletInstance1 -
6. Re: Administration Page/Portlet is disabled accidentally, ho
Benson Fung Mar 30, 2009 11:08 AM (in response to Benson Fung)Hi Vivek,
Still doesn't work unfortunately. I think I have to reset the hsqldb database table data. Please advice how to clear all the database table data.
thanks
Benson -
7. Re: Administration Page/Portlet is disabled accidentally, ho
Peter Johnson Mar 30, 2009 11:12 AM (in response to Benson Fung)Please advice how to clear all the database table data.
Delete the directory server/xxx/data