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 / General / October 2007

Tip: Looking for answers? Try searching our database.

MySQL Tomcat settings

Thread view: 
H.L - 29 Oct 2007 04:21 GMT
I have had a lot of problems connecting to a MySQL database with a
Java web start program running on a Tomcat server. The program makes use
of the com.mysql.jdbc.Driver package downloaded from the URL
www.mysql.com/products/connector/j . The software is being developed in
Netbeans 5.5.1.

Can anyone with experience of this situation tell what I need to modify
in the different files and/or programs? I have tried several of the
suggestions turning up from repeated web searches, but none of them have
opened up the database over Tomcat. It seems to be a matter of adding
entries to some of the server's xml files . The Tomcat web server
administration interface has not started up for me.

It should be noted that it has been impossible to change from a general
project to a Tomcat project in Netbeans.

Regards.
Chris ( Val ) - 29 Oct 2007 05:58 GMT
> I have had a lot of problems connecting to a MySQL database with a
> Java web start program running on a Tomcat server. The program makes use
[quoted text clipped - 10 lines]
>  It should be noted that it has been impossible to change from a general
> project to a Tomcat project in Netbeans.

Have you tried setting Tomcat according to:
   http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
?

My first test would be to ensure that the driver is properly
installed, tested
and working (vi a servlet or JSP), prior to mucking about with Java
web start
and Netbeans, etc...
--
Chris


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.