Hi, i am getting frustrated yet still obssed with getting
Turbine up and running.
Also tryin to understand how it works.
HI did a
clean installation this morning and i get a null pointer
exception.
This is the procedure i followed (very
detailed)
1) Downloaded Turbine
2) Intalled turbine on
f:\turbine
3) set TOMCAT_HOME = f:\turbine on environment variables.
4)
used newapp utility: "newapp.bat jsptest"
5) started tomcat:
"f:\turbine\bin\startup.bat"
6) I used the browser and went
to
"http://localhost:8080/jsptest/servlet/jsptest"
the sample velocity works fine.
*Question a) ???: What gets called behind
the sceens when I make the call as above.
what pages,
screens,layouts?
7) I proceed to modify the property file
to make it work with JSP
F:\turbine\webapps\jsptest\WEB-INF\conf\TurbineResources.properties
I make the following
changes:
a) template.homepage=/index.jsp
b) layout.default=JspLayout
c) page.default=JspPage
d)
services.JspService.classname=org.apache.turbine.services.jsp.TurbineJspService
e)
services.TurbineTemplateService.default.extension=jsp
f)
services.TurbineTemplateService.template.path=/templates
g)
services.TurbineTemplateService.default.navigation=BaseJspNavigation
h)
services.TurbineTemplateService.default.screen=BaseJspScreen
i)
services.TurbineTemplateService.default.layout.template=/default.jsp
I add this new
section to the file
#
-------------------------------------------------------------------
#
# JSP S E R V I C
E
#
#
-------------------------------------------------------------------
j)
services.JspService.templates=/templates
k)
services.JspService.default.layout=/default.jsp
*Question
2) is this correct?
8) I download the Turbine source code to get the Jsp
Turbine Tag-libs.
F:\Apache-Turbine-20001128\src\tlds
First i break apart the jsp_examples.txt
into
F:\turbine\webapps\jsptest\templates\layouts\default.jsp
F:\turbine\webapps\jsptest\templates\navigations\top.jsp
F:\turbine\webapps\jsptest\templates\navigations\top.jsp
F:\turbine\webapps\jsptest\templates\screens\welcome.jsp
than i copy templates.tld file
to
F:\turbine\webapps\jsptest\WEB-INF\tlds
*Question
3) is this correct? Is this all to do regarding tlds. No modifications to the
JSP files,
are they all correct?
9) I try to access the site
using
http://localhost:8080/jsptest/servlet/jsptest/
and i get in the
browser:
"Error encountered processing a
template:
java.lang.NullPointerException"
and on the
console:
"Error: Error encountered processing
a template: /layouts/default.jsp"
What am i doing wrong. Am i
browsing the wrong way? I dont have a full
understanding how things get executed...
Any help would be
apreciated.
-----Original
Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of John McNally
Sent: Tuesday, November 28, 2000 12:08 PM
To:
Turbine
Subject: Re: JSP Service
> >I will try to
remember to look tonight (about 10 hours from now). But I
>
>think I placed the templates at root level and then the
template.path
> >properties would be empty.
>
> Ok, this
explains it to me: If your template.path is empty, in the init
> method
you don't modify the path at all, it stays empty. If now your
> template
filename starts with a slash, everything will be ok:
> This
won't work. Just try to use a non-empty path and you'll see what I mean!
>
Thanks,
>
ingo.
I think I will trust your conclusion. The code that alters
the path is
commented out to be removed after the code has been tested
further.
------------------------------------------------------------
To
subscribe:
[EMAIL PROTECTED]
To
unsubscribe:
[EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:
[EMAIL PROTECTED]
