Hello,
I have been unable to get Turbine working with the
following config:
* WinNT 4 SP6
* Apache 1.3.12
* Tomcat 3.1
* Sun Java 2 SDK Standard Edition 1.3.0
* MySQL 3.23.21
* MM JDBC 2.0.2
* Apache-Turbine-20000718
This is my directory setup:
D:/
+- Apache
+- Apache (the web server)
+- MySQL (DB)
| +- lib (MM JDBC driver)
+- Tomcat (JSP)
+- Turbine (you know what this is...)
I did the following:
1. Set the following environment variables:
TURBINE_HOME: D:/Apache/Turbine
TOMCAT_HOME : D:/Apache/Tomcat
MYSQL_HOME : D:/Apache/MySQL
2. Built turbine, no problems.
3. Copied the turbine-2.0.jar to $TURBINE_HOME/lib
4. Modified tomcat.bat to load all packages from
$TOMCAT_HOME/lib, $TURBINE_HOME/lib and $MYSQL_HOME/lib,
like this:
set cp=%CLASSPATH%
set CLASSPATH=.
set CLASSPATH=%TOMCAT_HOME%\classes
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\activation-1.0.1.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\castor-0.8.2.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\ecs-1.3.3.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\freemarker-jdk1.2.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\jdbc-se2.0.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\jndi-1.2.1.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\jta1.0.1.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\mail-1.1.3.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\turbine-2.0.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\village-1.3.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\webmacro-jdk1.2-CVS.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\xerces-1.1.0.jar
set CLASSPATH=%CLASSPATH%;%TURBINE_HOME%\lib\xmlrpc.jar
set CLASSPATH=%CLASSPATH%;%MYSQL_HOME%\lib\mm.mysql-2.0.2-bin.jar
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
if "%cp%" == "" goto next
rem else
set CLASSPATH=%CLASSPATH%;%cp%
:next
5. Created the MySQL database and populated it, by running
the following scripts from $TURBINE_HOME/docs/schemas,
in this order:
MySQL_users_roles_permissions.sql
MySQL_id_table.sql
default_roles_permissions.sql
6. Edited $TOMCAT_HOME/conf/TurbineResources.properties with
the following changes:
webmacro.properties=D:/Apache/Turbine/conf/WebMacro.properties
mail.server=mail.sonda.com
database.default.url=jdbc:mysql://localhost/turbine
database.default.username=turbine
database.default.password=turbine
logfile=D:/tmp/turbine.log
7. Edited $TOMCAT_HOME/conf/web.xml and added these lines as
a child of <web-app>:
<servlet>
<servlet-name>
Turbine
</servlet-name>
<servlet-class>
Turbine
</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>"D:/Apache/Tomcat/conf/TurbineResources.properties"</param-value>
</init-param>
</servlet>
8. Shut down apache and tomcat, and brought them back up in this
order: tomcat, apache.
After doing all this, I try to access http://localhost/Turbine,
but get a 404 error. Any hints? Should the whole Turbine directory
hang from $TOMCAT_HOME/webapps?
Thanks in advance,
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
If this mail is in HTML format, blame Exchange Server: Q222508
