We have done a lot of work with building our framework using javaee and osgi. As a template system JSP was selected as the fastest and very mature.
However, we came across one very serious problem. As we use osgi, we have one web application bundle - wab. This bundle contains only jsp,css,js,images,flash + configuration xml files. All java classes are in different bundles - jar.
The problem is that as I understand delopers of jsp didn't provide access to classloader and because of that developers of java-ee can't make jsp compiler use classes outside wab file. The problem is described here - https://java.net/jira/browse/GLASSFISH-11208# . The java-ee developers keep silence.
With this problem it's really very diffucult to work with code as only what you can do is reflection. That's why we want to move from jsp to freemarker.
So my question - does freemarker provide all functionality to work with osgi?