Hi guys,
I'm running Win XP SP2 SQL Server 2000 SP3a on my machine.
I've installed MS SQL Server driver for
JDBC from MS site and have created an evironment variable called:
CLASSPATH = c:\Program Files\Microsoft SQL Server 2000 Driver forJDBC\lib\msbase.jar;c:\Program Files\Microsoft SQL Server 2000 Driver forJDBC\lib\msutil.jar;c:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar
I used this code to connect to db:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://BBCD.TEST.COM:1433;DatabaseName=testDB;User=testUser;Password=testuser");
.....
I'm getting error:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
.....
I've tried to locate the problem, and even if I leave just first line:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
I'm getting the same error message.
The page cannot find the driver or something else???
Any idea?
Thanks,
d.