Hi Tom,

Here are the settings from build.properties in ojb:

"
header sniped...
...

cdAlias=prom8
databaseName=product_manager_8
databaseUser=root
databasePassword=

# For MySQL this would look like:
dbmsName=MySQL
jdbcLevel=3.0
jdbcRuntimeDriver=com.mysql.jdbc.Driver
urlProtocol=jdbc
urlSubprotocol=mysql
urlDbalias=//localhost/${databaseName}

torque.database=mysql

torque.database.createUrl=${urlProtocol}:${urlSubprotocol}://localhost/${databaseName}

torque.database.buildUrl=${torque.database.createUrl}


# Set this to the name of the jar file you want produced from the dist
target
jar.name=productManager8.jar

# This is the class containing the main method. Set this so that an
executable jar and
# appropriate batch/shell skripts can be automatically generated for you.
#source.main.class=org.apache.ojb.tutorial1.Application

################################################################################
# Build Properties - you shouldn't have to change anything here
#
source.dir=src
source.java.dir=${source.dir}/java
source.resource.dir=${source.dir}/resources
source.test.dir=${source.dir}/test
source.schema.dir=${source.dir}/schema

build.dir=build
lib.dir=lib

target.dir=target
"

I left the build-torque.xml file untouched, but I noticed that in the
<path id="torque-classpath"> section, it is trying to include files I
don't have such as
commons-lang-1.0.1.jar    <-- using commons.lang.1.2.1.jar instead
village-2.0-dev-20030825.jar
xercesImpl-2.0.2.jar         <-- using xerces.jar instead
xmlParserAPIs-2.0.2.jar


Any idea or suggestions?

Laurent

Thomas Dudziak wrote:

>On 2/24/06, Laurent Sacaut <[EMAIL PROTECTED]> wrote:
>  
>
>>When trying to run the setup-db ant task from the build file, I am
>>getting an error coming from the build-torque.xml file.
>>I modified builds.properties and OJB.properties to fit my test project
>>but can get it to run.
>>
>>I created the database first in MySQL 5.0
>>I am able to build the project. But when I run setup-db, here is the log
>>from the console:
>>    
>>
>
>What are the settings that you feed to Torque (e.g. mysql profile, or
>build.properties when using ojb-blank) ?
>
>Tom
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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

Reply via email to