You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Esseling Norman <No...@esn1.siemens.de> on 2002/11/18 11:52:04 UTC

getting started with TDK2.2 rc1?

Hello,

I'm a newbie to the TDK. I'm trying to use the TDK 2.2 rc1. But i have some
problems to get the sample application running.
My system:

- WinNT 
- ANT 1.5.1
- MySQL  3.23
- TDK 2.2 rc1

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'.

what is the mistake? Can anybody help me?

Here are my settings in the build.properties file:
....
# P R O J E C T  P R O P E R T I E S
#
# -------------------------------------------------------------------
tdk.home = C:\Programme/Turbine/TDK-2.2-rc1
tdk.turbineVersion = 2
tdk.project = newapp
# This currently duplicated because the torque templates have
# a dependency on $project.
project = newapp
app.root = ../${tdk.project}
build.webappRoot = ${tdk.home}/webapps/${tdk.project}
target.package = org.Norman.newapp
target.directory = org/Norman/newapp
build.dest = ${build.webappRoot}/WEB-INF/classes
version = 0.1
src.dir = ${tdk.home}/webapps/newapp/WEB-INF/src
conf.dir = ${tdk.home}/webapps/newapp/WEB-INF/conf
master.conf.dir = ${tdk.home}/tdk/ancillary/${tdk.turbineVersion}/src/conf
debug = on
optimize = off
deprecation = on
idTableDatabase = newapp

# todo!!!
lib.dir = ${build.webappRoot}/WEB-INF/lib
torque.home = ${build.webappRoot}/WEB-INF
outputDirectory = src
schemaDirectory = conf

# -------------------------------------------------------------------
#
#  D A T A B A S E  S E T T I N G S
#
# -------------------------------------------------------------------

database.name = newapp
database = mysql
createDatabaseUrl = jdbc:mysql://127.0.0.1/newapp	/ in TDK 2.1 there
are not such settings
buildDatabaseUrl = jdbc:mysql://127.0.0.1/newapp	/ what are they
doing? Is this correct?
databaseUrl = jdbc:mysql://127.0.0.1/newapp
databaseDriver = org.gjt.mm.mysql.Driver
databaseUser = Norman
databasePassword = test
databaseHost = 127.0.0.1
......

----------------------------------------------------------------------------
------------
Mit freundlichem Gruß / kind regards
Esseling, Norman
Werkstudent, Siemens Dortmund I&S IT PS, Germany


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: getting started with TDK2.2 rc1?

Posted by Dieter Engelhardt <Di...@Iris-Software.de>.
i solved it by manualy creating an enpty database newapp within mySql

Dieter

-----Ursprüngliche Nachricht-----
Von: Eric Emminger [mailto:eric@ericemminger.com]
Gesendet: 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
eric@ericemminger.com


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: getting started with TDK2.2 rc1?

Posted by Eric Emminger <er...@ericemminger.com>.
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
eric@ericemminger.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>