[
https://issues.jboss.org/browse/GTNPORTAL-2871?page=com.atlassian.jira.pl...
]
Peter Palaga commented on GTNPORTAL-2871:
-----------------------------------------
bq. I need to discuss with Julien Viet to see if we can (and should) fix this
OK, waiting for the feedback.
bq. one workround for now is: if you want to share a class on difference war, it should be
in a jar, and you can put it in to the AS/lib
If {{AS/lib}} means {{JBOSS_HOME/lib}} then it cannot work because there is no such
directory in JBoss AS 7.1.x. But one could perhaps use [Global
Modules|https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7#Cl...].
But that would probably be quite limited anyway, because the classes in such a module
could not depend on any classes coming from a war.
The workaround I have used in my extension quickstart was to embed the class directly in
{{UIHomePagePortlet.gtmpl}}:
https://github.com/gatein/gatein-portal-quickstart/blob/master/gatein-por...
This was possible because the class is very simple and does not have any external
dependencies.
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