Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add the following <servlet> entries after the existing ones:

Code Block
    <servlet>
        <servlet-name>TestPortlet1</servlet-name>
        <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
   
    <init-param>

           <param-name>portlet-class</param-name>
   
        <param-value>org.apache.pluto.portalImpl.portlet.TestPortlet</param-value>

       </init-param>
        <init-param>
            <param-name>portlet-guid</param-name>
 
          <param-value>testsuite.TestPortlet1</param-value>
        </init-param>
 
      <security-role-ref>
            <role-name>plutoTestRole</role-name>
            <role-link>tomcat</role-link>
  
     </security-role-ref>
    </servlet>

  

<servlet>

       <servlet-name>TestPortlet2</servlet-name>
 
      <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
  
     <init-param>
   
        <param-name>portlet-class</param-name>
   
        <param-value>org.apache.pluto.portalImpl.portlet.TestPortlet</param-value>

       </init-param>
 
      <init-param>
  
         <param-name>portlet-guid</param-name>
            <param-value>testsuite.TestPortlet2</param-value>
   
    </init-param>

       <security-role-ref>
            <role-name>plutoTestRole</role-name>
            <role-link>tomcat</role-link>

       </security-role-ref>
   
</servlet>

And then add the following <servlet-mapping> entries after the existing ones:

Code Block
    <servlet-mapping>
        <servlet-name>TestPortlet1</servlet-name>
        <url-pattern>/TestPortlet1/*</url-pattern>
 
  </servlet-mapping>

 

 <servlet-mapping>
        <servlet-name>TestPortlet2</servlet-name>
        <url-pattern>/TestPortlet2/*</url-pattern>
   
</servlet-mapping>

At this point you should be able to start the tomcatA instance and connect to http://localhost:8081/pluto/portal/ and see the portal and try out the test suite portlets. Do not proceed until this is all working correctly.

...