What worked for me was to strip of the initial slash within the
<param-value> element.
old -> /WEB-INF/conf/TurbineResources.properties
new -> WEB-INF/conf/TurbineResources.properties
Now, onto some other issues...
Here's my system info...
Solaris 2.6
JDK 1.2
Turbine just checked out of CVS
Tomcat 3.1 binary build
I'm getting a NPE on line 135 of TurbineWebMacroService.getContext().
The line is creating a new instance of a WebContext, passing in the request
and response from the RunData object. Is the same issue as Dave reported
last night in regards to people not logged in or being a 'guest'?
Also, within the war-webmacro.html file, the url to initially get to Turbine
should be http://www.myserver.com/myapp/servlet/Turbine instead of
http://www.myserver.com/myapp/Turbine. The reason for this is because you
have to specify the url-mapping within the web.xml file for Tomcat to
'strip' out the servlet path.
On these same lines, I haven't been able to get Turbine to work when mapping
the url to take out the 'servlet.' It seems that Tomcat ignores the
redirection within Turbine and tries to find a physical file called '
/myapp/Turbine/template/index.wm,' for example.
Here's a diff for the url problem. Any help on other things would be
greatly appreciated.
thanks,
josh
Index: war-webmacro.html
===================================================================
RCS file: /products/cvs/turbine/turbine/docs/war-webmacro.html,v
retrieving revision 1.3
diff -u -r1.3 war-webmacro.html
--- war-webmacro.html 2000/05/07 04:51:23 1.3
+++ war-webmacro.html 2000/05/09 23:53:48
@@ -68,7 +68,7 @@
over to the <i>TOMCAT_HOME/webapps/</i> directory and rename it to
something
logical like your application's name. The URL to access the initial
page
in the system will then be something like this:
-<blockquote><i>http://www.server.com/myapp/Turbine</i></blockquote>
+<blockquote><i>http://www.server.com/myapp/servlet/Turbine</i></blockquote>
You will need to edit the <i>conf/*.properties</i> files to do the rest
of your setup and configuration. In the <i>Webmacro.properties</i>
file,
you will want to set your <i>TemplatePath=</i> to be the full path to
your
----- Original Message -----
From: Thomas Krebs <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Tuesday, May 09, 2000 1:59 PM
Subject: Re: Path of TurbineResources.properties?
> Jon,
>
> I checked my installation, I have Turbine 1.55 installed. Attached you'll
> find my web.xml file. I actually tried to place the properties file under
> the ROOT context in WEB-INF/conf as specified in the file you provided
> without any success. Indeed it seems that turbine is searching for the
> property file in **all** defined contexts as the error messages in
> servlet.log indicate.
> Besides the errors in the servlet.log file tomcat is throwing a
> NullPointerException while initializing the servlet in Log.init within
> TurbineResource.GetString(...).
>
> --- web.xml stored in {TOMCAT_HOME}/conf --- mime mappings
cut-off ---
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
> <web-app>
> <servlet>
> <servlet-name>
> default
> </servlet-name>
> <servlet-class>
> org.apache.tomcat.servlets.DefaultServlet
> </servlet-class>
> <load-on-startup>
> -2147483646
> </load-on-startup>
> </servlet>
> <servlet>
> <servlet-name>
> invoker
> </servlet-name>
> <!--
> org.apache.tomcat.servlets.NoInvokerServlet
> -->
> <servlet-class>
> org.apache.tomcat.servlets.InvokerServlet
> </servlet-class>
> </servlet>
> <servlet>
> <servlet-name>
> jsp
> </servlet-name>
> <servlet-class>
> org.apache.jasper.runtime.JspServlet
> </servlet-class>
>
> <!-- uncomment the following to use Jikes for JSP compilation
>
> <init-param>
> <param-name>jspCompilerPlugin</param-name>
>
> <param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
> </init-param>
>
> -->
>
> <load-on-startup>
> -2147483646
> </load-on-startup>
> </servlet>
>
>
> <servlet>
> <servlet-name>
> Turbine
> </servlet-name>
> <servlet-class>
> Turbine
> </servlet-class>
> <init-param>
> <param-name>
> properties
> </param-name>
> <param-value>
> /WEB-INF/conf/TurbineResources.properties
> </param-value> </init-param>
> <load-on-startup>
> -2147483646
> </load-on-startup>
> </servlet>
>
> <servlet>
> <servlet-name>
> org.apache.cocoon.Cocoon
> </servlet-name>
> <servlet-class>
> org.apache.cocoon.Cocoon
> </servlet-class>
> <init-param>
> <param-name>
> properties
> </param-name>
> <param-value>
>
/usr/local/java-apache/jakarta-tomcat/conf/cocoon.properties
> </param-value>
> </init-param>
> <load-on-startup>
> -2147483646
> </load-on-startup>
> </servlet>
>
>
> --- mime mappings cut-off ---
>
>
> ----- Original Message -----
> From: "jon *" <[EMAIL PROTECTED]>
> To: "Turbine" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 09, 2000 2:31 AM
> Subject: Re: Path of TurbineResources.properties?
>
>
> > on 5/8/2000 3:09 PM, Thomas Krebs <[EMAIL PROTECTED]> wrote:
> >
> > > I have last weeks Turbine drop installed on Suse Linux 6.4, Tomcat
3.1,
> > > Apache 1.3.12. I defined the servlet as desribed in the documentation
in
> the
> > > web.xml file in {TOMCAT_HOME}/conf, passing as init parameter the
> absolute
> > > path to TurbineResources.properties which I stored also in
> > > {TOMCAT_HOME}/conf. However, when starting Tomcat, I received an
> exception
> > > indicating a problem while loading the TurbineResources.properties
file.
> It
> > > seems that other than specified in the documentation Turbine tries to
> locate
> > > the file in the servlet context. First it seemed that Turbine tries to
> > > locate the file in the ROOT context which would make sense to me. So I
> > > copied the file into the root context and just passed the file name as
> input
> > > parameter. But as you see from the servlet.log snippet below, Turbine
> will
> > > not startup. It seems to expect the file in all contexts. This seems
> strange
> > > to me.
> > >
> > > I am really keen to get Turbine running. So I would appreciate any
help
> on
> > > this matter.
> > >
> > > thanks,
> > > thomas
> >
> > Can you send me what your web.xml file looks like? I made some changes
to
> > the Turbine servlet sometime last week (6 days ago) that makes for
> "better"
> > integration with Tomcat. I'm using things just fine...
> >
> > Here is my web.xml that I am using:
> >
>
<http://www.working-dogs.com/turbine/cvsweb/index.cgi/turbine/conf/web.xml?r
> > ev=1.2&content-type=text/x-cvsweb-markup>
> >
> > You _may_ need to update your CVS version of Turbine in order to get
this
> > working properly. You need version 1.55 of the Turbine.java class.
> >
> > -jon
> >
> > --
> > Java Servlet Based - Open Source | Collab.Net
> > Bug/Issue Tracking System | now hiring smart people
> > <http://scarab.tigris.org/> | <http://Collab.Net/jobs/>
> >
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]