Thanks, Armin

I'll check the data source config.  I didn't think that I was using 
DriverManager, but I'll check on it.

Cheers...


MikeA


On Tuesday 31 December 2002 01:52, Armin Waibel wrote:
> Hi Mike,
>
> ----- Original Message -----
> From: "Michael Ansley" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 31, 2002 1:53 AM
> Subject: Re: Startup Exception
>
> > All,
> >
> > After much faffing around, I discovered it was because I had set my
>
> bean
>
> > transaction type to bean-managed, rather than container-managed, and
>
> wasn't
>
> > actually managing it.  So, I set it to container-managed, but then I
>
> get this
>
> > when I disconnect the client app from the session bean:
>
> Container-managed is the right way.
> But you have to use datasources from your AppServer instead of
> connections from the DriverManager.
> e.g.
> < jdbc-connection-descriptor
>      jcd-alias="default"
>      platform="Hsqldb"
>      jdbc-level="2.0"
>      jndi-datasource-name="java:DefaultDS"
>      username="sa"
>      password=""
>      eager-release="false" // when using jboss set 'true'
>    />
> The docs shipped with OJB describe the correct setup for JBoss
> Build docs with bin\build.bat htmldoc
> see section 'Deployment'.
>
> regards,
> Armin
>
> > 00:40:05,225 INFO  [STDOUT] [org.apache.ojb.odmg.ObjectEnvelopeTable]
>
> ERROR:
> > 00:40:05,226 INFO  [STDOUT] Commit on object level failed for tx
> > org.apache.ojb.odmg.J2EETransactionImpl@c736e4
> > 00:40:05,227 INFO  [STDOUT] Not supported in managed environment
> > 00:40:05,227 ERROR [STDERR] java.lang.UnsupportedOperationException:
>
> Not
>
> > supported in managed environment
> > 00:40:05,231 ERROR [STDERR]     at
>
> org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl.newConnec
> tionFromDriverManager(ConnectionFactoryManagedImpl.java:24)
>
> > 00:40:05,232 ERROR [STDERR]     at
>
> org.apache.ojb.broker.accesslayer.ConnectionFactoryNotPooledImpl.getConn
> ectionFromPool(ConnectionFactoryNotPooledImpl.java:18)
>
> > 00:40:05,233 ERROR [STDERR]     at
>
> org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupCo
> nnection(ConnectionFactoryAbstractImpl.java:89)
>
> > 00:40:05,234 ERROR [STDERR]     at
>
> org.apache.ojb.broker.accesslayer.ConnectionFactoryManagedImpl.lookupCon
> nection(ConnectionFactoryManagedImpl.java:18)
>
> > 00:40:05,234 ERROR [STDERR]     at
>
> org.apache.ojb.broker.accesslayer.ConnectionManager.getConnection(Connec
> tionManager.java:117)
>
> > 00:40:05,235 ERROR [STDERR]     at
>
> org.apache.ojb.broker.accesslayer.ConnectionManager.localBegin(Connectio
> nManager.java:157)
>
> > 00:40:05,236 ERROR [STDERR]     at
>
> org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.beginTransaction(Pe
> rsiste
>
> > etc, etc.
> >
> > I don't have any OJB objects open within the transaction, and apart
>
> from
>
> > actually opening the connection, I haven't done anything with the OJB
> > Database object.  Could this be the problem?  I'm not sure, because of
>
> the
>
> > NotSupported message.  The message seems to indicate that I still
>
> don't have
>
> > my transaction environment set properly. What gotchas should I be
>
> looking out
>
> > for there?
> >
> > I haven't tried bean-managed yet, although I can't see this being any
> > different.
> >
> > Cheers...
> >
> >
> > MikeA
> >
> > On Thursday 26 December 2002 00:05, Armin Waibel wrote:
> > > Hi Michael,
> > >
> > > the EJB-example classes on CVS do not run correctly
> > > today. I will check in the revised versions tomorrow.
> > > We have to do conversion to new established jcdAlias name
> > > instead of using 'repository.xml'
> > >
> > > regards,
> > > Armin
> > >
> > > ----- Original Message -----
> > > From: "Michael Ansley" <[EMAIL PROTECTED]>
> > > To: "OJB Users List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, December 26, 2002 12:40 AM
> > > Subject: Re: Startup Exception
> > >
> > > > Thanks.  That seems to have moved me on.  Now I run into this.  I
>
> know
>
> > > that
> > >
> > > > it's probably more to do with JBoss than OJB, but I'm not familiar
> > >
> > > enough
> > >
> > > > with JBoss to deal with it.  Any ideas?
> > > >
> > > >
> > > > 23:32:16,589 INFO  [STDOUT] [org.apache.ojb.odmg.OJBJ2EE_2] INFO:
> > > > 23:32:16,590 INFO  [STDOUT] beginInternTransaction was called
> > > > 23:32:16,620 INFO  [STDOUT]
>
> [org.apache.ojb.broker.ta.NamingLocator]
>
> > > INFO:
> > > > 23:32:16,621 INFO  [STDOUT] Init NamingLocator
> > > > 23:32:16,622 INFO  [STDOUT]
>
> [org.apache.ojb.broker.ta.NamingLocator]
>
> > > INFO:
> > > > 23:32:16,622 INFO  [STDOUT] Properties for creating the initial
> > >
> > > context: null
> > >
> > > > 23:32:16,628 INFO  [STDOUT] [org.apache.ojb.odmg.OJBJ2EE_2] INFO:
> > > > 23:32:16,629 INFO  [STDOUT] obtain new intern odmg-transaction
> > > > 23:32:16,724 INFO  [STDOUT] [org.apache.ojb.odmg.JTATxManager]
>
> INFO:
> > > > 23:32:16,725 INFO  [STDOUT] registerSynchronization was called
> > > > 23:32:16,726 INFO  [STDOUT] [org.apache.ojb.odmg.JTATxManager]
>
> ERROR:
> > > > 23:32:16,727 INFO  [STDOUT] Cannot get the external transaction
>
> from
>
> > > the
> > >
> > > > external TM
> > > > 23:32:16,772 ERROR [MaintainOperator] Database open failed
> > > > org.odmg.TransactionNotInProgressException: No external
>
> transaction
>
> > > found
> > >
> > > >         at
> > >
> > > org.apache.ojb.odmg.JTATxManager.registerTx(JTATxManager.java:113)
> > >
> > > >         at
> > >
> > > org.apache.ojb.odmg.TransactionImpl.begin(TransactionImpl.java:640)
> > >
> > > >         at
>
> org.apache.ojb.odmg.OJBJ2EE_2.beginInternTransaction(OJBJ2EE_2.java:67)
>
> > > >         at
>
> org.apache.ojb.odmg.OJBJ2EE_2.registerOpenDatabase(OJBJ2EE_2.java:38)
>
> > > >         at
> > >
> > > org.apache.ojb.odmg.DatabaseImpl.open(DatabaseImpl.java:166)
> > >
> > > > On Wednesday 25 December 2002 22:42, Matthew Baird wrote:
> > > > > check out the ojb.properties file that is included in the distro
>
> or
>
> > > in cvs.
> > >
> > > > > The connection factory names have been changed slightly.
> > > > >
> > > > > cheers,
> > > > > Matthew
> > > > >
> > > > > -----Original Message-----
> > > > > From: Michael Ansley [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wed 12/25/2002 2:47 PM
> > > > > To: OJB Users List
> > > > > Cc:
> > > > > Subject: RE: Startup Exception
> > > > >
> > > > >
> > > > >
> > > > > All,
> > > > >
> > > > > OK, I discovered that my OJB.properties file wasn't being read
> > >
> > > properly,
> > >
> > > > > so I've moved on somewhat.  I've now discovered that
> > > > > AbstractConnectionFactory and ConnectionFactoryPassThroughImpl
>
> have
>
> > > been
> > >
> > > > > removed.  Can anybody tell me what I'm suppose to replace them
>
> with
>
> > > (I'm
> > >
> > > > > using JBoss, and following the instructions on the deployment
>
> page,
>
> > > which
> > >
> > > > > explicitly references them).
> > > > >
> > > > > Cheers...
> > > > >
> > > > >
> > > > > MikeA
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > >
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > > > For additional commands, e-mail:
> > >
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > > --
> > > > To unsubscribe, e-mail:
> > >
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > > For additional commands, e-mail:
> > >
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
>
> <mailto:[EMAIL PROTECTED]>
>
> > > For additional commands, e-mail:
>
> <mailto:[EMAIL PROTECTED]>
>
> > --
> > To unsubscribe, e-mail:
>
> <mailto:[EMAIL PROTECTED]>
>
> > For additional commands, e-mail:
>
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to