Hello,
I have this error when I launch OJB:
[BOOT] INFO: OJB.properties:
file:/C:/Eclipse_projects/woc_cocoon_2.1.2/WEB-INF/classes/OJB.properties
java.lang.NoClassDefFoundError: org/apache/commons/pool/PoolableObjectFactory
at java.lang.Class.forName0(Native Method)
at
Hello,
All the JAR I need are in the classpath.
When I run OJB from a servlet it works well but when I run it from a main() method
this error occurs.
There is no differences between them.
That's a bit strange!
Sylvain
-Original Message-
From: Martin Kalén [mailto:[EMAIL PROTECTED]
All the JARs needed are in the CLASSPATH, I can check that when I run the standalone
application in Eclipse.
Just one question: is OJB 0.9.5 OK with JDK 1.4 (because I have just changed it)??
Sylvain
-Original Message-
From: Danilo Tommasina [mailto:[EMAIL PROTECTED]
Sent:
Hello,
Trying to use the field conversion:
I have a class Application that has an attribute releaseDate to store a date (no
time).
In my database (MS SQL) the type is: datetime.
In OJB repository the jdbc-type is: DATE.
In my java code I use the class java.util.Date.
I added the line below in
Hi,
Yes you're right!
But the conversion doesn't change anything for me.
Regards
Sylvain
-Message d'origine-
De: Charles Anthony [mailto:[EMAIL PROTECTED]
Date: mardi, 18. novembre 2003 09:47
À: 'OJB Users List'
Objet: RE: Problem with dates conversion
Hi,
Check your
Hi again,
My problem is to display dates in European format.
If I use java.sql.Date in the Application class the date is displayed as: 2003-11-26
If I use java.util.Date the date is displayed as: Wed Nov 26 00:00:00 CET 2003
I would like to have the format: dd.mm..
I thought that we could
Hi,
In fact I'm talking about a java web application using Apache Cocoon framework.
When I instantiate and retrieve from database an Application object, I notice that
this releaseDate is stored in a number of seconds format.
When I display this date, I simply take the value using a XPath
Hi,
Yes, the toString() method of java.sql.Date class format the date in JDBC date escape
format (-mm-dd).
I'll see on the Cocoon side if I could define a date format.
Thanks again
Regards
Sylvain
-Message d'origine-
De: Charles Anthony [mailto:[EMAIL PROTECTED]
Date: mardi,
Hello,
Is the conversion= mechanism works with OJB 0.9.5?
Thanks
Sylvain
-Message d'origine-
De: Gelhar, Wallace Joseph [mailto:[EMAIL PROTECTED]
Date: vendredi, 14. novembre 2003 18:05
À: OJB Users List
Objet: RE: Problem persisting dates
Hi Carl,
java.sql.Date represents
Hello,
Trying to use the field conversion:
I have a class Application that has an attribute releaseDate to store a date (no
time).
In my database (MS SQL) the type is: datetime
In OJB repository the jdbc-type is: DATE
In my java code I use the class java.util.Date
I added the line below in OJB
Hello,
I'm using PB and when I retrieve dates the format is /mm/dd.
Is it a way to define/transform the dates to have the format dd/mm/ (european)?
Thanks
Regards
Sylvain
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
I use java.sql.Date class for date attributes.
I'll use java.text.DateFormat.
Sorry, maybe the wrong list for this question (more a Java coding question).
Thanks
Sylvain
-Message d'origine-
De: Charles Anthony [mailto:[EMAIL PROTECTED]
Date: vendredi, 14. novembre 2003 16:26
À:
Hello,
I'using PB intances to retrieve info from my database.
When the time to search information is too long you can press the stop button on the
browser.
But when I restart my application there is a TransactionNotInProgress exception.
Maybe the PB instance isn't closed when I stop the
Hi,
-Message d'origine-
De: Armin Waibel [mailto:[EMAIL PROTECTED]
Date: mercredi, 5. novembre 2003 11:46
À: OJB Users List
Objet: Re: PB error when the browser is stoped
Hi,
[EMAIL PROTECTED] wrote:
Hello Armin,
I'm using OJB 0.9.5.
uuh! a real oldtimer ;-)
Hi again Armin
-Message d'origine-
De: Armin Waibel [mailto:[EMAIL PROTECTED]
Date: mercredi, 5. novembre 2003 12:22
À: OJB Users List
Objet: Re: PB error when the browser is stoped
Hi again,
[EMAIL PROTECTED] wrote:
...
here you get a new instance, what about the
Hi Thomas,
-Message d'origine-
De: Mahler Thomas [mailto:[EMAIL PROTECTED]
Date: mercredi, 5. novembre 2003 14:17
À: 'OJB Users List'
Objet: RE: PB error when the browser is stoped
Hi Sylvain,
snip
Just some question to be sure to understand:
How could you define a
Hello,
I have a question/problem about the function getIteratorByQuery():
Here is a code:
code
Iterator iter = null;
try {
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
broker.beginTransaction();
iter = broker.getIteratorByQuery(query);
get rid of the transaction... why are you doing a
broker.close() before
you starting iterating? Not sure what you are trying to do.
I'm doing a broker.close() to be sure to put the broker instance back to the
connection pool.
Sylvain
Hello Thomas,
Is there a way to check how many instances are contained in the pool?
You can find an example below.
You create a broker instance in line 10, right?
You use the broker instance first time in line 19. After this use you close() the
instance.
But the problem is if you do the close()
Hello,
I'm using OJB in my web application and I have some problem with PB instances creation.
Each time I want to read/write data from/to my database I create a PB intance:
broker = PersistenceBrokerFactory.defaultPersistenceBroker();
The problem is that lot of PB instances are created and
Hello,
I have an object A that have a collection reference to a list of objects B.
Is anyone that could help me to understand how can I update the collection reference
of the object A?
My problem is that the objects B I remove from the list of objects B are not deleted
in the database when I
Hello,
I have a Workstation class which contains the reference wntWorkstation to another
class WntWorkstation (there is a 1:1 relationship).
How could I delete in Workstation the reference wntWorkstation AND the object
referenced in WntWorksation table??
Thanks
Sylvain
Note: the
Hello,
I have a Workstation class which contains the attribute wntWorkstationId and the
reference wntWorkstation to another class WntWorkstation (there is a 1:1
relationship).
How could I delete in Workstation the reference wntWorkstation (the attribute
wntWorksationId) AND the referenced
For me the problem appears without any reference/collection.
If you get a simple query to retrieve an object, modify an attribute of this object in
the database and get this object a second time the attribute won't be updated.
Is it a bug or is there something wrong in my app?
Sylvain
Hi Charles,
It works fine with crit.addIn.
Thanks
Sylvain
-Message d'origine-
De: Charles Anthony [mailto:[EMAIL PROTECTED]
Date: lundi, 31. mars 2003 09:38
À: 'OJB Users List'
Objet: RE: how to create dynamic criteria?
Hi Sylvain,
I assume the collection contains all or values for a
Hello,
I have this problem:
I have a Collection that contains n String (I don't know the number in advance).
These n String are used to construct some criteria. Each String is used for one
criteria.
I need OR statements between criteria, like:
crit1 OR crit2 OR crit3 OR ... critn
The criteria
Hello,
I'm working on a Search web form and I'm using OJB to retrieve data from my database.
I have three criteria on my form:
- name (String)
- dhcp (boolean)
- status (int)
The user has 2 choices: enter a data in the form fields or not.
I want to retrieve:
- all (no criteria in the query) if
Hi Charles,
Criteria crit = new Criteria();
if(!this.getName()==null){
crit.addEqualTo(name, this.getName());
}
if(!this.getDhcp()==null){
crit.addEqualTo(dhcp, this.getDhcp());
}
if(!this.this.getStatus()==null){
crit.addEqualTo(status, this.getStatus());
}
I think that's the best
Hello,
In the PB tutorial (tutorial1) the author explains how to obtain a Broker instance:
You put the code below in the constructor of your class.
code
public MyClass()
{
PersistenceBroker broker = null;
try
{
broker = PersistenceBrokerFactory.
Hi Armin,
I have seen the FAQ. Thanks.
But it doesn't work for me.
My SQL query is select workstationName from Workstation.
From my database query analyzer, this query retrieves 36 rows.
In OJB I try:
code
String sql = select workstationName from Workstation;
Query query =
Hi Jakob,
Here is the sql:
SQL: SELECT
A0.variableCreateDate,A0.variableId,A0.variableName,A0.variableCreator,A0.variableType
FROM Variable A0 ORDER BY 3
SQL: SELECT
Hello,
I'm using OJB and PersistenceBroker API.
I use OJB to deal with my database from inside a JavaBean.
My question is:
Where is the best place to declare my PersistenceBroker inside the Bean?
I think it's better to declare the broker one time??
Thanks
Sylvain
Hello,
Is anyone that use OJB know something about a query builder that could create a query
automatically based on several criteria?
Thanks
Sylvain
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Your repository.dtd file are missing.
Sylvain
-Message d'origine-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Date: mercredi, 5. mars 2003 17:35
À: OJB Users List
Objet: Réf. : Re: using OJB with Struts and Eclipse
thanks for all the answers i got ; now my system finds the
Hello,
As specified in the deployment document, my OJB.properties and repository.xml files
are in WEB-INF/classes folder.
But OJB doesn't find this files!
How could I specify this path in OJB?
Thanks
Sylvain
-
To
Robert,
This is why I added private Collection brokerHomesColl, and mapped that
in a Collection element in the BrokersToHomesBO. When the select
happens, the brokerHomesColl gets automatically populated with BrokerBO
objects. to get AT those objects you have to iterate through the
Hi Robert,
Thanks for your ODMG example.
Of course this make sense for me!
But, about my problem, I say two things:
- I'm using the PersistenceBroker, not ODMG (but that's not very important)
- I wouldn't create a Base super-class
Mainly my question was: if I implement a qualified M:N mapping
Hello,
I want to implement a qualified M:N mapping.
As explained in tutorial 3, I have created an association class.
My problem is how to retrieve (or store) info with this association class between the
two classes?
Is it possible to have a packages attribute in the Workstation class and simply
Hello,
I have had to modify my M:N mapping to have a qualified association.
Before that I used a non-decomposed m:n mapping without association class. The mapping
was configured transparently and it was easy to retrieve info from that.
Now, for the qualified M:N mapping, I have to create an
Hello,
I'm trying to implement a manually decomposed M:N mapping with a qualified association.
As explained in tutorial 3, I need to implement an association class.
It's OK.
If you see at tutorial 3, page 8, you will see the class-diagram with Person, Role and
Project classes.
My problem is
40 matches
Mail list logo