I use Maven, and if you look at struts 2.0.11.1's dependencies
(http://www.mvnrepository.com/artifact/org.apache.struts/struts2-core/2.0.11.1)
you'll see that it's Freemarker version 2.3.8 it depends on. I can't
override this in Maven, even if I attempt to exclude it and force the latest
version of Freemarker:
....
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.0.11</version>
<exclusions>
<exclusion>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.12</version>
</dependency>
....
Cheers
Jonny
Jeromy Evans - Blue Sky Minds wrote:
>
> Jonny Cavell wrote:
>> I have a problem that seems to occur periodically.
>>
>> My freemarker templates, served by struts2, stop appearing - I get a
>> blank
>> page. There are no useful messages in the logs, other than saying that it
>> couldn't find the template (which it could find previously).
>>
>> First question - does anybody know what this problem might be?
>>
>>
> No, other than a classpath/deployment problem.
>> I would like to upgrade to the latest version of Freemarker. However,
>> Struts2 in its wisdom has locked me down to version 2.3.8, and this was
>> released way back in 2006. Are there any plans to resolve this issue?
>>
>>
> The 2.1.1 version of Struts uses FreeMarker 2.3.11 You may be able to
> replace the 2.3.8 jar with the 2.3.11 jar without problems.
>
> I doubt the problem is with FreeMarker. It's more likely to be the
> FreeMarkerManager included with Struts 2 that's responsible for
> searching for templates in the classpath.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Freemarker-%28old-version-that-struts2-uses%29-disappearing-pages-tp16467449p16487687.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]