Re: Log4j error message

2004-02-05 Thread Bogdan Vatkov
Hi,
(B
(BI have tried this too, but placing these lines in the
(B
(B'log4j.properties' in the 'torque-gen' directory
(B
(Bdoes not solve the problem
(B
(Band I have inserted the lines inside the file
(B
(Btorque-gen-3.1/lib/torque-gen-3.1.jar/log4j.properties
(B
(Band then the errors disapeared
(B
(BBogdan
(B
(B- Original Message -
(BFrom: "coluf" <[EMAIL PROTECTED]>
(BTo: "Apache Torque Users List" <[EMAIL PROTECTED]>
(BSent: Thursday, February 05, 2004 00:21
(BSubject: Re: Log4j error message
(B
(B
(B> Hi
(B>
(B> I added the following lines to the file 'log4j.properties' in the
(B'torque-gen' directory.  It makes the error go away, however, I did not look
(Bfor the cause.   ;-)
(B>
(B>
(B> # Included so to remove log4j error when building target 'main' using
(B'build-torque.xml'
(B> log4j.appender.org.apache.torque.engine = org.apache.log4j.ConsoleAppender
(B> log4j.appender.org.apache.torque.engine.layout =
(Borg.apache.log4j.PatternLayout
(B> log4j.appender.org.apache.torque.engine.layout.conversionPattern = %d [%t]
(B%-5p %c - %m%n
(B>
(B>
(B>
(B>
(B> - Original Message -
(B> From: "Hassan Abolhassani" <[EMAIL PROTECTED]>
(B> To: "Apache Torque Users List" <[EMAIL PROTECTED]>
(B> Sent: Wednesday, February 04, 2004 11:49 PM
(B> Subject: Log4j error message
(B>
(B>
(B> > Hello,
(B> >
(B> > I get following message when I try to run Torque.
(B> >
(B> > log4j:ERROR Could not find value for key
(B> > log4j.appender.org.apache.torque.engine
(B> >
(B> > I see there is not such a key defined in Torque.properties.
(B> >
(B> > Can anybody tell me what should be defined so that log4j gets correct
(B> > configuration.
(B> >
(B> > Best Regards,
(B> > Hassan Abolhassani
(B> >
(B> > ___
(B> >
(B> > Razorfish Japan, Inc.
(B> >
(B> > $B%"%\%k%O%C%5%K!!%O%C%5%s(B   Hassan Abolhassani  [Technology network]
(B> > $B3t<02q > [EMAIL PROTECTED]
(B> > Tel:03-5436-9980 Fax:03-5436-9126
(B> >
(B> >
(B> > -
(B> > To unsubscribe, e-mail: [EMAIL PROTECTED]
(B> > For additional commands, e-mail: [EMAIL PROTECTED]
(B> >
(B> >
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Making a null foriegn key

2004-02-05 Thread Hassan Abolhassani
How it is possible to set a null foriegn key?
(B
(Bforiegn key field is integer type. Is there a way to do that.
(B
(BThe logic is when something other than null is specified, it should
(Bexist on forign table. But null is acceptable.
(B
(BRegards,
(BHassan Abolhassani
(B
(B___
(B
(BRazorfish Japan, Inc.
(B
$B%"%\%k%O%C%5%K!!%O%C%5%s(B   Hassan Abolhassani  [Technology network]
$B3t<02q

Re: Making a null foriegn key

2004-02-05 Thread Bogdan Vatkov
use the attribute: defaultJavaType="object"
(Bin the  tag
(Bor attribute: javaType="object"
(Bin the corresponding  tag
(Bin the -shcema.xml file
(B
(Bnote that you will have to set this javaType for both ..the referer column
(Band the refered column
(B
(BRegards,
(BBogdan
(B
(B- Original Message -
(BFrom: "Hassan Abolhassani" <[EMAIL PROTECTED]>
(BTo: "Apache Torque Users List" <[EMAIL PROTECTED]>
(BSent: Thursday, February 05, 2004 13:53
(BSubject: Making a null foriegn key
(B
(B
(B> How it is possible to set a null foriegn key?
(B>
(B> foriegn key field is integer type. Is there a way to do that.
(B>
(B> The logic is when something other than null is specified, it should
(B> exist on forign table. But null is acceptable.
(B>
(B> Regards,
(B> Hassan Abolhassani
(B>
(B> ___
(B>
(B> Razorfish Japan, Inc.
(B>
(B> $B%"%\%k%O%C%5%K!!%O%C%5%s(B   Hassan Abolhassani  [Technology network]
(B> $B3t<02q [EMAIL PROTECTED]
(B> Tel:03-5436-9980 Fax:03-5436-9126
(B>
(B>
(B> -
(B> To unsubscribe, e-mail: [EMAIL PROTECTED]
(B> For additional commands, e-mail: [EMAIL PROTECTED]
(B>
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: java.sql.SQLException: invalid arguments in call when running example

2004-02-05 Thread Travis . Prescott
I am using 3.1.  I noticed that the DataSourceFactory is deprecated as of
this version.  The note says to use
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory which is not in my
torque-3.1.jar file.  I found a javadoc references to it in 3.02, however.
Where do I get this object?

Thanks, Travis

-Original Message-
From: Scott Eade [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 5:03 PM
To: Apache Torque Users List
Subject: Re: java.sql.SQLException: invalid arguments in call when
running exa mple


What version of Torque are you using?  If it is 3.1 you should move to 
one of the new DataSourceFactories and then try and sort your problem out.

Scott

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



[EMAIL PROTECTED] wrote:

> I am connecting to an Oracle db but I get the following exception.  
> What I don't understand is that I am able to build the Torque objects 
> and dynamically generate the database with this below properties so 
> why won't it save a record?.  My torque.properties file looks like this:
>  
> torque.database.default=emt
> torque.dsfactory.emt.adapter=oracle
>
torque.dsfactory.emt.factory=org.apache.torque.dsfactory.TorqueDataSourceFac
tory
> torque.dsfactory.emt.pool.defaultMaxConnections=10
> torque.dsfactory.emt.pool.maxExpiryTime=3600
> torque.dsfactory.emt.pool.connectionWaitTimeout=10
> torque.dsfactory.emt.connection.driver=oracle.jdbc.driver.OracleDriver
>
torque.dsfactory.emt.connection.url=jdbc:oracle:thin:@myserver.com:1521:RD01
> torque.dsfactory.emt.connection.username=*
> torque.dsfactory.emt.connection.password=*
>  
>  
> java.sql.SQLException: invalid arguments in call
> at 
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
> at 
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
> at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
> at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:184)
> at 
> oracle.jdbc.driver.OracleConnection.(OracleConnection.java:360)
> at 
>
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
> at 
>
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection(Dr
iverAdapterCPDS.java:205)
> at 
>
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection(Dr
iverAdapterCPDS.java:175)
> at 
>
org.apache.torque.pool.ConnectionPool.getNewConnection(ConnectionPool.java:2
54)
> at 
>
org.apache.torque.pool.ConnectionPool.getConnection(ConnectionPool.java:223)
> at 
>
org.apache.torque.pool.TorqueClassicDataSource.getConnection(TorqueClassicDa
taSource.java:488)
> at 
>
org.apache.torque.pool.TorqueClassicDataSource.getConnection(TorqueClassicDa
taSource.java:458)
> at 
> org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:743)
> at org.apache.torque.Torque.getConnection(Torque.java:306)
> at 
> org.apache.torque.util.Transaction.beginOptional(Transaction.java:118)
> at org.apache.torque.util.Transaction.begin(Transaction.java:100)
> at com.novainfo.emt.dao.BasePublisher.save(BasePublisher.java:490)
> at com.novainfo.emt.dao.BasePublisher.save(BasePublisher.java:471)
> at com.novainfo.emt.test.TestTorque.go(TestTorque.java:31)
> at com.novainfo.emt.test.TestTorque.main(TestTorque.java:13)
>


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

Note:  The information contained in this email and in any attachments is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material.  Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the
intended recipient is prohibited.  The recipient should check this email and
any attachments for the presence of viruses.  Sender accepts no liability
for any damages caused by any virus transmitted by this email. If you have
received this email in error, please notify us immediately by replying to
the message and delete the email from your computer.  This e-mail is and any
response to it will be unencrypted and, therefore, potentially unsecure.
Thank you.  NOVA Information Systems, Inc.

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



Log4J Problem

2004-02-05 Thread Steffen Mueller
Hi,

I always get those Log4J errors with the Torque standard configuration.  Is 
there any way to fix this?

log4j:WARN No appenders could be found for logger 
(org.apache.torque.TorqueInstance).
log4j:WARN Please initialize the log4j system properly.

Thanks!

Steffen

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


Re: Log4J Problem

2004-02-05 Thread Bogdan Vatkov
Hi,

insert these lines:

# Included so to remove log4j error when building target 'main' using
'build-torque.xml'
log4j.appender.org.apache.torque.engine = org.apache.log4j.ConsoleAppender
log4j.appender.org.apache.torque.engine.layout =
org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.engine.layout.conversionPattern = %d [%t]
%-5p %c - %m%n

into file:

torque-gen-3.1/lib/torque-gen-3.1.jar/log4j.properties

(it is inside a jar file)

Regards,
Bogdan

- Original Message -
From: "Steffen Mueller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 05, 2004 15:54
Subject: Log4J Problem


> Hi,
>
> I always get those Log4J errors with the Torque standard configuration.
Is
> there any way to fix this?
>
> log4j:WARN No appenders could be found for logger
> (org.apache.torque.TorqueInstance).
> log4j:WARN Please initialize the log4j system properly.
>
> Thanks!
>
> Steffen
>
>
> -
> 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]



TorqueDataModelTask not found error

2004-02-05 Thread Frank Nguyen

Hi,

I kept getting this error message while building:

D:\torque-3.0-b4>ant -f build-torque.xml
Buildfile: build-torque.xml

BUILD FAILED
file:D:/torque-3.0-b4/build-torque.xml:77: taskdef class
org.apache.torque.task.TorqueDataModelTask cannot be found

Total time: 15 seconds

I downloaded and installed it straight for the CD. There is
torque-3.0-b4.jar under torque-3.0-b4 dir and I also copied it into my java
home j2sdk1.4.1_05/jre/lib/ext. The jar tvf command does show
org.apache.torque.task.TorqueDataModelTask class is in the jar file. So,
what eles could be wrong ?

Thanks in advance,

-Frank


  

  
  
  
  
  
  
  

  
  


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  

  
  

  

  

  

  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  
  

  



  

  
  
  
  
  
  

  

  

  

  
  
  
  
  
  

  

  

  

  
  
  
  
  
  
  

  

  

  

  










  

  

  

  

  

  

  

  
  
  
  
  
  


  









  

  

  
  
  
  
  
  

  

  

  

  


  



  Executing the create-db.sql script ...



  

  

  
  
  

  


  

  

  
  
  

  









  

  
  
  

  









  

  
  
  

  









  

  

  
  
  

  









  

  
  
  
  
  

  









  

  
  
  
  
  
  

  

  

  

  











  

  

  

  

  

  

  


  
  
  
  
  

  

  


  


  


  


  

  

  













  
  
  
  


  
  
  
  



  
  
  
  


  
  
  
  

  

  



  
  



  



  

  




  

  



  
  



  



  

  


  

  
  
  

  




  

  

  
  
  
  
  
  
  
  
  

  


  

  
  
  

  




  

  

  
  
  

  








  

  

  








  

  

  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  
  


  




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

Re: TorqueDataModelTask not found error

2004-02-05 Thread Scott Eade
Frank Nguyen wrote:

file:D:/torque-3.0-b4/build-torque.xml:77: taskdef class

As a first suggestion, how about using a more recent version of Torque 
than 3.0-b4 - e.g. 3.1 or even 3.0.2 if you must.

See: http://db.apache.org/torque-31/status.html

Scott

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


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


Re: java.sql.SQLException: invalid arguments in call when running example

2004-02-05 Thread Scott Eade
[EMAIL PROTECTED] wrote:

I am using 3.1.  I noticed that the DataSourceFactory is deprecated as of
this version.  The note says to use
org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory which is not in my
torque-3.1.jar file.  I found a javadoc references to it in 3.02, however.
Where do I get this object?
I believe it was renamed to SharedPoolDataSourceFactory.

I have updated the deprecation warning for future 3.1.x releases.

Scott

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


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


Email lists

2004-02-05 Thread Andrew Zahra
The link to the mail archives on this page do not work:

http://db.apache.org/torque/mail-lists.html

Anyone able to correct this? I've found this on a number of sites including
Turbine's.

The welcome message for the mailing list also says:
Welcome to [EMAIL PROTECTED]

Which might lead someone such as myself to click and send to the wrong list
and wonder where my messages are going.


---
Andrew Zahra
Wollongong, NSW
Australia

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