I am using Tomcat 7 and eclipse for Jee.

I am using theses steps to run wookie. 
I have a probleme at step 6 because tomcat 7 has not  catalina folder


Thanks


Running Wookie with Tomcat and MySQL manual configuration
=========================================================

(1) Obtain a JDBC driver jar file for the database.
    (for example the mysql driver can be downloaded from 
    http://www.mysql.com/downloads/connector/j/)
    The downloaded zip file should contain a jar file, something similar to 
    mysql-connector-java-5.1.*-bin.jar
    
(2) Place the mysql-connector-java-5.1.*-bin.jar file into tomcats lib folder 
    so it is founnd on the classpath at runtime
    (for example in tomcat 5.5.* place this file into /tomcat-root/common/lib)
    (for example in tomcat 6.0.* place this file into /tomcat-root/lib)

(3) You will need to create a user with the role "widgetadmin" in your tomcat 
installation. 
    For example, add the following line to the file 
/tomcat-root/conf/tomcat-users.xml:

    <role rolename="widgetadmin"/><user username="java" password="java" 
roles="widgetadmin"/>

    In this example, we are assuming the password 'java', but we encourage
    you to choose a more secure password. The password you choose here will 
    need to be the same as in step (5) and (6).
    
(4) Create a database in mysql called 'widgetdb'. 

    mysql> CREATE DATABASE IF NOT EXISTS widgetdb;

(5) Create a user in mysql 'java' and give them suitable permisions 
    on the widgetdb. Give this user the same password as you have chosen
    in step (3).
    
    mysql> CREATE USER 'java'@'localhost' IDENTIFIED BY 'java';
    mysql> GRANT ALL ON widgetdb.* TO 'java'@'localhost';

(6) Copy the file wookie.xml to your tomcat-root/conf/catalina/servername 
folder    
    (for example in tomcat 5.5.* & 6.0.* place this file into 
/tomcat-root/conf/Catalina/localhost)
    
    NOTE: If you have set up a password for the db user 'java' which is not 
    'java' in step (3) you will have to edit this file to update to the correct 
    password.

(7) Locate the 'mysql-wookie-schema.sql' file found under 'scripts' and run 
this to populate the 
    'widgetdb' database you created
    - NOTE: the first time you run this script, you may have to remove the drop 
foreign key statements 
    found at the top of the script
    
    shell>  mysql widgetdb < mysql5-wookie-schema.sql -p
    
    i.e. the statements that look similar to these..
    
    ALTER TABLE tablename
    DROP FOREIGN KEY FKWidgetTablename;
    
    ... as the first time they won't exist.
    
(8) Copy the 'wookie.war' file to your deployment folder '/tomcat-root/webapps'

(9) Start your server

(10) Open your browser and goto 'http://YOURSERVERADDRESS:8080/wookie' (i.e. 
http://localhost:8080/wookie)

Reply via email to