I have done it!!!!!
I have to change several files:
1.      "id-table-schema.xml"
        You have to change the line "<database>" to "<database
name="YOUR_DATABASE">
2.      "Build.xml"
        The reference on the Target -> target="Compile" is wrong. 
        Rename it to -> target="compile" because the target is defined in
the xml-file 
        this way -> 
        ...
        < target 
        name = "compile" ....

With this changes the "ant init" runs without any Exception!

-----Urspr�ngliche Nachricht-----
Von: Esseling Norman 
Gesendet am: Freitag, 22. November 2002 11:43
An: 'Turbine Users List'
Betreff: AW: getting started with TDK2.2 rc1?

Hello, 
thanks for your answer! I made the changes in my "build.properties"-file. 
Now I get several Exceptions:
1.      ...
        [sql] Executing file:
C:\Programme\...\webapps\test1\WEB-INF\src\sql\create-db.sql
        [sql] failed to execute: drop database if exits default
        [sql] java.sql.SQLException: Syntax error or access violation: You
have an error in your SQL syntax near 'default' at line 1
        [sql] ...create databse default
        [sql] java.sql.SQLException: Syntax error or access violation: You
have an error in your SQL syntax near 'default' at line 1
        ....
2.      ...
        [tourque-sql-exec] Failed to execute: insert into ID_Table (
id_table, table_name, next_id, quantity) VALUES (...)
        [tourque-sql-exec] java.sql.SQLException: General error: Table
'test1.id_table' doesn't exist
        ....
3.      ...
        compile:
        BUILD FAILED
        file : C:\..../build.xml: 384: scrdir "C:\...\WEB-INF\build\C" does
not exist!

What's wrong now? Are there any other settings that have to be done before i
execute "ant init"? Are the following Exceptions depending on the first?

-----Urspr�ngliche Nachricht-----
Von: Eric Emminger [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 18. November 2002 20:14
An: Turbine Users List
Betreff: Re: getting started with TDK2.2 rc1?

Norman

> I have done the steps from the TDK Howto, but when i want to execute the
> "ant init" i get the following message:
> .../build-tourque.xml:303: java.sql.SQLExeception: General error: unknown
> database 'newapp'.

Try changing the createDatabaseUrl to

createDatabaseUrl = jdbc:mysql://127.0.0.1/mysql

I think Torque has to connect to the main mysql database in order to
create newapp.

Hope that works!

Eric

-- 
Eric Emminger
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to