On Tue, 3 Oct 2000 [EMAIL PROTECTED] wrote:

You should probably comment out the velocity service, that
looks like what's causing your problem. The TurbineVelocityService
is still not fully tested, and certainly won't work if you
don't have the templates setup.

Are you using the Turbine Development Kit (TDK)? You should
be using that and you will be up and running in minutes. Velocity
has not been plugged into the TDK yet because it isn't ready.

Again, use the TDK:

http://java.apache.org/turbine/tdk/

jvz.


> Hi,
> 
> I'm runing tomcat + turbine (latest from cvs snapshots), and can't get thing
> to run right.
> 
> When I call up the defualt turbine page I get a response form turbine, but
> the page looks broken. In the turbine.log I get
> 
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- VelocityService early
> init()....starting!
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- VelocityService
> properties:
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  --
> classname:org.apache.turbine.services.velocity.TurbineVelocityService
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- templates:/templates
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  --
> properties:/WEB-INF/conf/velocity.properties
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- VelocityService is using
> /home/dudgeon/apache/jakarta/tomcat/webapps/ROOT/WEB-INF
> /conf/velocity.properties
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- template path:
> /home/dudgeon/apache/jakarta/tomcat/webapps/ROOT/templates
> [Tue Oct 03 07:56:22 GMT+00:00 2000] --  ERROR  -- Failed to set up Velocity
> templates:
> [Tue Oct 03 07:56:22 GMT+00:00 2000] --  ERROR  --
>         Exception:  java.lang.NullPointerException
>         Stack Trace follows:
>         java.lang.NullPointerException
>         at
> org.apache.velocity.runtime.Runtime.initTemplateLoader(Runtime.java:178)
>         at
> org.apache.turbine.services.velocity.TurbineVelocityService.initVelocity(Tur
> bineVelocityService.java:336)
>         at
> org.apache.turbine.services.velocity.TurbineVelocityService.init(TurbineVelo
> cityService.java:123)
>         at
> org.apache.turbine.services.TurbineBaseService.init(TurbineBaseService.java:
> 113)
>         at
> org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.
> java:153)
>         at
> org.apache.turbine.services.TurbineServices.initServices(TurbineServices.jav
> a:218)
>         at org.apache.turbine.Turbine.init(Turbine.java:163)
>         at
> org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
>         at
> org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160)
>         at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> )
>         at java.lang.Thread.run(Thread.java:475)
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- VelocityService early
> init()....finished!
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- TemplateService
> init()....starting!
> [Tue Oct 03 07:56:22 GMT+00:00 2000] -- NOTICE  -- TemplateService
> init()....finished!
> 
> 
> What are these velocity templates and where do I find them?
> 
> Many thanks
> 
> 
> Tim
> 
> 
> 
> --------------------------------------------------
> DISCLAIMER: This message contains proprietary
> information some or all of which may be
> confidential and/or legally privileged. It is for
> the intended recipient only who may use and apply
> the information only for the intended purpose.
> Internet communications are not secure and
> therefore the British Biotech group does not
> accept legal responsibility for the contents of
> this message. Any views or opinions presented are
> only those of the author and not those of the
> British Biotech group. If you are not the intended
> recipient please delete this e-mail and notify the
> author immediately by calling ++44 (0)1865 748747;
> do not use, disclose, distribute, copy, print or
> rely on this e-mail.
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 
> 

-- 

Jason van Zyl
[EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to