AnsweredAssumed Answered

XSL Include in WCM Template, incorrect FileNotFoundException

Question asked by cgarnoud on Aug 1, 2008
Latest reply on May 31, 2010 by dman776
Hello,

I am working on a project and we are using Alfresco Enterprise 2.2.0 with Alfresco WCM 2.2.0. Currently I am trying to get my WebForm XSLT renditions to render and run into trouble when I try to use xsl:includes.

Currently I am totally lost on why and how the xsl:include is failing. I updated the main Tomcat log4j with:

log4j.logger.org.apache.xalan.templates = debug
log4j.logger.org.alfresco.web.forms=debug
log4j.logger.org.alfresco.web.bean =debug

The debug information shows that the rendering engine is unable to retrieve the included xsl file (/templates-common/content-page.html.xsl, full path: http://preview.admin.fimf.www--sandbox.10-36-184-74.ip.alfrescodemo.net:8180/templates-common/content-page.html.xsl).

When I however open a remote desktop connection to the server, and enter the url mentioned in the below log, I can actually access the file and see all its contents. (This indicates that the virtual tomcat is running correctly I assume?)

Is the rendering engine using some sort of other DNS, rather than the system one, or do I need to set additional configuration settings?

I don't get any security warnings in my windows Event viewer, or in the firewall.

This doesn't seem to be a caching issue, as I have restarted the tomcat's and still get the same problem.


09:16:29,532 DEBUG [web.forms.XSLTRenderingEngine] request to resolve href /templates-common/content-page.html.xsl using base C:\Tomcat 5.5\dummy.xsl
09:16:29,532 DEBUG [web.forms.RenderingEngineTemplateImpl] request to resolve resource /templates-common/content-page.html.xsl webapp url is http://preview.admin.fimf.www--sandbox.10-36-184-74.ip.alfrescodemo.net:8180 and data dictionary workspace is workspace://SpacesStore/d06dd4e3-5f89-11dd-9e9f-39ce74196925
09:16:29,532 DEBUG [web.forms.RenderingEngineTemplateImpl] loading http://preview.admin.fimf.www--sandbox.10-36-184-74.ip.alfrescodemo.net:8180/templates-common/content-page.html.xsl
09:16:29,547 DEBUG [web.forms.RenderingEngineTemplateImpl] java.io.FileNotFoundException: http://preview.admin.fimf.www--sandbox.10-36-184-74.ip.alfrescodemo.net:8180/templates-common/content-page.html.xsl
09:16:29,547 DEBUG [web.forms.XSLTRenderingEngine] error unable to resolve href /templates-common/content-page.html.xsl
09:16:29,563 ERROR [ui.common.Utils] error regenerating rendition using themelist.html.xsl: errors encountered creating tranformer …
unable to resolve href /templates-common/content-page.html.xsl

org.alfresco.web.forms.RenderingEngine$RenderingException: errors encountered creating tranformer …
unable to resolve href /templates-common/content-page.html.xsl

   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:490)
   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:377)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:328)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:301)
   at org.alfresco.web.forms.FormInstanceDataImpl.regenerateRenditions(FormInstanceDataImpl.java:255)
   at org.alfresco.web.bean.wcm.EditWebContentWizard.saveContent(EditWebContentWizard.java:218)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.finishImpl(CreateWebContentWizard.java:390)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:122)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:119)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:241)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:171)
   at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:128)
   at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:540)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Unknown Source)
09:16:29,578 ERROR [ui.common.Utils] error regenerating rendition using themelist-all.html.xsl: errors encountered creating tranformer …
unable to resolve href /templates-common/content-page.html.xsl

org.alfresco.web.forms.RenderingEngine$RenderingException: errors encountered creating tranformer …
unable to resolve href /templates-common/content-page.html.xsl

   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:490)
   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:377)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:328)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:301)
   at org.alfresco.web.forms.FormInstanceDataImpl.regenerateRenditions(FormInstanceDataImpl.java:255)
   at org.alfresco.web.bean.wcm.EditWebContentWizard.saveContent(EditWebContentWizard.java:218)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.finishImpl(CreateWebContentWizard.java:390)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:122)
   at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:119)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:241)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:171)
   at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:128)
   at org.alfresco.web.bean.wizard.WizardManager.finish(WizardManager.java:540)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Unknown Source)

Outcomes