PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-12202

ServletVelocityResourceListener receives an error - _unstyled init.vm does not map to a servlet context


    • Type: Bug Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.0.6 GA
    • Fix Version/s: None
    • Labels:
    • Environment:
      LR 6.0.3, Solaris 10, SPARC, Java 6, Tomcat 6 (Liferay CE Bundle) clustered, MySQL
    • Branch Version/s:
    • Similar Issues:
      Show 5 results 


      We have set up a SPARC box with 2 separate tomcat instances (liferay bundle) clustered together. Everything was going good when all of the sudden we receive this error which renders the liferay setup unusable and thus has to be restarted:

      2010-08-20 04:02:39,902 <TP-Processor12> ERROR [ServletVelocityResourceListener:74] - SERVLET_CONTEXT/html/themes/_unstyled/templates/init.vm is not valid because does not map to a servlet context
      2010-08-20 04:02:39,913 <TP-Processor12> ERROR [velocity:151] - ResourceManager : unable to find resource 'SERVLET_CONTEXT/html/themes/_unstyled/templates/init.vm' in any resource loader.
      2010-08-20 04:02:39,922 <TP-Processor12> ERROR [velocity:151] - #parse(): cannot find template 'SERVLET_CONTEXT/html/themes/unstyled/templates/init.vm', called at seg-default-theme_SERVLET_CONTEXT/templa
      tes/portal_normal.vm[line 6, column 1]
      2010-08-20 04:02:39,931 <TP-Processor12> ERROR [IncludeTag:227] - Current URL /web/guest generates exception: Unable to find resource 'SERVLET_CONTEXT/html/themes/_unstyled/templates/init.vm'
      2010-08-20 04:02:39,952 <TP-Processor12> ERROR [IncludeTag:154] - org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'SERVLET_CONTEXT/html/themes/_unstyled/templates/init.vm'
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(
      at org.apache.velocity.runtime.directive.Parse.render(
      at org.apache.velocity.runtime.parser.node.ASTDirective.render(
      at org.apache.velocity.runtime.parser.node.SimpleNode.render(
      at org.apache.velocity.Template.merge(
      at org.apache.velocity.Template.merge(
      at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(
      at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(
      at com.liferay.portal.kernel.velocity.VelocityEngineUtil.mergeTemplate(
      at com.liferay.taglib.util.ThemeUtil.includeVM(
      at com.liferay.taglib.util.ThemeUtil.include(
      at com.liferay.taglib.theme.IncludeTag.include(
      at com.liferay.taglib.util.IncludeTag._doInclude(
      at com.liferay.taglib.util.IncludeTag.doEndTag(
      at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(
      at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_c_005fotherwise_005f0(
      at org.apache.jsp.html.common.themes.portal_jsp._jspService(

      Could anyone shed some light on this issue? A work around?



        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1738d 8h 23m 1 Michael Saechang 27/May/15 2:57 PM


          • Votes:
            28 Vote for this issue
            26 Start watching this issue


            • Created:
              Days since last comment:
              2 years, 23 weeks, 1 day ago


                Structure Helper Panel