Two Laptop Bag*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Srevices with Database" Watch "Web Srevices with Database" New topic
Author

Web Srevices with Database

Scott Branchini
Greenhorn

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
Marshal

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


Ping & DNS - my free Android networking tools app
Scott Branchini
Greenhorn

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: http://aspose.com/file-tools
 
subject: Web Srevices with Database