Hi Dirk, Thanks a lot! it works. In fact, when you said that there could be a conflict between Tomcat common\lib directory and my WEB-INF\lib directory, I realized that I have put struts.jar and dbforms_v....jar in both directories (a bit anxious you know). So I just deleted them form my WEB-INF\lib, restarted Tomcat and it was OK. Many thanks again.
Kind regards, Thierry ----- Original Message ----- From: "Dirk Kraemer" <[EMAIL PROTECTED]> To: "Thierry Archent" <[EMAIL PROTECTED]>; "dbforms-interest mailing list" <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 1:02 PM Subject: Re: [dbforms] DB connection problem > Hi Thierry, > > that seems to be a problem when parsing the config file. > At that moment it is not tried to connect to database. > > Where you find: > > > New org.dbforms.util.DbConnection > > Set org.dbforms.util.DbConnection properties > > Call org.dbforms.DbFormsConfig.setDbConnection(DbConnection = > > name=jdbc/laDataBase,jndi=true,conClass=null,username=null) > > End event threw exception > > java.lang.NoSuchMethodException > > at java.lang.Class.getMethod0(Native Method) > > at java.lang.Class.getMethod(Class.java:888) > > ..it should be something like: > > Pop org.dbforms.Table > New org.dbforms.util.DbConnection > Set org.dbforms.util.DbConnection properties > Call org.dbforms.DbFormsConfig.setDbConnection(DbConnection = > name=jdbc/dbformstest,jndi=true,conClass=null,username=null) > 448 [main] INFO org.dbforms.DbFormsConfig - ***** DBCONNECTION = DbConnection = > name=jdbc/dbformstest,jndi=true,conClass=null,username=null****** > Pop org.dbforms.util.DbConnection > > (I just tried it out by setting it in config.xml without > configuring jndi stuff, so that is not neccessary at > that moment) > > Did you remove xerces.jar from your WEB-INF/lib directory? > Tomcat4 has one inside common/lib directory, that might conflict > with a second one. Does it work if you use a non-jndi connection? > If not, please compare libs with example applications. If yes, > how does your dbforms-config.xml exactly look like at the end? > > Regards > > Dirk _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
