i am using "jboss-portal-2.2.0-bundled" and i could not find local.properties
file there to edit
I haven't tried it because I don't find it neccessary. If that document is correct, you have to compile from sources to change context root.
Let me try to help you with it.
Since you are using "jboss-portal-2.2.0-bundled" it won't be so complicated.
An advice, make a copy of jboss-portal-2.2.1RC2-bundled/server/default directory amd make jboss-portal-2.2.1RC2-bundled/server/myportal. now when yourun JBoss run it run.bat -c myportal. This way you always have an original portal copy handy.
First of all you must read the docs, where you will find that portal configured in a single file: /jboss-portal.sar/conf/data/default-object.xml (this path is relative to your server instance, for default server will be jboss-portal-2.2.1RC2-bundled/server/default)
You can modify this file and add one more portal instance or simply change default portal. But there is a catch :
the portal with name default must be there.
Now let's change portal mapping.
Check /deploy/jbossweb-tomcat55.sar and see if you have ROOT.war there, if you do - delete it.
Now let's modify portal mapping, edit the file: /deploy/jboss-portal.sar/portal-server.war/WEB-INF/jboss-web.xml
and modify context-root tag. To map portal to server root simply change it to
<jboss-web> ... <context-root>/</context-root>
<jboss-web> ... <context-root/>
Now you can access your portal on http://localhost:8080/default, as far as I know you won't be able to change it to http://localhost:8080/myportal since default portal instance must be configured. But if you configure more that 1 portal instance you can have 2 portals http://localhost:8080/default and http://localhost:8080/myportal but anyone who come to http://localhost:8080/ will automatically get http://localhost:8080/default.
Now about layout and themes: have a look at the file \deploy\jboss-portal.sar\portal-core.war\WEB-INF\portal-layouts.xml
And create your own layout and theme based on one of the existing. It is quite simple.
I hope it can answer some of your questions.
Thanks a lot !!!!
Awesome!!,Now I can able to run on my own portal instance...
IMHO this should be somewhere in WiKi of documentation.