velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger I Martin PhD" <hypernex...@hypernexinc.com>
Subject Re: templates finding associated classes with jdk1.4 and packages
Date Mon, 02 Sep 2002 10:32:44 GMT
Does anyone have a working deployed servlet_sample2 that you can war up and
send to me?
Roger
----- Original Message -----
From: "Roger I Martin PhD" <hypernexdev@hypernexinc.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Tuesday, August 27, 2002 11:13 AM
Subject: Re: templates finding associated classes with jdk1.4 and packages


> Thanks,
> Running Apache Tomcat/4.1
> Cvs'ed velocity Monday morning.  Built successfully.
>
> SampleServlet2 shows a blank page; either file or class loader style and
the
> velocity.log says
> Tue Aug 27 08:53:18 EDT 2002   [info] Velocity successfully started.
> Tue Aug 27 08:53:56 EDT 2002  [error] ResourceManager : unable to find
> resource 'sample.vm' in any resource loader.
> the velocity.log is at the tomcat home.  the ServletExample2 was installed
> as the readme.txt states.
> 4) Setup a webapp under tomcat :
>
>  - make a new 'webapp' : in tomcat's webapps directory,
>    make a new directory structure as follows :
>
>       velexample
>       velexample/WEB-INF
>       velexample/WEB-INF/lib
>       velexample/WEB-INF/classes
>
>
>  - put the velocity-1.1-rc1.jar (or newer) into the velexample/WEB-INF/lib
> directory
>
>  - put the SampleServlet2.class into the velexample/WEB-INF/classes
> directory
>
>  - put the templates.jar into the velexample/WEB-INF/lib directory.
>
>  - put the web.xml into the velexample/WEB-INF directory
>
>  - place a copy of velocity.properties.classloader, but rename to be
> velocity.properties
>
>  - at this point, you should be able to restart tomcat and access the
> servlet.
>
>  - so bounce tomcat, go into your web brower and go to :
>
>     http://<your computer's ip
> address>:8080/velexample/servlet/SampleServlet2
>
>  - you should see the sample output.
>
> At this point, you are accessing the template via the
> ClasspathResourceLoader.  Note also
> that the velocity.log will be placed in the velexample directory. (root of
> your webapp.)
>
>
> Setting up to use the FileResourceLoader
> ----------------------------------------
>
> 3) Build this servlet example : in build - ant examples
>
> 4) Setup a webapp under tomcat :
>
>  - make a new 'webapp' : in tomcat's webapps directory,
>    make a new directory structure as follows :
>
>       velexample
>       velexample/templates
>       velexample/WEB-INF
>       velexample/WEB-INF/lib
>       velexample/WEB-INF/classes
>
>
>  - put the velocity-1.1-rc1.jar (or newer) into the velexample/WEB-INF/lib
> directory
>
>  - put the SampleServlet2.class into the velexample/WEB-INF/classes
> directory
>
>  - put the sample.vm into the velexample/templates directory.
>
>  - put the web.xml into the velexample/WEB-INF directory
>
>  - place a copy of velocity.properties.fileloader, but rename to be
> velocity.properties
>
>  - at this point, you should be able to restart tomcat and access the
> servlet.
>
>  - so bounce tomcat, go into your web brower and go to :
>
>     http://<your computer's ip
> address>:8080/velexample/servlet/SampleServlet2
>
> plus the dependent jar files into
>       velexample/WEB-INF/lib
>
> --Roger
>
> ----- Original Message -----
> From: "Geir Magnusson Jr." <geirm@optonline.net>
> To: <velocity-user@jakarta.apache.org>
> Sent: Tuesday, August 27, 2002 10:05 AM
> Subject: Re: templates finding associated classes with jdk1.4 and packages
>
>
> > On 8/27/02 8:07 AM, "Roger I Martin PhD" <hypernexdev@hypernexinc.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I am trying to use the VelocityGenerator in Cocoon and never see a
> template
> > > use stuff from it's associated Java class.  Tried the servlet-example2
> as
> > > well.  Is velocity working with j2sdk1.4? And can the associated
classes
> have
> > > packages?  DOes anyone have a working example?
> >
> > Any specific errors?
> >
> > --
> > Geir Magnusson Jr.
> > Research & Development, Adeptra Inc.
> > geirm@adeptra.com
> > +1-203-247-1713
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:velocity-user-help@jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:velocity-user-help@jakarta.apache.org>
>



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


Mime
View raw message