You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Martin Monsorno <mo...@exolution.de> on 2004/05/07 11:19:37 UTC

problems building torque from cvs

Hi *,

I recently checked out torque from cvs and tried to build it, but
without success.  I sent this message to the developer mailing list,
but there were no messages in this list in the last 3 days, so I don't
know if anyone is actually reading it.  I have the following
problems:


1. Does torque need jdk > 1.4 ?  I don't find any documentation about
   this requirement but:

   - building with Sun JDK 1.3.1_10 fails due to:

,----
|     [junit] Running org.apache.torque.util.SqlExpressionTest
| large buildIn: 68
|     [junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 0,18 sec
|     [junit] [ERROR] TEST org.apache.torque.util.SqlExpressionTest FAILED
`----

     while it works with blackdown jdk 1.4.1


2. I suppose building the generator must be done by calling maven in
   the src/generator directory.  I get really annoying log messages
   when doing this about 2000 lines like

,----
| [DEBUG] XmlToAppData - -endElement(, , column) called
| [DEBUG] XmlToAppData - -endElement(, , column) called
`----

   How can I configure this logging?  Editing
   src/generator/src/conf/log4j.properties does not help.


3. To use the generator in my project I have to call the
   build-torque.xml file, as it is not maven-enabled by now.  So I
   suppose I need not only the torque-gen-jar-file, but a whole
   distribution.  But calling "maven dist" fails with:

,----
| dist:prepare-bin-filesystem:
|     [delete] Deleting directory /home/monsorno/was/apache/db-torque/src/generator/target/torque-gen-3.2-dev/bin/torque-gen-3.2-dev
|     [mkdir] Created dir: /home/monsorno/was/apache/db-torque/src/generator/target/torque-gen-3.2-dev/bin/torque-gen-3.2-dev
|     [echo]
|       +-------------------------------------------------------+
|       | C R E A T I N G  B I N A R Y  D I S T R I B U T I O N |
|       +-------------------------------------------------------+
|      
|     [copy] Copying 1 file to /home/monsorno/was/apache/db-torque/src/generator/target/torque-gen-3.2-dev/bin/torque-gen-3.2-dev
|     .... 
|     [move] Moving 1 files to /home/monsorno/was/apache/db-torque/src/generator/target/torque-gen-3.2-dev/bin/torque-gen-3.2-dev/lib
|  
| BUILD FAILED
| File...... file:/home/monsorno/was/apache/db-torque/maven.xml
| Element... copy
| Line...... 27
| Column.... 57
| /home/monsorno/was/apache/db-torque/src/generator/src/conf/master not found.
| Total time: 14 seconds
| Finished at: Fri May 07 10:06:52 CEST 2004
`----

Any help will be appreciated.  Thanks in advance,


-- 
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: problems building torque from cvs

Posted by Bogdan Vatkov <bv...@globaltech-bg.com>.


> That's bad.  We used torque (3.0) for about a year now and are now
> considering a torque update due to some problems with DB2 which seems
> to be fixed in later versions of torque.  Our project is declared to
> fulfill the J2EE 1.3 requirements, so if torque needs java >=1.4,
> we're done. :-(

I am not sure that torque can work only with 1.4 ..i just use 1.4 just to be
sure
but you could try 1.3 and see what is going wrong and make a patch ..
maybe some of the developers could say is it going to work with 1.3

> So I would have to "mavenize" my project, too?  Our build process is
> very satisfying, so I hoped to save this work.

No. your project does not have to be mavenized.
Just torque-gen is mavenized.
and instead using

ant -f torque-build.xml om

you can use

maven torque:om

but you have to install maven and to build the torque-gen via maven just as
described at
http://db.apache.org/torque/maven-howto.html
nothing more nothing less ..there are 2 simple steps to have torque-gen
mavenized.

regards,
bogdan


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: problems building torque from cvs

Posted by Martin Monsorno <mo...@exolution.de>.
"Bogdan Vatkov" <bv...@globaltech-bg.com> writes:

>> 1. Does torque need jdk > 1.4 ?  I don't find any documentation about
>>    this requirement but:
> Yes You better use 1.4.x

That's bad.  We used torque (3.0) for about a year now and are now
considering a torque update due to some problems with DB2 which seems
to be fixed in later versions of torque.  Our project is declared to
fulfill the J2EE 1.3 requirements, so if torque needs java >=1.4,
we're done. :-(

>> 2. I suppose building the generator must be done by calling maven in
>>    the src/generator directory.  I get really annoying log messages
>>    when doing this about 2000 lines like
>> 
>> ,----
>> | [DEBUG] XmlToAppData - -endElement(, , column) called
>> | [DEBUG] XmlToAppData - -endElement(, , column) called
>> `----
>> 
>>    How can I configure this logging?  Editing
>>    src/generator/src/conf/log4j.properties does not help.
>
> Yep. I found it in:
> src/generator/src/conf/simplelog.properties
> change the line
> org.apache.commons.logging.simplelog.defaultlog=debug
>
> to
>
> org.apache.commons.logging.simplelog.defaultlog=error
>

Thanks, that did the trick!

>> 3. To use the generator in my project I have to call the
>>    build-torque.xml file, as it is not maven-enabled by now.  So I
>>    suppose I need not only the torque-gen-jar-file, but a whole
>>    distribution.  But calling "maven dist" fails with:
> http://db.apache.org/torque/maven-howto.html
> just follow the steps that are described here ..and you will successfully 
> use mavenized torque-generator

So I would have to "mavenize" my project, too?  Our build process is
very satisfying, so I hoped to save this work.


-- 
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: problems building torque from cvs

Posted by Bogdan Vatkov <bv...@globaltech-bg.com>.
> Hi *,
> 
> I recently checked out torque from cvs and tried to build it, but
> without success.  I sent this message to the developer mailing list,
> but there were no messages in this list in the last 3 days, so I don't
> know if anyone is actually reading it.  I have the following
> problems:
> 
> 
> 1. Does torque need jdk > 1.4 ?  I don't find any documentation about
>    this requirement but:
Yes You better use 1.4.x

> 2. I suppose building the generator must be done by calling maven in
>    the src/generator directory.  I get really annoying log messages
>    when doing this about 2000 lines like
> 
> ,----
> | [DEBUG] XmlToAppData - -endElement(, , column) called
> | [DEBUG] XmlToAppData - -endElement(, , column) called
> `----
> 
>    How can I configure this logging?  Editing
>    src/generator/src/conf/log4j.properties does not help.

Yep. I found it in:
src/generator/src/conf/simplelog.properties
change the line
org.apache.commons.logging.simplelog.defaultlog=debug

to

org.apache.commons.logging.simplelog.defaultlog=error


> 
> 3. To use the generator in my project I have to call the
>    build-torque.xml file, as it is not maven-enabled by now.  So I
>    suppose I need not only the torque-gen-jar-file, but a whole
>    distribution.  But calling "maven dist" fails with:
http://db.apache.org/torque/maven-howto.html
just follow the steps that are described here ..and you will successfully 
use mavenized torque-generator

best regards,
bogdan


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: problems building torque from cvs

Posted by Scott Eade <se...@backstagetech.com.au>.
Martin Monsorno wrote:

>1. Does torque need jdk > 1.4 ?  I don't find any documentation about
>   this requirement but:
>
>   - building with Sun JDK 1.3.1_10 fails due to:
>
>,----
>|     [junit] Running org.apache.torque.util.SqlExpressionTest
>| large buildIn: 68
>|     [junit] Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 0,18 sec
>|     [junit] [ERROR] TEST org.apache.torque.util.SqlExpressionTest FAILED
>`----
>
>     while it works with blackdown jdk 1.4.1
>
The order of a HashSet is apparently inconsistent between jdk 1.3 and 
jdk 1.4 - the test now caters for this.

jdk 1.3 should be fine for torque.

It looks like Bogdan addressed your other points.


Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org