Hi, dave, The error suggested that you probably do not have a right repository*.xml. Can you double check it and in specific try to see if org.apache.ojb.tutorial1.Product is defined in these xml files.
Otherwise the OJB.Properties file does not have the xml file location proper. Regards, Anthony -----Original Message----- From: David Warnock [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 5:54 PM To: [EMAIL PROTECTED] Subject: Tutorial 1 fails Hi, I am trying to get to grips with OJB. I am working my way through quickstart. I have done all the builds (and in the process sent in a patch for 30 depreciation warnings). Now I am running bin/tutorial1.sh I get the errors below. Unfortunately, they don't make much sense to me yet. Can anyone give me some hints whether I am doing something wrong or if there is a problem with the project (using up to date copy from cvs). I have run the prepare-tutorials build which seemed fine. Thanks Dave [david@amos ~/dev/tools/db-ojb]$ bin/tutorial1.sh _ _ __ (_)| |_ / _\| || _ \ ~ be persistent ~ \__/| ||___/ v. 0.9.9.1 /_/ Welcome to the OJB PB tutorial application [0] List all product entries [1] Enter a new product [2] Edit a product entry [3] Delete a product entry [4] Quit Application type in number to select a use case 1 please enter a new product enter name: dw enter price: 1 enter available stock: 2 [org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] INFO: Create new connection pool:org.apache.ojb.broker.metadata.JdbcConnectionDescriptor@15a0305[ 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={whenExhaustedAction=0, maxIdle=-1, maxActive=21, maxWait=5000, removeAbandoned=false, numTestsPerEvictionRun=10, testWhileIdle=false, minEvictableIdleTimeMillis=600000, testOnReturn=false, logAbandoned=false, removeAbandonedTimeout=300, timeBetweenEvictionRunsMillis=-1, testOnBorrow=true} batchMode=false sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@6f50a8[ sequenceManagerClass=class org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl Properties={grabSize=20} ] ] [org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] INFO: Rollback was called, do rollback on current connection org.hsqldb.jdbcConnection@1acd47 org.apache.ojb.tutorial1.Product not found in OJB Repository org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: org.apache.ojb.tutorial1.Product not found in OJB Repository at org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(Descrip torRepository.java:305) at org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(Descrip torRepository.java:318) at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBroker Impl.java:623) at org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.store(DelegatingP ersistenceBroker.java:151) at org.apache.ojb.tutorial1.UCEnterNewProduct.apply(UCEnterNewProduct.java:42) at org.apache.ojb.tutorial1.Application.run(Application.java:89) at org.apache.ojb.tutorial1.Application.main(Application.java:57) [0] List all product entries [1] Enter a new product [2] Edit a product entry [3] Delete a product entry [4] Quit Application type in number to select a use case -- David Warnock, Sundayta Ltd. http://www.sundayta.com iDocSys for Document Management. VisibleResults for Fundraising. Development and Hosting of Web Applications and Sites. --------------------------------------------------------------------- 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]
