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 62332 - Not able to connect to SQL Server
Summary: Not able to connect to SQL Server
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 22:15 UTC by mjpiedade
Modified: 2005-10-10 08:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mjpiedade 2005-08-15 22:15:34 UTC
Hi,

I am trying to connect to my SQL Server using Netbeans and get the following 
behavior:
a) No error message, except a forbidden icon with the following info at the 
bottom left:
Annotation: Exception occurred in Request Processor
java.lang.NoClassDefFoundError: com/microsoft/jdbc/base/BaseDriver
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
	at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:219)
	at org.netbeans.modules.db.explorer.DatabaseConnection$2.run
(DatabaseConnection.java:443)
	at org.openide.util.Task.run(Task.java:189)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:721)

b) I am using Windows XP and SQL Server 2000.
My computer name is MNM and I am trying to access to database "tmp"
Parameters:
Database URL = jdbc:microsoft:sqlserver://MNM:1433;DatabaseName=tmp
User = sa
Password = ****

I hope you will be able to help me.
Cheers,
MP
Comment 1 Martin Schovanek 2005-08-16 13:10:46 UTC
Looks like missing msbase.jar on classpath. Please right click the 'Microsoft
SQL 2000' driver node, chose Customize and check if you have all .../lib/*.jar
files in 'Driver File(s):' list. If not add the missig files by the 'Add ...'
button.

Let me know if it helped.

Comment 2 Andrei Badea 2005-09-14 14:19:50 UTC
Did mschovanek's advice help? Do you still encounter the bug?
Comment 3 Andrei Badea 2005-10-10 08:57:18 UTC
Unable to reproduce the bug and no response from the reporter, closing.