So I have an application that basically receives as input a RESTful request and then has some logic and at some point it connects to a SQL Server instance running on my pc.
When I run my program with a request that I put directly in the code it works just fine, but when I try to run the server and pass the arguments to the WebService it receives the input correctly, goes to try to connect to the DB and the flow crashes.
My assumption is that I need to had the sqljdbc4.jar to the server, but I can't seem to find a proper way to do it when I edit the web.xml.
For the RESTful webservices the servlet is like this:
<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>api</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Can anyone help me if this is really the problem or I'm wrongly assuming that the server needs the jdbc driver? Thanks in advance to everyone and sorry for mistakes written.