4 Replies Latest reply on Dec 15, 2005 12:19 AM by suneel reddy

    Accessing Portal using Context Name in Portal 2.2

    suneel reddy Newbie

      Hi All,

      I'm unable to access my application using the context name in Portal 2.2.
      I was successful in Portal 2.0.

      Here is my Code

      mysample-object.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
       <deployment>
       <parent-ref/>
       <if-exists>overwrite</if-exists>
       <portal>
       <portal-name>mysample</portal-name>
       <properties/>
      
       <supported-modes>
       <mode>view</mode>
       </supported-modes>
      
       <supported-window-states>
       <window-state>normal</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>mysample.HelloWorldPortlet</component-ref>
       </instance>
       </deployment>
      </deployments>
      



      portlet.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
       version="1.0">
       <portlet>
       <portlet-name>HelloWorldPortlet</portlet-name>
       <portlet-class>mysample.portlets.HelloWorldPortlet</portlet-class>
      
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
      
       <portlet-info>
       <title>HelloWorld Portlet</title>
       <short-title>HelloWorld Portlet</short-title>
       <keywords>HelloWorld</keywords>
       </portlet-info>
       </portlet>
      
      </portlet-app>
      


      jboss-portlet.xml

      <?xml version="1.0"?>
      <portlet-app>
       <portlet>
       <portlet-name>HelloWorldPortlet</portlet-name>
       <security></security>
       </portlet>
      </portlet-app>
      


      jboss-app.xml

      <?xml version="1.0" ?>
      <jboss-app>
       <app-name>mysample</app-name>
      </jboss-app>
      


      jboss-web.xml

      <?xml version="1.0"?>
      <jboss-web>
       <context-root>/mysample</context-root>
      </jboss-web>
      


      Please help me in this regard.

      Thanks