Results 1 to 6 of 6
  1. #1
    sunithamm is offline Member
    Join Date
    Dec 2009
    Posts
    19
    Rep Power
    0

    Default not getting connected to mysql database from jax-ws webservice

    Hi all,
    i created a web service using JAX-WS. I am not able to connect to mysql database from the serivice. i am getting java.lang.ClassNotFoundException: com.mysql.jdbc.Driver . I included mysql connector jar in the project. I am using eclipse IDE for the development.

    Regards,
    Sunitha

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,861
    Rep Power
    19

    Default

    You may have included the jar file (somehow) in the project, but it's not being included in the runtime path.

  3. #3
    sunithamm is offline Member
    Join Date
    Dec 2009
    Posts
    19
    Rep Power
    0

    Default

    thank you so much for your reply.
    Can you please tell me how to include jar file in the runtime path?

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,861
    Rep Power
    19

    Default

    How are you running this?
    Presumably it's on some Tomcat instance?

  5. #5
    sunithamm is offline Member
    Join Date
    Dec 2009
    Posts
    19
    Rep Power
    0

    Default

    yes
    i am running it on tomcat server instance

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,861
    Rep Power
    19

    Default

    So, when you deploy the app to Tomcat, does the driver jar get transferred to the lib directory along with any other jars you need?

    If not, then Eclipse isn't packaging things up correctly.
    Something I can't help with, since I don't have Eclipse here.

Similar Threads

  1. How to connect database mysql via Lan
    By ahmed30 in forum JDBC
    Replies: 3
    Last Post: 01-17-2011, 06:36 AM
  2. Replies: 2
    Last Post: 02-11-2009, 04:43 AM
  3. database with mysql using the netbeans 6.0
    By kwesiaryee in forum New To Java
    Replies: 2
    Last Post: 05-02-2008, 04:27 AM
  4. MySQL Database and Java
    By shaggymac in forum Advanced Java
    Replies: 1
    Last Post: 05-01-2008, 09:01 PM
  5. Replies: 2
    Last Post: 08-08-2007, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •