[
https://issues.jboss.org/browse/GTNPORTAL-2871?page=com.atlassian.jira.pl...
]
Peter Palaga commented on GTNPORTAL-2871:
-----------------------------------------
Steps to reproduce:
{code}
cd /tmp
git clone
https://github.com/ppalaga/gatein-portal-quickstart.git
cd gatein-portal-quickstart
mvn clean install
cp -t $JBOSS_HOME/gatein/extensions
gatein-portal-extension/ear/target/gatein-portal-extension.ear
# restart JBoss
{code}
* Accessing
http://127.0.0.1:8080/portal/classic/page-just-added works as expected.
* Accessing
http://127.0.0.1:8080/portal/classic/ throws an error which is unexpected.
There is this error in JBoss log:
{code}
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed:
/UIHomePagePortlet.gtmpl: 24: unable to resolve class
org.gatein.quickstart.LinksAndVersions
@ line 24, column 5.
import org.gatein.quickstart.LinksAndVersions;
^
{code}
Note that the two gtmpls which demonstrate the issue are in
{{gatein-portal-extension/war/src/main/webapp/templates/groovy/webui/component/}} and
{{UIHomePagePortlet.gtmpl}} overrides the {{UIHomePagePortlet.gtmpl}} from {{portal.war}}.
Probably an improper class loader is used to handle it.
An overriding gtmpl does not see classes from its own war
---------------------------------------------------------
Key: GTNPORTAL-2871
URL:
https://issues.jboss.org/browse/GTNPORTAL-2871
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Peter Palaga
Probably a class loading issue. Steps to reproduce will follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira