velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nbu...@gmail.com>
Subject Re: Problem with #include file in index.apt.vm
Date Fri, 29 May 2009 20:38:38 GMT
Hmm.  I would consider asking the Maven user list.  I'm not familiar
with how the configure/setup Velocity.

On Fri, May 29, 2009 at 1:30 PM, Nathan Sowatskey <nsowatsk@cisco.com> wrote:
> Hi
>
> This is a Maven site based on apt files.
>
> Regards
>
> Nathan
>
>
> On 29/05/2009 22:24, "Nathan Bubna" <nbubna@gmail.com> wrote:
>
>> How are you using Velocity?  Are you using the singleton?  A
>> VelocityEngine?  Are you using a servlet or a framework that handles
>> Velocity for you?  Is this a webapp?
>>
>> On Fri, May 29, 2009 at 11:26 AM, Nathan Sowatskey <nsowatsk@cisco.com> wrote:
>>> Hi all
>>>
>>> I am trying to use this feature:
>>>
>>> http://velocity.apache.org/engine/devel/user-guide.html#Include
>>>
>>> I have this directive in an index.apt.vm file that is in src/site/apt:
>>>
>>>  #include("user_stories_table.txt")
>>>
>>> I also have the user_stories_table.txt file in the same directory.
>>>
>>> The #include does not find the file. I have tried moving the file to various
>>> other locations, still won't find it. I have tried renaming the file to .vm
>>> in the apt dir, won't find it, I have tried ....
>>>
>>> I have also tried creating a velocity.properties file with various loader
>>> properties in it. But I don't know where to put the velocity.properties file
>>> so it is picked up, nor am I sure what the root of the relative paths will
>>> be, so I can't be sure what the property value should be.
>>>
>>> The error is below.
>>>
>>> Any help will be greatly appreciated!
>>>
>>> Many thanks
>>>
>>> Nathan
>>>
>>> When I run mvn site, I get:
>>>
>>> [ERROR] Cannot process content resource
>>> [ERROR] java.lang.NullPointerException
>>>    at java.io.Reader.<init>(Reader.java:61)
>>>    at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
>>>    at
>>> org.apache.velocity.runtime.resource.ContentResource.process(ContentResource
>>> .java:62)
>>>    at
>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
>>> ceManagerImpl.java:415)
>>>    at
>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
>>> eManagerImpl.java:335)
>>>    at
>>> org.apache.velocity.runtime.RuntimeInstance.getContent(RuntimeInstance.java:
>>> 1152)
>>>    at
>>> org.apache.velocity.runtime.directive.Include.renderOutput(Include.java:225)
>>>
>>>
>>>
>>>
>>> --
>>> Nathan Sowatskey (nsowatsk@cisco.com) - Technical Leader, NMTG XMP -
>>> +34-638-083-675
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>>> For additional commands, e-mail: user-help@velocity.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: user-help@velocity.apache.org
>>
>
> --
> Nathan Sowatskey (nsowatsk@cisco.com) - Technical Leader, NMTG XMP -
> +34-638-083-675
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message