BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Import schema from Database: Driver error. Help.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Databases
View previous topic :: View next topic  
Author Message
server
Guest





PostPosted: Wed Jan 11, 2006 5:50 am    Post subject: Import schema from Database: Driver error. Help. Reply with quote



message unavailable
Back to top
Luca Gerosa
Guest





PostPosted: Wed Jan 11, 2006 5:50 am    Post subject: Re: Import schema from Database: Driver error. Help. Reply with quote



I followed your instruction but it didn't work.. as before the driver is
still not loaded into the driver list. I resolved the problem not using the
Import Schema From Database. I wrote this only as documentation for nexts
with the same problem. Thank you any way for the help.

bye Luca

Quote:
Take one more step:

(1) Find the bin directory for JBuilder.
(2) Locate the dbpilot.config file
(3) Add a line for the path where your mysql drivers are located and the
jar
file name.

That should do the trick..


Back to top
Arthur Ore
Guest





PostPosted: Wed Dec 13, 2006 11:24 pm    Post subject: Re: Help with JNDI Datasource in JBuilder 2006 Reply with quote



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.
Back to top
Paul Furbacher [TeamB]
Guest





PostPosted: Fri Dec 22, 2006 11:00 pm    Post subject: Re: Help with JNDI Datasource in JBuilder 2006 Reply with quote

I think the following is a good solution to the problem.

(I know that in the past I had done something similar by putting
the JDBC driver jar in the Tomcat "required libraries" tab.)

Arthur Ore wrote:
Quote:
[...]

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.


--


Paul Furbacher (TeamB)

Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html

Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.