db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Plachy" <Johannes.Pla...@jps.at>
Subject Re: problems with torque at runtime
Date Fri, 22 Aug 2003 15:23:55 GMT
Hi Giulio,

I am running my webapp from within eclipse and almost always start and stop
tomcat
( which is the only one running) during testcycles.
Maybe I should have a look at the implementation of Torque.init, as I wonder
why I never get an exception although the (torque-db)connection is never
initialized correctly.
Is there a known set of properties which have to be set correctly for torque
to initialize completely
( other than these in the documentation ?)
The best solution for my would be anyway having torque using the datasource
defined through JNDI,
but by now all documented connection methodes failed at runtime.
Curiously I never had any problems at build-time - initializing the db and
codegeneration works
smoothly.

regards
Johannes

----- Original Message ----- 
From: "Giulio Vezzelli" <giulio.vezzelli@infolog.it>
To: "Apache Torque Users List" <torque-user@db.apache.org>
Sent: Friday, August 22, 2003 2:29 AM
Subject: Re: problems with torque at runtime


> Johannes Plachy wrote:
>
> >Cameron,
> >
> >Torque always claims to be initialized correctly ( Torque.isInit()
> >returns true) and the
> >initialization itself is done without error message.
> >
> >Currently I switched to Tomcat-managed Datasources and pass a Connection
> >object to each Torque-peer class method.
> >This works fine, but I quess is not the cleanest solution.
> >
> >Johannes
> >
> >( following my init servlet code )
> >
> Hi Johannes,
>
> I get the same error (connection object was null) if I use Torque in a
> webapp and I reload it from the Tomcat manager. I think the issue is
> re-initializing Torque without properly shutting it down (if I tried all
> methods related to shutdown). If I restart the whole container (Tomcat,
> in this case) the webapp works fine again. I don't know if it helps, but
> it may be a similar problem (and the solution might solve mine too!)
>
> Greetings,
>
> Giulio Vezzelli
>
> Infolog S.r.l.
> Via Alfieri, 28
> Modena - 41100
> Telefono : +39-059-822446
> Web : http://www.infolog.it
> E-mail : giulio.vezzelli@infolog.it
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message