Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / July 2006

Tip: Looking for answers? Try searching our database.

add JDBC driver for MySQL to apache-tomcat-5.5.17

Thread view: 
banq_man - 07 Jul 2006 19:11 GMT
Dudes,
I have tried to add JDBC driver  for MySQL to apache-tomcat-5.5.17,but
unsuccesfully.
In the materials i have read , it was adviced to add a Resource tag in
$CATALINA_HOME/conf/server.xml.
Database i want to access is called "staj "
So here are the  tags i added to  $CATALINA_HOME/conf/server.xml:

<Context path="/staj" docBase="staj"
       debug="5" reloadable="true" crossContext="true">
</Context>

 <Resource name="jdbc/staj" auth="Container"
type="javax.sql.DataSource"
              maxActive="100" maxIdle="30" maxWait="10000"
              username="root" password=""
driverClassName="com.mysql.jdbc.Driver"
              url="jdbc:mysql:///staj?autoReconnect=true"/>

Could you tell me where i get wrong!?
cp - 07 Jul 2006 23:00 GMT
Well if you follow java protocol with the JDBC driver (assuming MySQL
Connector/J) then your URL should be:
url="jdbc:mysql://staj?autoReconnect=true"/>

> Dudes,
> I have tried to add JDBC driver  for MySQL to apache-tomcat-5.5.17,but
[quoted text clipped - 16 lines]
>
> Could you tell me where i get wrong!?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.