First you will find the ant trace of setup-db task, the torque error is
painted in red.
Second, you will find my build.properties used by the task.
I read the post. It 's treating about an insert error. I note that it's a
torque issue, but i'm not at this step.
Regards.
PS :Don't worry about source.business.xxx variables (it's used bu a personal
task to isolate business package to speed-up xdoclet task).
====================================
======================================
[ojbdoclet] Type fr.gouv.finances.douane.dnsce.mathieu.business.Soldes
[ojbdoclet] Type
fr.gouv.finances.douane.dnsce.mathieu.business.Visualisation
[ojbdoclet] Type
fr.gouv.finances.douane.dnsce.mathieu.business.VehiculeOrdre
[ojbdoclet] Processed 53 types
[ojbdoclet] Processed 53 types
[ojbdoclet] 2006-02-03 13:21:44,921 [main] INFO
xdoclet.XDocletMain.start - Running <torqueschema/>
[ojbdoclet] Generating torque schema (build/resources//project-
schema.xml)
[ojbdoclet] Processed 53 types
setup-db:
[copy] Copying 1 file to C:[EMAIL PROTECTED]
check-use-classpath:
check-run-only-on-schema-change:
sql-check:
sql:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating SQL for YOUR Torque project! |
[echo] | |
[echo] +------------------------------------------+
sql-classpath:
[echo] loading templates from classpath
[torque-sql] Using contextProperties file: C:[EMAIL PROTECTED]
\Mathieu\ojb\build.properties
[torque-sql] Using classpath
[torque-sql] Generating to file C:[EMAIL PROTECTED]
\Mathieu\ojb\build\resources\report.mathieu.sql.generation
[torque-sql] 2006-02-03 13:21:48,500 [main] INFO
org.apache.torque.engine.database.transform.XmlToAppData - Parsing file: '
ojbcore-schema.xml '
[torque-sql] 2006-02-03 13:21:48,500 [main] INFO
org.apache.torque.engine.database.transform.DTDResolver - Resolver: used
database.dtd from 'org.apache.torque.engine.database.transform' package
[torque-sql] 2006-02-03 13:21:48,578 [main] INFO
org.apache.torque.engine.database.transform.XmlToAppData - Parsing file:
'project-schema.xml'
[torque-sql] 2006-02-03 13:21:48,578 [main] INFO
org.apache.torque.engine.database.transform.DTDResolver - Resolver: used
'http://db.apache.org/torque/dtd/database_3_0_1.dtd'
StdErr
BUILD FAILED
"build-torque.xml" :
file:C:/@Dev/Mathieu/ojb/src/schema/build-torque.xml:203:
org.apache.torque.engine .EngineException: java.net.UnknownHostException:
db.apache.org en ligne 203
Total time: 19 seconds
Erreur lors de l'exécution de Ant :
C:/JBuilder9/jdk1.4/bin/java -Dbuild.compiler=com.borland.jbuilder.ant.compi
ler.Bmj -Xbootclasspath:C:\JBuilder9\lib\javac.jar;C:\JBuilder9\lib\jbuilder
.jar;C:\JBuilder9\jdk1.4\jre\lib\rt.jar;C:\JBuilder9\jdk1.4\jre\lib\i18n.jar
;C:\JBuilder9\jdk1.4\jre\lib\sunrsasign.jar;C:\JBuilder9\jdk1.4\jre\lib\jsse
.jar;C:\JBuilder9\jdk1.4\jre\lib\jce.jar;C:\JBuilder9\jdk1.4\jre\lib\charset
s.jar;C:\JBuilder9\jdk1.4\jre\classes;C:\JBuilder9\jdk1.4\lib\tools.jar;C:\J
Builder9\lib\ant.jar;C:\JBuilder9\lib\optional.jar;C:\JBuilder9\lib\jbuilder
.jar;C:\BC\java\NetComponents-1.3.8\NetComponents-1.3.8a\NetComponents.jar;C
:\JBuilder9\lib\xercesImpl.jar;C:\JBuilder9\lib\xmlParserAPIs.jar
org.apache.tools.ant.Main -buildfile build.xml -inputhandler
com.borland.jbuilder.build.AntBuildTask$AntInputHandler setup-db
==========================================
=========================================
===========================================
#<!--
#/* Copyright 2003-2004 The Apache Software Foundation
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# * See the License for the specific language governing permissions and
# * limitations under the License.
# */
#-->
############################################################################
####
# These are build properties for the ojb-blank project. In addition to
# any customization of your build process, you will probably want
# to change the values in the block below to map to your database
# rather than to a generic HSQLDB instance.
#
jcdAlias=default
databaseName=mathieu
databaseUser=mathieutest
databasePassword=xxxxxxxxxxxxxx (hidden)
# Settings are for Hsqldb (embedded database)
dbmsName=Oracle9i
jdbcLevel=3.0
jdbcRuntimeDriver=oracle.jdbc.driver.OracleDriver
urlProtocol=jdbc
urlSubprotocol=oracle
urlDbalias=thin:@P615-5:1521:mathieu
# For MySQL this would look like:
#dbmsName=MySQL
#jdbcLevel=3.0
#jdbcRuntimeDriver=com.mysql.jdbc.Driver
#urlProtocol=jdbc
#urlSubprotocol=mysql
#urlDbalias=//localhost/${databaseName}
# If you want to use Torque for database initialization then set this value
# to one of these values:
# db2,hypersonic,interbase,msaccess,mssql,mysql,oracle,
postgresql,sapdb,sybase
torque.database=oracle
# This is a specific url that Torque uses for creating a database.
# For several databases this is different from the url used to access the
database
# For instance, MySQL requires an url that points to the host, but without a
database name
#
# For Hsqldb we have to mangle the path so that we can invoke Torque in the
base
# directory but the database is created in the ${build.dir}/database folder
torque.database.createUrl=${urlProtocol}:${urlSubprotocol}:${urlDbalias}
# This specifies the url that Torque uses to access the existing database
#
# For Hsqldb we use the same url as for the createUrl above
torque.database.buildUrl=${torque.database.createUrl}
# Set this to the name of the jar file you want produced from the dist
target
jar.name=my-project.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
# src des business à copier
source.business.dir=../webapp/WEB-INF/src
source.business.filter=fr/gouv/finances/douane/dnsce/mathieu/business/*.java
source.resource.dir=${source.dir}/resources
source.test.dir=${source.dir}/test
source.schema.dir=${source.dir}/schema
build.dir=build
build.lib.dir=lib
build.classes.dir=${build.dir}/classes/
build.resources.dir=${build.dir}/resources/
target.dir=target
=========================================
===================================
On 2/3/06, Thomas Dudziak <[EMAIL PROTECTED]> wrote:
>
> On 2/3/06, Bruno CROS <[EMAIL PROTECTED]> wrote:
>
> > sorry, can't see the link with the thread you gave me.
>
> Why not ? Alternatively, you could use the user mailing list archive
> link on the OJB site, and check the threads for 30 Jan. The Thread is
> called "Problems upgrading to ojb1.04".
>
> > There is profile file in 1.0.4 OJB bin release. One of these is called
> > oracle9i. I supposed that my build.properties (taken from obj-blank.jar)
> > have to look like it. But i really don't known what i have to put in
> this
> > build.properties. I read somewhere that i have to select a profile,
> but i
> > do not see a "profile" key at all. only torque.database ,
> > torque.database.createUrl, and torque.database.buildUrl.
>
> Could you post the error message ?
>
> > I saw a patch to torque.jar too. Do i have to apply it ?
>
> You should be safe if you use the jars that OJB comes with, because
> that's the ones that OJB is (unit-) tested with.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>