Hi,
I posted another mail for the same problem a few days ago but did not get
ant reply.
OBJ 0.9.9 doesnt write to my DB2 database inside JBoss 0.9.0.4.
0.9.8 does (with the same JBoss).
The deployment description at the web doesn't match with
the 0.9.9 source code :
JTATransactionManagerClass=or
Error occurred
Required parameter "listId" or "listName" is missing or invalid
Hopefully, it'll be fixed soon. Thanks.
__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
I implemented this functionality for PostgreSQL.
I subclassed SqlGeneratorDefaultImpl to provide the functionality and
then pointed to my subclass in OJB.properties.
My OJB.properties entry is:
SqlGeneratorClass=PostgreSqlStatementGenerator
My subclass code is:
import org.apache.ojb.broker.ac
Hi,
Does anyone know how to limit a number of rows returned from database
using OJB?
Most of the database engines implement custom keywords to limit a number of
rows for select statement (top, limit, rownum () < .), OJB Query
interface has methods in it to set EndAt and StartAt indexes
Hello,
I've read the archives so know there are lots of problems with reverse-db2 right now.
So my question isn't really about a bug or anything, I just want to know if I'm trying
to use it right before I give up (I don't see any doc on usage). I want to create a
new OJB repository from an e
Thanks Jakob,
I am going to have a look at this later this week.
(What a great turn-around time! :)
--Bill.
- Original Message -
From: "Jakob Braeuchi" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 11:56 AM
Subject: Re: 1:M querys constra
Hi Joshua,
- Original Message -
From: "White, Joshua A (CASD, IT)" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 8:29 PM
Subject: OJB.properties settings for JNDI DBCP connection pool
> All,
>
> I am using OJB with Tomcat. I have an exi
Armin,
Looks like the test case ConvertedKeyReferenceTest might be broken.
Lines 69 and 90 test for pk of ConversionReferrer being converted. If you look at the
repository_junit.xml the pk field for ConversionReferrer does not have a conversion
attribute.
Also, neither ConvertedKeyReferenceTe
hi mark,
i haven't run your testcase yet, but i think i found the problem.
the 'columns' you look for in your report-query should be
attribute-names NOT database-columns-names.
in your case 'pk' instead of 'PK'. attribute-names will be translated
into database-column-names by the SqlGenerator an
Hi Jakob,
You're right. I traced my problem further to a different point in OJB
where I do believe there is a problem (see my followup message).
Thanks,
Scott
-Original Message-
From: Jakob Braeuchi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 3:45 PM
To: OJB Users List
hi mark,
prefetching currently works only for one level . the prefetcher looks
for a relationship named
"allb.singlec" in A.class in your sample. the query criteria has no effect on
prefetching.
i'm not sure whether deep prefetching is really useful. in your sample deep
prefetching would ret
hi scott,
i just did some tests with proxied m:n association where getCount() is
called. i changed the test-classes to have a difference between
column-name and attribute-name. so far everything was ok.
the attribute-name will be translated into column-name by the
SqlGenerator., so there shoul
Yuji,
I had just posted this to dev list:
Thomas,
Was having a problem with init not being run when doing an "ant jar-debug". Need to
prepare first, which forces init or else depend on init in main.
Also includes previous posted change to move user.home/build.properties ahead of
build.proper
hi all,
i just added some fixes to support customizable 1:n queries.
just add a query-customizer class to the collection-descriptor.
this class must implement the QueryCustomizer interface, a
QueryCustomizerDefaultImpl is alreay there as a base class.
...
class="org.apache.
It looks like the current CVS version of build.xml is slightly broken.
For example, the 'junit' target depends on 'main' which checks on the
setting of j2ee.classes. However, the j2ee.classes property is set in the
'init' target which not a dependency of neither 'checkj2ee.classes' nor
'main'.
I was reading the documentation on the possible use of "non-decomposed m:n
mappings", and had a quick question. Is it possible to set up such a
mapping across an association table and still use the PB kernel?
I am thinking of a simple association table scenario, say like a
CUSTOMER_PRODUCT tables
All,
I am using OJB with Tomcat. I have an existing DBCP pool that is being
accessed using JNDI. Should the ConnectionFactoryClass be set to
"ConnectionFactoryDBCPImpl" or "ConnectionFactoryPooledImpl"?
The choice is unclear. Because OJB is not managing the connection through
DBCP, should it b
On Wednesday, Feb 26, 2003, at 13:51 US/Eastern, Eli Tucker wrote:
Hello. I'm totally new to OJB.
After reading about it in the O'Reilly book _Programming Jakarta
Struts_
and hearing it recommended by others, I thought I would give it a try.
heh I guess Chuck has caused a few more pople to jum
hi john,
how does sql handle like with integers ?
jakob
O'Reilly John wrote:
Hi,
Is there an issue in OJB with performing like queries with integer fields.
I'm trying to use the following criteria:
crit.addLike( "internalProductID", "%" +
Integer.toString(theProductModel.getInternalProductID()
hi jemmee,
i recently added this feature to ojb. the class to be used can be
configured in ojb.properties:
...
#
# CollectionProxy class
#--
Hello. I'm totally new to OJB.
After reading about it in the O'Reilly book _Programming Jakarta Struts_
and hearing it recommended by others, I thought I would give it a try.
I've had problems getting started with v0.9.9 (see below). My question
is this: as someone new to OJB, would it be bet
hi all, i'd like to try implement my own collection proxy class, what i'm
doing is to refer to the source of CollectionProxy and code my own proxy
class, however, no matter how i configure my collection descriptor, it
stills doesn't work, can sbd help?
Best Regards,
Jemm
That would be of interest to me as well, perhaps you could post it to this
list?
Dennis
[EMAIL PROTECTED] wrote:
> Hi Jeff!
>
>> I just figured it out myself. It works and its pretty slick. If you want I
>> can put the steps in an email and send it your way. Someone really needs to
>> help
We're using a customized set of the templates that come with torque-3.0, so
I cant tell you what's changed in those since, but I downloaded the
"db-torque" cvs project and see that they've split off the "generator"
portion (the part we use, which generates schemas and sql). Theres a small
mention
Try removing servlet.jar
Jose Manuel.
-Mensaje original-
De: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 26 de febrero de 2003 17:34
Para: 'OJB Users List'
Asunto: Required Jars
Hello all,
I am just getting started with OJB as well. I plan on using OJB
Here is my class descriptor:
-Original Message-
From: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: Wed 2/26/2003 2:50 AM
To: OJB Users List
Cc:
Subject: Re: Brrow broker from pool is failing
Hi Jeff!
I just figured it out myself. It works and its pretty slick. If you want I
can put the steps in an email and send it your way. Someone really needs to
help project out with something like a getting started guide.
I'd appreciate it very much if you would do so! Thank you for the offer
In JDO mode, does OJB currently requires the O-R-mapping to take place in the
repository.xml or can OJB use a metadata.jdo file for mapping too?
Regards,
Sebastian
--
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.
Hi,
According to the following, OJB is supposed to support ternary associations:
http://c2.com/cgi-bin/wiki?ObjectRelationalToolComparison
I can't find any info on this. Is it actually supported?
Thanks,
John
This e-mail a
I am using OJB 0.9.8 with Tomcat 4.1.12. Take a look at the output from the
Tomcat log file. Is there something in there that indicates why the web app
cannot start?
-- david
-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, Februar
Joshua,
There is also documentation here. Can also consult the ant task for web deployment in
build.xml of the source or cvs distribution.
http://db.apache.org/ojb/deployment.html
Hope this helps.
Andy
> -Original Message-
> From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
>
Hello all,
I am just getting started with OJB as well. I plan on using OJB with
Tomcat. The OJB documentation recommends copying all of the jar files under
the jakarta-ojb-0.9.9\lib directory to the WEB-INF/lib directory.
I tried it. After copying these files, Tomcat will not start the web
app
My web application using OJB is working fine after I deploy it -- I can
create, update, delete, and load objects with no problems. However, if I
leave the app deployed, and try to perform a commit the next day, I get the
following exception (stack trace included).
It seems like something is tim
Hi Luis
the JDBC driver is 2.0 compliant is a "mm.mysql-2.0.14-bin.jar" for
mysql
thanks
- Original Message -
From: "luis barreiro" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 4:03 PM
Subject: RE: NoSuchElementException with getIterat
Interesting.
I get different test failures and errors if I use postgres remotely
than via localhost. Brian McCallister was kind enough to send me his
configuration information, and I noticed he was connecting to the database
via localhost. So, I replicated my ojb-0.9.9 installation on the datab
Check that your jdbc driver is JDBC 2.0 compliant; it's mandatory in order
to getIteratorByQuery or getCollectionByQuery works fine.
http://objectbridge.sourceforge.net/javadoc/ojb/broker/accesslayer/RsIterato
r.html
Cheers!! :)
-Mensaje original-
De: Ferran Parra [mailto:[E
Hi all,
I have an error when accesing a
Iterator iter = broker.getIteratorByQuery(query);
or
Collection aux = broker.getCollectionByQuery(query);
the error:
java.util.NoSuchElementException
at org.apache.ojb.broker.accesslayer.RsIterator.next(Unknown Source)..
any idea?? thanks in advanc
Hi,
Is there an issue in OJB with performing like queries with integer fields.
I'm trying to use the following criteria:
crit.addLike( "internalProductID", "%" +
Integer.toString(theProductModel.getInternalProductID()) + "%" );
Query query = new QueryByCriteria(ProductModel.class, crit, true);
C
afterLookup is fired regardless of whether it was cached or from the
database.
>-Original Message-
>From: Ebersole, Steven [mailto:[EMAIL PROTECTED]
>Sent: 26 February 2003 14:31
>To: 'OJB Users List'
>Subject: RE: auditing mapped classes
>
>
>The PersistenceBrokerListener could definitely
The PersistenceBrokerListener could definitely be used as a start for this
functionality along the lines you mention. A quick question, how does using
caching affect the afterLookup event? Is this event only fired when an
object is materialized from the DB, or after any lookup (regardless of
whet
Hi Yuji,
We currently have about 6 failures and errors in CVS head. SO having 12
problems with a non-hsqldb platform is not bad.
Did you check the junit logs under target/test ?
Do the logs indicate any problems with functionality that you need?
In most cases it's only some special things that d
Hi Joerg,
does not look bad for be.
have a look at the target/test/*test.txt files that contain the junit output
to see which testcases failed.
May be it's just some special stuff that does not fit together, but that you
do not rely on.
Nothing to worry about in most cases.
cheers,
Thomas
> ---
Does someone have a "recipe" for configuring OJB with Postgres (7.3.2)?
I have just started using OJB, and I have the task of applying it to a
project (with a fairly short deadline). The mapping and caching features
promise to be a tremendous time saver, but I am now stuck on getting the
junit te
I intended to ask this on the Torque list, but as it is bouncing on
both db.apache.org and jakarta.apache.org...
Does anyone here know the state of the OJB XML and Java class sources
from Torque descriptors? The Torque site lists it as "experimental".
Thanks,
Brian
-
Output:
---snip---
junit-no-compile-no-prepare:
[junit] Running org.apache.ojb.broker.AllTests
>> [junit] Tests run: 174, Failures: 3, Errors: 3, Time elapsed:
20,703 sec
[junit] TEST org.apache.ojb.broker.AllTests FAILED
[junit] Running org.apache.ojb.odmg.AllTests
[
Hi,
I ran into the same problem. Is there a solution avail?
cheers,
Guido
- Original Message -
From: "Ashraf Moosa" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 10:09 AM
Subject: OJB 0.99 writing to the database in jboss! Please help
Hi,
need some more info.
Please send the class-descriptor of
your 'persistentObject'
regards,
Armin
- Original Message -
From: "Ajitesh Das" <[EMAIL PROTECTED]>
To: "OJB Users List Armin Waibel"
<[EMAIL PROTECTED]@code-au-lait.de>; "OJB Users List"
<[EMAIL PROTECTED]>
Sent: Wednesday, Fe
Hi Armin :
Thanks for your reply.
>first, it seems that you mix the JDO-api with the PB-api in your code
>PersistenceManager --> JDO
>PersistenceBroker (PB), PersistenceBrokerFactory (PBF)--> PB-api
>maybe a typo.
yes this is a Typo. I am just playing PB api
> I get this "Brrow broker from po
Hi,
first, it seems that you mix the JDO-api with the PB-api in your code
PersistenceManager --> JDO
PersistenceBroker (PB), PersistenceBrokerFactory (PBF)--> PB-api
maybe a typo.
> I get this "Brrow broker from pool is failing" exception after some
success write.
Think you forget to call the clo
* Here is my issue :
- When I save the "Broker" object reference in a static variable and use
that in multiple context
I get Optimistic Lock exception.
- If I do not save the Broker object reference :
// pm = PersistenceManager.getInstance(); // return
Broker.defaultPersi
I have checked org.apache.ojb.tutorial1.UCEnterNewProduct.apply() ... my main2()
method is also same in nature..how come urs is woking and mine is not :(
-Original Message-
From: Ajitesh Das
Sent: Wed 2/26/2003 1:14 AM
To: OJB Users List; OJB Users Li
I was trying a simple Test program. where I am setting a set of objects and what to
write them in a DB.I am using PB Api. The very first write is a success but throwing
exception from 2nd write onwards. What I am doing wrong ?
org.apache.ojb.broker.OptimisticLockException: Object has been modi
Hi,
I think it *may* be possible using the PersistenceBrokerListener mechanism.
The PersistenceBrokerListener is an interface, implementations of which can
be added to a persistence broker.
It has call-backs for when objects are "looked up", and when they are
"stored" (among other events).
You co
53 matches
Mail list logo