Bob,

Nice work on the classloader issue - sounds like a bear!

Let's see:
1)  Since Torque is inited, then it's almost definitely a problem within
the Torque file.

2)  I notice you specify torque.database.default.adapter = msql.  Maybe
that should be "torque.database.biztracker.adapter=msql"

3)  Since it seems to be a Torque init problem, I would suggest trying
to get a standalone app to run before getting the web application
running.  That way, you'll get the configuration details right.

-Peter


On Wed, 2002-10-23 at 16:30, Bob wrote:
> After a bit of research, I've found that JBuilder 5 has a
> nasty little classloader bug that will cause anything run
> within it's embedded web server to potentially handle the
> classloader improperly.  I've never encountered this before
> with reflection and classloaders until now, however from
> another resource on the web I found reference to this
> issue.
> 
> So, after a quick trip to www.netbeans.org, I moved my
> sample application to Netbeans 3.4 which implements Tomcat
> 4.0.4 as its embedded web server.  I moved the stuff from
> the InitServlet into a JSP file and got it to successfully
> return Torque.isInit() as true.  However, I STILL got the
> connection null error.  The InitServlet as I had it will in
> fact init properly and Torque.isInit() will come back with
> true also.  But the second I try to run a query, I get the
> Connection is null error.  (Same as before)
> 
> 
> I'm again stumped as to what I should try next.  I'm
> suspecting maybe a config issue in my Torque.properties, so
> I've included it below.
> 
> Thanks again,
> 
> Bob
> 
> 
> > log4j.rootCategory = DEBUG, default
> > log4j.appender.default = org.apache.log4j.FileAppender
> > log4j.appender.default.file =
> > c:/data/java/projects/Torque/torque.log
> > log4j.appender.default.layout =
> > org.apache.log4j.SimpleLayout
> > 
> > 
> > torque.applicationRoot = c:/data/java/projects/Torque
> > 
> > 
> > torque.database.default=biztracker
> > torque.database.default.adapter=mssql
> > 
> > 
> > ## Using Jdbc2Pool
> > torque.dsfactory.biztracker.factory=\
> >   org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
> > torque.dsfactory.biztracker.pool.defaultMaxActive=10
> > torque.dsfactory.biztracker.pool.testOnBorrow=true
> > torque.dsfactory.biztracker.pool.validationQuery=SELECT 1
> > torque.dsfactory.biztracker.connection.driver =
> > com.microsoft.jdbc.sqlserver.SQLServerDriver
> > torque.dsfactory.biztracker.connection.url =
> > jdbc:microsoft:sqlserver://####
> > torque.dsfactory.biztracker.connection.user = ####
> > torque.dsfactory.biztracker.connection.password = ####
> 
> 
> 
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-torque-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-torque-user-help@;jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:turbine-torque-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-user-help@;jakarta.apache.org>

Reply via email to