0 Replies Latest reply on Dec 9, 2005 9:37 AM by arvind_pv

    Accessing Portal using Context name

    arvind_pv

      Hi Everyone,

      I'm devloping an application using the JBoss Portal Server. I'm facing the problem while accesing the application using the context name (i.e. http://localhost:8080/portal/mysample)

      But I'm able to access the application using the below given URL
      http://localhost:8080/portal/index.html?ctrl:id=page.default.helloworld

      I have defined my own layout for this sample application.

      Here are my files

      jboss-web.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>


      portal.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-portal.xml
      <?xml version="1.0"?>
      <portlet-app>
       <portlet>
       <portlet-name>HelloWorldPortlet</portlet-name>
       <security></security>
       </portlet>
      </portlet-app>



      portal-instances.xml
      <?xml version="1.0"?>
      <instances>
       <instance>
       <instance-name>HelloWorldPortletInstance</instance-name>
       <component-ref>HelloWorldPortlet</component-ref>
       </instance>
      </instances>


      mysample-pages.xml

      <?xml version="1.0"?>
      <pages>
       <portal-name>default</portal-name>
       <page>
       <page-name>helloworld</page-name>
       <window>
       <window-name>HelloWorldWindow</window-name>
       <instance-ref>mysample.HelloWorldPortlet.HelloWorldPortletInstance</instance-ref>
       <region>center</region>
       <height>0</height>
       </window>
       </page>
      </pages>


      Please help me regarding this problem.

      Thanks