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>
