Hi Joerg,
I have checked in a fix for tutorial2. Please replace the
Application.java file of tutorial2 with the new version
you could get here:
http://cvs.apache.org/viewcvs.cgi/db-ojb/src/test/org/apache/ojb/tutoria
l2/
With this fix and the out of box configuration files the tutorial
runs without problem (I used current CVS, but I think with
0.9.9 it should run too).
HTH
regards,
Armin
----- Original Message -----
From: "Joerg Lensing" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 6:57 PM
Subject: Re: OMDG Tutorial2 won't run as written
> <Required Alterations:
> <1) Add the patches created by Armin Waibel
> i did this
>
> < 2) made the following change to line 54 of ...
> this too
>
> in repository_database.xml:
> <jdbc-connection-descriptor jcd-alias="default"
> default-connection="true" platform="MySQL" jdbc-level="2.0"
> driver="com.mysql.jdbc.Driver" protocol="jdbc" subprotocol="mysql"
> dbalias="//localhost:3306/wecodb" username="myname"
> password="mypassword" batch-mode="false">
> <connection-pool maxActive="21" validationQuery=""/>
> <sequence-manager
>
className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImp
l">
> <attribute attribute-name="grabSize" attribute-value="20"/>
> </sequence-manager>
> </jdbc-connection-descriptor>
>
> all should work but i get:
> [org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO:
> Create PersistenceBroker instance pool, pool configuration was
> {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=false}
> [org.apache.ojb.broker.metadata.RepositoryPersistor] INFO: OJB
> Descriptor Repository:
>
file://Linuxserver/jogi_save_xp/alleRechner/weco/WEB-INF/classes/reposit
ory.xml
> [BOOT] ERROR: Error in instantiation of PersistenceBrokerFactory class
> Could not read repository class descriptor data, using repository:
> repository.xml: Connection refused: connect
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>
>
> what can i do? (i tried a lot!!)
>
> thanx
>
>
>
> ---------------------------------------------------------------------
> 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]