[jboss-user] [JBoss Portal] - How to deploy 2 portlets in the same WAR

jado do-not-reply at jboss.com
Tue Aug 28 14:17:02 EDT 2007


I am new to portals and i am trying to deploy 2 portlets in the same war in jboss.

I defined both portlets in portal.xml and portlet-instances.xml but only 1 of my portlet instance is registered with jboss portal on startup

My portal.xml and portal-instance.xml are

<?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 http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
             version="1.0">
 
      <portlet-name>SecondPortlet</portlet-name>
      <portlet-class>org.jboss.portlet.SecondPortlet</portlet-class>
      
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      
      <portlet-info>
         SecondPortlet
      </portlet-info>
    
 

      <portlet-name>FirstPortlet</portlet-name>
      <portlet-class>org.jboss.FirstPortlet</portlet-class>
      
         <mime-type>text/html</mime-type>
         <portlet-mode>VIEW</portlet-mode>
      
      <portlet-info>
         First Portlet
      </portlet-info>
   
</portlet-app>

<?xml version="1.0" standalone="yes"?>

   
      
         <instance-id>FirstInstance</instance-id>
         <portlet-ref>FirstPortlet</portlet-ref>
      
      
         <instance-id>SecondInstance</instance-id>
         <portlet-ref>SecondPortlet</portlet-ref>
      
   


can somebody help me please



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078901#4078901

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078901



More information about the jboss-user mailing list