This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 89827 - Runtime-databases-drivers- MS SQL Server JDBC Driver - Connec Using
Summary: Runtime-databases-drivers- MS SQL Server JDBC Driver - Connec Using
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-22 11:17 UTC by pellicer
Modified: 2007-01-04 15:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log of NetBeans (304.10 KB, application/octet-stream)
2006-11-22 11:18 UTC, pellicer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pellicer 2006-11-22 11:17:14 UTC
Hello,

When i like to make a JDBC connection, i have recived the next error:

I have the .jar's in my CLASSPATH.

*********** Exception occurred ************ at 12:06 PM on Nov 22, 2006
java.lang.NoClassDefFoundError: com/microsoft/jdbc/base/BaseDriver
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:242)
	at
org.netbeans.modules.db.explorer.DbDriverManager.getDriverInternal(DbDriverManager.java:210)
	at
org.netbeans.modules.db.explorer.DbDriverManager.getConnection(DbDriverManager.java:97)
	at
org.netbeans.modules.db.explorer.DatabaseConnection$2.run(DatabaseConnection.java:500)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)


Bye.
Comment 1 pellicer 2006-11-22 11:18:40 UTC
Created attachment 36204 [details]
log of NetBeans
Comment 2 Jesse Glick 2006-11-22 19:34:15 UTC
Reporter: if you are unsure which component to use when filing a bug, please use
'ide' and it will be reassigned for you.
Comment 3 Andrei Badea 2006-11-23 08:40:14 UTC
The Microsoft JDBC driver is made of three jar files (msbase, mssqlserver and
msutil). Have you addem them all when registering the driver in the Runtime tab?

Also note that NetBeans recommends the jTDS driver for Microsoft SQL Server. If
you prefer a Microsoft driver use the 2005 driver.
Comment 4 Andrei Badea 2007-01-04 15:11:06 UTC
Probably caused by user error as described in desc4, so closing.