Hi,
I am developing an application which access an MS SQL Server 2000 databse through the MS JDBC driver. My web app is in Tomcat V5.028 on my development PC and 5.025 on the production server.
All is working fine on my development PC so I'm relatively confident that my coding is working, but when I migrate to the production server my web app can't load the JDBC driver. I have loaded the driver .jar files to the common/lib directory. I am using eclipse as my IDE.
I access the server through a network share directly to the tomcat directory - i.e. \\server\tomcat$.
My understanding is that tomcat is installed in "D:\Tomcat\" on the server. On my dev PC it is installed in "c:\tomcat50\".
The MS SQL sever driver is installed in the default directory on both machines - i.e. "C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC". I note that there is one .dll in this directory - I don't think it's needed for connection - it seems to be about creating SQL sps.
I'm sure this is a classpath problem but I can't reconcile it. In eclipse, I have pointed the driver jars to the server rather than my hard disk for their location but that has not helped. I'm unclear how the classpath works between different machines - do I have to change it for every different installation?
I don't know enough about how all this hangs together to find out what is going on - can anyone point me in the right direction?
Thanks.
I am developing an application which access an MS SQL Server 2000 databse through the MS JDBC driver. My web app is in Tomcat V5.028 on my development PC and 5.025 on the production server.
All is working fine on my development PC so I'm relatively confident that my coding is working, but when I migrate to the production server my web app can't load the JDBC driver. I have loaded the driver .jar files to the common/lib directory. I am using eclipse as my IDE.
I access the server through a network share directly to the tomcat directory - i.e. \\server\tomcat$.
My understanding is that tomcat is installed in "D:\Tomcat\" on the server. On my dev PC it is installed in "c:\tomcat50\".
The MS SQL sever driver is installed in the default directory on both machines - i.e. "C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC". I note that there is one .dll in this directory - I don't think it's needed for connection - it seems to be about creating SQL sps.
I'm sure this is a classpath problem but I can't reconcile it. In eclipse, I have pointed the driver jars to the server rather than my hard disk for their location but that has not helped. I'm unclear how the classpath works between different machines - do I have to change it for every different installation?
I don't know enough about how all this hangs together to find out what is going on - can anyone point me in the right direction?
Thanks.