|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Problem with #include file in index.apt.vmHi 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@...) - Technical Leader, NMTG XMP - +34-638-083-675 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Problem with #include file in index.apt.vmHow 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@...> 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@...) - Technical Leader, NMTG XMP - > +34-638-083-675 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Problem with #include file in index.apt.vmHi
This is a Maven site based on apt files. Regards Nathan On 29/05/2009 22:24, "Nathan Bubna" <nbubna@...> 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@...> 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@...) - Technical Leader, NMTG XMP - >> +34-638-083-675 >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > -- Nathan Sowatskey (nsowatsk@...) - Technical Leader, NMTG XMP - +34-638-083-675 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Problem with #include file in index.apt.vmHmm. 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@...> wrote: > Hi > > This is a Maven site based on apt files. > > Regards > > Nathan > > > On 29/05/2009 22:24, "Nathan Bubna" <nbubna@...> 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@...> 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@...) - Technical Leader, NMTG XMP - >>> +34-638-083-675 >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@... >>> For additional commands, e-mail: user-help@... >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> > > -- > Nathan Sowatskey (nsowatsk@...) - Technical Leader, NMTG XMP - > +34-638-083-675 > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Problem with #include file in index.apt.vmThanks, did that too :-)
Regards Nathan On 29/05/2009 22:38, "Nathan Bubna" <nbubna@...> wrote: > 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@...> wrote: >> Hi >> >> This is a Maven site based on apt files. >> >> Regards >> >> Nathan >> >> >> On 29/05/2009 22:24, "Nathan Bubna" <nbubna@...> 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@...> >>> 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 >>>> e >>>> .java:62) >>>> at >>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resou>>>> r >>>> ceManagerImpl.java:415) >>>> at >>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resour>>>> c >>>> 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@...) - Technical Leader, NMTG XMP - >>>> +34-638-083-675 >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@... >>>> For additional commands, e-mail: user-help@... >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@... >>> For additional commands, e-mail: user-help@... >>> >> >> -- >> Nathan Sowatskey (nsowatsk@...) - Technical Leader, NMTG XMP - >> +34-638-083-675 >> >> -- Nathan Sowatskey (nsowatsk@...) - Technical Leader, NMTG XMP - +34-638-083-675 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |