File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web Srevices with Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Srevices with Database" Watch "Web Srevices with Database" New topic

Web Srevices with Database

Scott Branchini

Joined: Mar 01, 2006
Posts: 14
I am trying to have my Web Service connect to a database, but cannot figure out how to do so. I wrote a Java application that connect to the database successfully, so I know the code should work. I am connecting to a MySQL database and have the connector/j.jar file in the axis/lib folder as well as the server/lib folder for Tomcat. Is there anything else that I need to do to have the service successfully connect to the database?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Putting it into the Axis/WEB-INF/lib directory should be sufficient. What kind of error message are you getting?
Scott Branchini

Joined: Mar 01, 2006
Posts: 14
Believe it or not, you already solved the problem. I put it in axis/lib not axis/web-inf/lib. That solved my problem, so thank you for your help!
I agree. Here's the link:
subject: Web Srevices with Database
It's not a secret anymore!