padcoe
Abril 15, 2009, 8:13am
#1
Fala feras
Estou com o seguinte erro:
09:42:25,546 INFO [STDOUT] 2009-04-15 09:42:25 ERROR [http-localhost%2F127.0.0.1-8080-6] (CommonsLogger.java:23) - Could not load the FreeMarker template named ‘submit-close’:
09:42:25,546 INFO [STDOUT] 2009-04-15 09:42:25 ERROR [http-localhost%2F127.0.0.1-8080-6] (CommonsLogger.java:23) - Attempted: /template/ajax/submit-close.ftl
09:42:25,546 INFO [STDOUT] 2009-04-15 09:42:25 ERROR [http-localhost%2F127.0.0.1-8080-6] (CommonsLogger.java:23) - The TemplateLoader provided by the FreeMarker Configuration was a: freemarker.cache.MultiTemplateLoader
09:42:25,546 INFO [STDOUT] 2009-04-15 09:42:25 ERROR [http-localhost%2F127.0.0.1-8080-6] (CommonsLogger.java:27) - error when rendering
java.io.FileNotFoundException: Template /template/ajax/submit-close.ftl not found.
at freemarker.template.Configuration.getTemplate(Configuration.java:489)
at freemarker.template.Configuration.getTemplate(Configuration.java:452)
at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:120)
Não sei onde achar esse arquivo que está faltando. Alguém pode me dar uma força?
Abs
Opa…
em que tag vc esta usando o theme ajax??
os templates freemarkers vem dentro do pacote do struts 2, e ele só vai procurar em lugar diferente se vc tiver uma pasta template criada na sua aplicaçã web, com a pasta template, e dentre de template a pasta ajax…
mas ele só procura na sua pasta, se dentro dela tiver algum arquivo ftl (seria como sobrescrever o ftl que fica dentro do pacote do struts)
abç
padcoe
Abril 15, 2009, 9:15am
#3
as tags são:
<s:head theme="ajax"/>
<s:submit theme="ajax"/>
Eu estou com o jar struts2-core e o freemarker.jar no meu classpath. Preciso de mais algum?