-
1. Re: Groovy Portlet Issue
hoang_to Aug 14, 2010 5:39 AM (in response to cnestor)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 Aug 15, 2010 7:35 AM (in response to cnestor)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 Aug 18, 2010 11:50 AM (in response to trong.tran)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'.