*-object.xml dtd or schema
arvind_pv Dec 14, 2005 8:16 AMHi All,
I'm not able to access my application using the below given URL's
1. http://localhost:8080/portal/helloworldsample
2. http://localhost:8080/portal/portal/helloworldsample
When I tried to access it, its showing me the JBoss Portal server application.
Here are my JBoss Server details
1. JBoss 4.0.3 SP1 Application Server
2. JBoss Portal - 2.2.0RC2
I think there is something wrong with my appName-object.xml file, please tell me where can I find the dtd or schema for *-object.xml.
When I viewed the database.script file present in default/data/portal/hypersonic, I'm able to see below insert statements
1. INSERT INTO JBP_SECURITY_POLICY VALUES(152,'/portalobject/helloworldsample,'/portalobject')
2. INSERT INTO JBP_INSTANCE VALUES(40,'HelloWorldPortletInstance','helloworldsample.HelloWorldPortlet')
3. INSERT INTO JBP_OBJECT_NODE VALUES(115,'helloworldsample,'helloworldsample,1)
3. INSERT INTO JBP_SECURITY_POLICY VALUES(153,'/instance/HelloWorldPortletInstance','/instance')
Note
Here I haven't seen anything about the Window i.e. HelloWorldPortletWindow
Please have a look at my files. Please correct me if I did anything wrong.
helloworldsample-object.xml
<?xml version="1.0" encoding="UTF-8"?> <deployments> <deployment> <parent-ref/> <if-exists>overwrite</if-exists> <portal> <portal-name>helloworldsample</portal-name> <properties/> <supported-modes> <mode>view</mode> <mode>edit</mode> <mode>help</mode> </supported-modes> <supported-window-states> <window-state>normal</window-state> <window-state>minimized</window-state> <window-state>maximized</window-state> </supported-window-states> <pages> <default-page>default</default-page> <page> <page-name>default</page-name> <properties/> <window> <window-name>HelloWorldPortletWindow</window-name> <instance-ref>HelloWorldPortletInstance</instance-ref> <region>center</region> <height>0</height> </window> </page> </pages> </portal> </deployment> <deployment> <if-exists>overwrite</if-exists> <instance> <instance-name>HelloWorldPortletInstance</instance-name> <component-ref>helloworldsample.HelloWorldPortlet</component-ref> </instance> </deployment> </deployments>
After modifying the above xml i.e.
<?xml version="1.0" encoding="UTF-8"?> <deployments> <deployment> <if-exists>overwrite</if-exists> <parent-ref>default</parent-ref> <properties/> <page> <page-name>HelloWorld</page-name> <properties/> <window> <window-name>HelloWorldPortletWindow</window-name> <instance-ref>HelloWorldPortletInstance</instance-ref> <region>center</region> <height>0</height> </window> </page> </deployment> <deployment> <if-exists>overwrite</if-exists> <instance> <instance-name>HelloWorldPortletInstance</instance-name> <component-ref>'helloworldsample.HelloWorldPortlet</component-ref> </instance> </deployment> </deployments>
In additon to the above statement I have seen below Insert statement also.
1. INSERT INTO JBP_SECURITY_POLICY VALUES(94,'/portalobject/default.default.HelloWorldPortletWindow','/portalobject')
2. INSERT INTO JBP_OBJECT_NODE VALUES(70,'default.default.HelloWorldPortletWindow','HelloWorldPortletWindow',69)
Please help me.
Thanks