Hi,
I am working on a web application using j2ee, tomcat, and the derby
clientdriver. It runs fine on my PC, but on my team mate's PC, tomcat
can't seem to connect to the derby database (although the ij tool could
connect to the database on his PC).
The CLASSPATH environment variable seems to be the similar in both PCs.
Here's what my CLASSPATH contains:
%DERBY_INSTALL%\lib\derbyclient.jar;%DERBY_INSTALL%\lib\derbytools.jar;%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbynet.jar;.
My team mate's PC could connect fine with other drivers (e.g. odbc).
What else might be wrong with his configuration?
- Francis Ocoma
Francis Ocoma - 17 Apr 2006 07:19 GMT
I'm using Windows XP SP2, btw.
Here's one more thing I noticed. In the problematic PC, connecting to
derby via cmd works just fine (that's why ij works). But if you use
Tomcat or an IDE like JCreator, it won't be able to locate the client
driver (org.apache.derby.jdbc.ClientDriver). What could be the reason
for this?