Hi Jeremias,
This is a little mishap in the repository.xml file.
Please edit the file src/test/org/apache/ojb/repository.xml
and change the line
<!-- &user; -->
to
&user;
this will include the mappings for the tutorial apps.
cheers,
Thomas
Jeremias Ricardo wrote:
Hi People,
I'm new on OJB and i'm evaluating the product.
I executed the junit test and the build prepare-tutorials without problem.
When I've tried to execute the tutorial1.bat the error bellow was throwed.
Can anyone help me?
Thanks in advance!
Jeremias.
[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: t
enter price: 1
enter available stock: 1
[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] INFO: Create
new
connection
pool:org.apache.ojb.broker.metadata.JdbcConnectionDescriptor@630ab9[
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,
max
Wait=5000, removeAbandoned=false, numTestsPerEvictionRun=10,
testWhileIdle=false
, minEvictableIdleTimeMillis=600000, testOnReturn=false, logAbandoned=false,
rem
oveAbandonedTimeout=300, timeBetweenEvictionRunsMillis=-1,
testOnBorrow=true}
batchMode=false
sequenceDescriptor=org.apache.ojb.broker.metadata.SequenceDescriptor@7e748f[
sequenceManagerClass=class
org.apache.ojb.broker.util.sequence.SequenceMana
gerHighLowImpl
Properties={grabSize=20}
]
]
[org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] INFO: Rollback was
cal
led, do rollback on current connection org.hsqldb.jdbcConnection@4384c2
org.apache.ojb.tutorial1.Product not found in OJB Repository
org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException:
org.apache.o
jb.tutorial1.Product not found in OJB Repository
at
org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(
DescriptorRepository.java:305)
at
org.apache.ojb.broker.metadata.DescriptorRepository.getDescriptorFor(
DescriptorRepository.java:318)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(Persistenc
eBrokerImpl.java:622)
at
org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.store(Dele
gatingPersistenceBroker.java:151)
at
org.apache.ojb.tutorial1.UCEnterNewProduct.apply(UCEnterNewProduct.ja
va:42)
at org.apache.ojb.tutorial1.Application.run(Application.java:89)
at org.apache.ojb.tutorial1.Application.main(Application.java:57)
---------------------------------------------------------------------
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]