AnsweredAssumed Answered

Alfresco 3.4.b unaccessible due to 'Cannot locate template'

Question asked by leonk on Dec 1, 2010
Latest reply on Dec 3, 2010 by leonk
Hello,

I'm running 3.4.b version.

Alfresco is aunaccessible and throwing those erros:


10:46:01,979 ERROR [org.alfresco.web.scripts.forms.FormUIGet] 11010026 Cannot locate template processor for template org/alfresco/repository/forms/formdefinition.post.json
11:00:59,969 WARN  [org.springframework.extensions.webscripts.WebTemplateProcessor] Unable to find a valid template path for uri: org/alfresco/global/slingshot-login
11:01:00,002 ERROR [org.springframework.extensions.surf.render.RenderService] Unable to process template: slingshot-login
11:01:00,002 ERROR [org.springframework.extensions.surf.FrameworkUtil] An exception occurred while rendering a page: slingshot-login
11:01:00,005 ERROR [org.springframework.extensions.surf.FrameworkUtil] org.springframework.extensions.surf.exception.RendererExecutionException: WebTemplateProcessor failed to process template uri: org/alfresco/global/slingshot-login
        at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:370)
        at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
        at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:581)
        at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:134)
        at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:135)
        at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:70)
        at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:135)
        at org.springframework.extensions.surf.render.RenderService.startPageRenderer(RenderService.java:633)
        at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:610)
        at org.springframework.extensions.surf.render.PresentationUtil.renderPage(PresentationUtil.java:74)
        at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:358)
        at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:240)
        at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:167)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.extensions.webscripts.WebScriptException: 11010000 Failed to retrieve template org/alfresco/global/slingshot-login.ftl
        at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.hasTemplate(FTLTemplateProcessor.java:254)
        at org.springframework.extensions.webscripts.TemplateProcessorRegistry.findValidTemplatePath(TemplateProcessorRegistry.java:214)
        at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:331)
        … 41 more
Caused by: java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause
        at freemarker.cache.TemplateCache.throwLoadFailedException(TemplateCache.java:400)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:282)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
        at freemarker.template.Configuration.getTemplate(Configuration.java:487)
        at freemarker.template.Configuration.getTemplate(Configuration.java:452)
        at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.hasTemplate(FTLTemplateProcessor.java:245)
        … 43 more
Caused by: java.io.FileNotFoundException: /srv/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/global/slingshot-login.ftl (Too many open files)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:124)
        at org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateSource.getReader(ClassPathStore.java:918)
        at org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateSource.access$500(ClassPathStore.java:893)
        at org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateLoader.getReader(ClassPathStore.java:883)
        at freemarker.cache.MultiTemplateLoader$MultiSource.getReader(MultiTemplateLoader.java:179)
        at freemarker.cache.MultiTemplateLoader.getReader(MultiTemplateLoader.java:133)
        at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:442)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:361)
        at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
        at freemarker.template.Configuration.getTemplate(Configuration.java:487)
        at freemarker.template.Configuration.getTemplate(Configuration.java:452)
        at org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.hasTemplate(FTLTemplateProcessor.java:245)
        at org.springframework.extensions.webscripts.TemplateProcessorRegistry.findValidTemplatePath(TemplateProcessorRegistry.java:214)
        at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:331)
        at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
        at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:581)
        at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.calculateComponentDependencies(TemplateInstanceRenderer.java:69)
        at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:126)
        … 38 more

Any solution/hint?

Cheers,
Leon

Outcomes