You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Matthew King <md...@aracnet.com> on 2001/01/17 00:50:39 UTC

layoutsnull

I'm trying to get Velocity running with an existing Turbine site, but I keep
running into the same problem:

java.lang.Exception: TurbineTemplateService: getLayoutTemplateName() was
passed in a null value.

When I look in the velocity log, I can see this:

Tue Jan 16 15:39:52 PST 2001   [info] Velocity successfully started.
Tue Jan 16 15:40:30 PST 2001   [info] Attempting to find layoutsnull with
org.apache.velocity.runtime.resource.loader.FileResourceLoader
Tue Jan 16 15:40:30 PST 2001  [error] FileResourceLoader Error: cannot find
resource C:\sandbox\webapps\ROOT\templates\layoutsnull
Tue Jan 16 15:40:30 PST 2001   [info] Attempting to find layoutsnull with
org.apache.velocity.runtime.resource.loader.FileResourceLoader
Tue Jan 16 15:40:30 PST 2001  [error] FileResourceLoader Error: cannot find
resource C:\sandbox\bin\.\layoutsnull
Tue Jan 16 15:40:30 PST 2001  [error] java.lang.Exception: Can't find
layoutsnull!
Tue Jan 16 15:40:30 PST 2001  [error] Template.merge() failure. The document
is null, most likely due to parsing error.

Where is the 'layoutsnull' coming from?  I have tried tweaking various
settings in turbineResources.properties without any luck.

Any help would be appreciated!


Re: layoutsnull

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Matthew King wrote:
> 
> I'm trying to get Velocity running with an existing Turbine site, but I keep
> running into the same problem:
> 
> java.lang.Exception: TurbineTemplateService: getLayoutTemplateName() was
> passed in a null value.

I am no turbine guru, but this looks like a turbine config problem as
it's trying to get a template from the bin directory, which means the
velocity defaults are in effect : the default path to load templates
from is .

I would take this to the turbine list...

geir
 
> When I look in the velocity log, I can see this:
> 
> Tue Jan 16 15:39:52 PST 2001   [info] Velocity successfully started.
> Tue Jan 16 15:40:30 PST 2001   [info] Attempting to find layoutsnull with
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> Tue Jan 16 15:40:30 PST 2001  [error] FileResourceLoader Error: cannot find
> resource C:\sandbox\webapps\ROOT\templates\layoutsnull
> Tue Jan 16 15:40:30 PST 2001   [info] Attempting to find layoutsnull with
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> Tue Jan 16 15:40:30 PST 2001  [error] FileResourceLoader Error: cannot find
> resource C:\sandbox\bin\.\layoutsnull
> Tue Jan 16 15:40:30 PST 2001  [error] java.lang.Exception: Can't find
> layoutsnull!
> Tue Jan 16 15:40:30 PST 2001  [error] Template.merge() failure. The document
> is null, most likely due to parsing error.
> 
> Where is the 'layoutsnull' coming from?  I have tried tweaking various
> settings in turbineResources.properties without any luck.
> 
> Any help would be appreciated!

-- 
Geir Magnusson Jr.                               geirm@optonline.com
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity