> Due to recent demands for an example application I decided to throw
> together a simple phone listing that demonstrates how to use Turbine.
>
> You can get it at - http://www.miceda-data.com - it's about 16k.
Ok, I have had problems to set this up. Here is what I did:
* Downloaded the tar file, installed under WEBAPPS/turbine-sample
(using Tomcat). Copied the tdksample.jar file to
WEBAPPS/turbine-sample/lib.
* Downloaded the Aug 18 snapshot of Turbine. Copied all its jar
files to WEBAPPS/turbine-sample/lib.
* Configured TR.props and WM.props. Setup the proper name, user
and password for a MySQL database.
* When I hit the /servlet/phonebook page, I get the following
exception:
Exception: java.lang.NullPointerException
at
org.apache.turbine.services.webmacro.TurbineWebMacroService.getContext(Turbi
neWebMacroService.java:136)
at
org.apache.turbine.services.webmacro.TurbineWebMacro.getContext(TurbineWebMa
cro.java:106)
at
org.apache.turbine.modules.pages.WebMacroSitePage.doBuild(WebMacroSitePage.j
ava:134)
at org.apache.turbine.modules.Page.build(Page.java:81)
at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:111)
at Turbine.doGet(Turbine.java:298)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
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:484)
* The log file for WM is empty.
* The Java code causing the exception is:
try
{
org.apache.turbine.util.Log.note ( "WebMacroService
init()....starting!");
initWebContext();
setInit(true);
org.apache.turbine.util.Log.note ( "WebMacroService
init()....finished!");
}
catch (Exception e)
{
org.apache.turbine.util.Log.error ( "Cannot initialize
TurbineWebMacroService!" );
org.apache.turbine.util.Log.error (e);
}
which leads me to think it is not finding the WM.props file.
* I checked against an older app, and noticed that the entry names
in TR.props have changed in the past releases. My old, working app
has
webmacro.properties=/webapps/sonda/WEB-INF/conf/WebMacro.properties
the new one has
services.TurbineWebMacroService.properties=/WEB-INF/conf/WebMacro.properties
Which one is correct? I tried including /webapps/turbine-sample in
the path, but nothing changed. At this point, given these changes in
the past releases, I started to doubt what I considered "common knowledge"
about Turbine...
Any hints?
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]