3 Replies Latest reply on Aug 18, 2010 11:50 AM by cnestor

    Groovy Portlet Issue

    cnestor

       

      I am trying to add a new groovy template portlet to my GateIn portal.

       

      I deployed the GateIn portal under :

      JBOSS/server/default/deploy/gatein.ear

      I deployed my new portlet under

      JBOSS/server/default/deploy/testRomain.war

       

      Once I add the portlet to the portal (Application Registry/import applications) I have the following error:

      ERROR [portal:Lifecycle] Template: app:/groovy/testRomain/portlet/UITestRomainPortlet.gtmpl not found.

       

      I can see my portlet but the groovy template is of course not visible.

       

      The tutorial mentions:

      In src/main/resources/tomcat/, create a testRomain.xml file :

      <Context path="/test" docBase="../../../eXoProjects/portal/trunk/portlet/testPortletRomain/src/main/webapp"
      debug="0" reloadable="true" />
      docBase must be set to webapp path of the portlet when you are in the tomcat bin directory.


      How does that translate to a JBOSS installation?

       

      Thanks in advance.

       

      Cyril

        • 1. Re: Groovy Portlet Issue
          hoang_to

          It works on Tomcat?

           

            Difference between Tomcat and JBoss is that the extension mechanism is used by default in JBoss ( you could see an extra node on the navigation bar, the node is configured in the sample-ext.war ). Let's try to declare your web application as dependency of the extension portal to see if everything is ok

           

           

          Under the project exo.portal.sample.extension.config, in the conf/configuration.xml file you have

           

          <field name="dependencies">
                                      <collection type="java.util.ArrayList">
                                          <value>
                                              <string>eXoResources</string>
                                          </value>
                                          <value>
                                              <string>portal</string>
                                          </value>
                                          <value>
                                              <string>dashboard</string>
                                          </value>
                                          <value>
                                              <string>exoadmin</string>
                                          </value>
                                          <value>
                                              <string>eXoGadgets</string>
                                          </value>
                                          <value>
                                              <string>eXoGadgetServer</string>
                                          </value>
                                          <value>
                                              <string>rest</string>
                                          </value>
                                          <value>
                                              <string>web</string>
                                          </value>
                                          <!-- Do not start WSRP in extensions for now...
                                          <value profiles="jboss">
                                              <string>wsrp-producer</string>
                                          </value>-->
                                          <value>
                                              <string>sample-ext</string>
                                          </value>
                                      </collection>
                                  </field>

           

           

          Add a <value> element with 'testRomain' between <string> tag

           

           

          Hope that helps

          • 2. Re: Groovy Portlet Issue
            trong.tran

            Are you implementing a WebUI based Portlet ? Ensure the groovy/testRomain/portlet/UITestRomainPortlet.gtmpl file existent in your testRomain.war. If it's there already, you could provide more information what you had and what you did, so we can help more precisely ?

             

            Anyway, where do you take the tutorial ?

            The tutorial mentions:

            In  src/main/resources/tomcat/, create a testRomain.xml file :

            <Context path="/test"  docBase="../../../eXoProjects/portal/trunk/portlet/testPortletRomain/src/main/webapp" 
            debug="0" reloadable="true" />
            docBase must be set to webapp  path of the portlet when you are in the tomcat bin directory.

            As above, creating a testRomain.xml file inside src/main/resources/tomcat/ is only for developing a web app easily in Tomcat server, so you do not need to care about it

            • 3. Re: Groovy Portlet Issue
              cnestor

              Thx all for your answers. It was a silly error on my part. I had a typo in the template name  ' UITestRomainPortlet.gtmp' instead of ' UITestRomainPortlet.gtmpl'.