Hi Larry, Iam using 1.0.rc5 as well. I have pointed to jdo.jar,jdori.jar and jdori enhancer I got by downloading jdo from sun. I have product.jdo in the folder of the tutorials I downloaded and didn't change anything there.as you have mentioned:
>>In org.apache.ojb.tutorial5 (the JDO tutorial) there is a Product.jdo >>descriptor that should be used to enhance the Product class file for use >>during runtime. How do I do this ?? Can you please give me some instructions ?? Thanks, suma -----Original Message----- From: Larry V. Streepy, Jr. [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 2:21 PM To: VENKATESH, SUMA (SBCSI) Subject: Re: Question regarding JDO I can't find the specific class you show in your stack trace -- what version of OJB are you using? I'm using 1.0.rc5. In org.apache.ojb.tutorial5 (the JDO tutorial) there is a Product.jdo descriptor that should be used to enhance the Product class file for use during runtime. That's about all I know. If you're certain that the enhancer has been run, then I don't have any other suggestions other than ensure that the versions of jdo.jar and jdori.jar are current (or correct for the version of OJB you are using). Sorry. VENKATESH, SUMA (SBCSI) wrote: >Hi > Larry, > > I built the JDO source and got Persistance broker API work for few smaples >of my own. >Iam now working on JDO tutorials. He talks of building OJB src to get >jdo.jar and jdori.jar which is already there in my src dircetory for OJB.I >moved all these code into my webspehere environment and pointed the >classpaths to respective jars in build and runtimes.All these worked for >Persistance broker but now when I try to run JDO iam running into this below >error. Is it that JDO is not functional in OJB or is there a problem with my >setup and programs ??? > >Iam sending this to users group too..iam in time crunch...need to decide >soon and hence the struggle. > >Thanks, >suma > > > >-----Original Message----- >From: Larry V. Streepy, Jr. [mailto:[EMAIL PROTECTED] >Sent: Thursday, January 15, 2004 1:41 PM >To: VENKATESH, SUMA (SBCSI) >Subject: Re: Question regarding JDO > > >Sorry Suma, but I know nearly nothing about JDO. My only question would >be are you sure that the JDO enhancement got run? I know that it's >responsible for hacking on the bytecode to enable JDO interactions. > >VENKATESH, SUMA (SBCSI) wrote: > > > >>Hi >> Larry, >> >> I have this problem .Iaam unable to resolve this. Can u please throw some >>light. I have jdori and jdo in my runtime path. >>Iam running this on WSAD 5.1 server.This the run of tutorial 4 on JDO API. >>I get the following error: >> >>javax.jdo.JDOUserException: Class given to getExtent, >>org.apache.ojb.JDOTutorials.Product, does not implement >>javax.jdo.spi.PersistenceCapable >> 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.JDOTutorials.UCListAllProducts.apply(UCListAllProducts.java : >> >> >4 > > >>4) >> at org.apache.ojb.JDOTutorials.Application.run(Application.java:101) >> at org.apache.ojb.JDOTutorials.Application.main(Application.java:69) >>Cannot close PersistenceManager while transaction is still active. >> >>Can anybody tell me why ? >> >>My repository_user.xml looks like this... >> >> <class-descriptor >> class="org.apache.ojb.PBTutorials.Product" >> table="SCOTT.PRODUCT" >> > >> <field-descriptor >> name="id" >> column="ID" >> jdbc-type="INTEGER" >> primarykey="true" >> autoincrement="true" >> /> >> >> <field-descriptor >> name="name" >> column="NAME" >> jdbc-type="VARCHAR" >> /> >> <field-descriptor >> name="price" >> column="PRICE" >> jdbc-type="FLOAT" >> /> >> <field-descriptor >> name="stock" >> column="STOCK" >> jdbc-type="INTEGER" >> /> >> >> </class-descriptor> >> >> >> >> >>Thanks in advance, >>suma >> >> >> >> >> >> > > > -- Larry V. Streepy, Jr. Senior Vice President and CTO ------------------------------------------------------------------------ <http://www.healthlanguage.com/> "We speak the language of healthcare" ^(TM) Direct: +1 425-373-0600 Fax: +1 425-373-1633 Corp.: +1 303-307-4400 Health Language, Inc. 3950 Lewiston Street, Suite 210 Aurora, Colorado 80011 ------------------------------------------------------------------------ The information in this email message is intended only for the use of the intended recipient and may contain confidential information. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Health Language's corporate offices in Aurora, Colorado USA at (+1) 303-307-4400. ------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
