I have been trying to run tutorial5 for the past day now and I keep getting the same error when I do a "List All product entries".
I followed the instructions below to the word, I even checked out the module fresh from CVS and everything.

I would really like to start playing with the JDO plugin, but I can't seem to get past running tutorial5. Any hints would be much appreciated.

Nothing in the app works actually. I can't add, query, nor delete.
Here is the stack trace I get when I select to "List All product entries":

org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: org.apache.ojb.tutorial5.Product not found in OJB Repository
at org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(
DescriptorRepository.java:300)
at org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(
DescriptorRepository.java:313)
at org.apache.ojb.broker.query.QueryFactory.newQuery(QueryFactory.java:1
25)
at org.apache.ojb.broker.query.QueryFactory.newQuery(QueryFactory.java:1
37)
at org.apache.ojb.jdori.sql.OjbExtent.<init>(OjbExtent.java:84)
at org.apache.ojb.jdori.sql.OjbStoreManager.getExtent(OjbStoreManager.java:271)
at com.sun.jdori.common.PersistenceManagerImpl.getExtent(Unknown Source)

at com.sun.jdori.common.query.QueryImpl.checkCandidates(Unknown Source)
at com.sun.jdori.common.query.QueryImpl.execute(Unknown Source)
at org.apache.ojb.tutorial5.UCListAllProducts.apply(UCListAllProducts.java:45)
at org.apache.ojb.tutorial5.Application.run(Application.java:102)
at org.apache.ojb.tutorial5.Application.main(Application.java:70)
Cannot close PersistenceManager while transaction is still active.


All of the tests pass when I run the JUnit tests.

Here's the debug info I get back
The list of available products:
[org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Create Pers
istenceBroker instance pool, pool configuration was {whenExhaustedAction=0, maxI
dle=-1, maxActive=100, maxWait=2000, numTestsPerEvictionRun=10, testWhileIdle=false, testOnReturn=false, timeBetweenEvictionRunsMillis=-1, minEvictableIdleIimeM
illis=600000, testOnBorrow=false}
[org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: OJB Descriptor Repository: file:/D:/cygwin/home/chargrav/jakarta-ojb/target/test/ojb/repository.xml
[org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: Read repository from
file took 3284 ms
[org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: OJB Descriptor Repository: file:/D:/cygwin/home/chargrav/jakarta-ojb/target/test/ojb/repository.xml
[org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: Read connection repository from file took 160 ms
[org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Set default
PBKey: org.apache.ojb.broker.PBKey: repository=default, user=sa, password=*****

[org.apache.ojb.broker.util.sequence.SequenceManagerFactory] INFO: Use sequence
manager class: class org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
[JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] INFO: Create new connection pool:org.apache.ojb.broker.metadata.JdbcConnectionDescriptor@1afae45
[
jcd-alias=default
default-connection=true
dbms=Hsqldb
jdbc-level=2.0
driver=org.hsqldb.jdbcDriver
protocol=jdbc
sub-protocol=hsqldb
db-alias=../OJB
user=sa
password=
eager-release=false
ConnectionPoolDescriptor={minEvictableIdleIimeMillis=600000, testOnReturn=false, maxActive=21, testWhileIdle=false, numTestsPerEvictionRun=10, maxWait=5000, timeBetweenEvictionRunsMillis=-1, whenExhaustedAction=0, testOnBorrow=true, maxId
le=-1}
batchMode=false
]


From: Mahler Thomas <[EMAIL PROTECTED]>
Subject: [jdo] try it out!
Date: Thu, 28 Nov 2002 10:22:36 +0100
Content-Type: text/plain;
charset="iso-8859-1"

Hi all,

I just checked in a first working draft of the OjbStore Implementation.
This Store can be plugged in into the JDO Reference Implementation.

Try it out!

follow these steps to see it running:
0. check out cvs HEAD
1. download the JDO RI from SUN
(http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=5&PartDetailId=JDOI
MP-1.0-G-CS&TransactionId=communitySource)

Unpack it and place the jdori.jar into the OJB lib directory.

2. run "ant with-jdori prepare-tutorials"
3. run "ant enhance-jdori"
4. run "bin/tutorial5.sh"

5. enJoy!


The next steps will be to fix some minor bugs and to run the JDORI Testsuite
against the OjbStore implementation.
I assume there are still several things missing.

Once this is done we could also try to pass the JDO TCK.

All help is welcome to get these efforts done!

cheers,
Thomas




_________________________________________________________________
MSN 8 with e-mail virus protection service: 3 months FREE*. http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf


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

Reply via email to