Skip to Content
0
Former Member
Oct 18, 2007 at 01:27 PM

Can't get jdbc connection to work

18 Views

hi everyone,

it's me again (last time for today i hope).

I can't seem to connect to my database.

I get an exception when trying to make the connection to it.

Here is the exception:

<i>java.lang.ClassNotFoundException: com.sqlserver.microsoft.jdbc.SQLServerDriver -


Loader Info -


ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@7da8fa] Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@4bc52b] References: not registered! Resources: F:\usr\sap\CPD\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\ZwiwTry\private\lib\ZwiwTrycore.jar

I downloaded the jdbc drivers an put the msbase.jar, mssqlserver.jar and msutil.jar on my classpath.

Here is the classname i use and the url

Class.forName("com.sqlserver.microsoft.jdbc.SQLServerDriver");

String url = "jdbc:microsoft:sqlserver://cernum03.cernum.com:1433;databaseName=ZWIWDataBase";

connection = DriverManager.getConnection(url);

Do you see any problems?

Thank you

Wouter