Article View: borland.public.jbuilder.database
Article #373Re: Help with JNDI Datasource in JBuilder 2006
From: Arthur Ore
Date: Wed, 13 Dec 2006 17:24
Date: Wed, 13 Dec 2006 17:24
32 lines
2417 bytes
2417 bytes
JBuilder Ent 2006 SP3 I'd been struggling to get the MySQL JDBC driver work inside Tomcat via JNDI, when I came across this posting and found that I (think I) had done everything suggested, yet it still didn't work. I was getting the following error :- org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver' I could see from the message window that the JDBC library wasn't on the classpath for Tomcat. When I opted to build a WAR file it seemed to include the jar file in the right place (WEB_INF/lib). I may have done something wrong, so sorry if I cause confusion. But in case others are having problems with this and I haven't made a mistake, here's what I did to get it working. Select "Project"|"Project Properties" from the menu. Select run from the left hand pane and from the right hand pane select the server configuration used for Tomcat 5.5.9 and click edit. From the left hand pane find the Library option (the one directly off run). In the right hand pane select "Use the specified libraries" and make sure that the MySQL library jar file is present and ONLY any other libraries that you need Tomcat to access. Then select run in the left hand pane. In the right hand pane, select "Server" from the tree structure and to the right make sure the "make project libraries available on run" is checked. Click OK twice to close the windows. Now run the project and the path to the MySQL jar file should no be included in the Tomcat classpath.
Technical Details
Message-ID:
<4580371f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<438a4e03$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,634e789a0dc75d45 X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Arthur Ore" <arthur_dot_ore@nospamthx_zen_dot_co.uk> Newsgroups: borland.public.jbuilder.database References: <438a4e03$1@newsgroups.borland.com> Subject: Re: Help with JNDI Datasource in JBuilder 2006 Date: Wed, 13 Dec 2006 17:24:50 -0000 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.69.65.131 Message-ID: <4580371f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1166030623 82.69.65.131 (13 Dec 2006 09:23:43 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail