CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Connection to DataBase doesn't works

Print topic Send  topic

Author Message
pontos

Posts: 16
Posted: 04/23/2007, 5:55 AM

I found my problem, but I don't know how to resolve it.

When I do a new connection in DBConnectionManager :
con = DriverManager.getConnection(URL, user, password);
An exception is occured :
java sql SQLException No suitable driver

I tested the connection with the manager in connection properties and the connection work very well.
I have already imported all needed drivers (servlet-api.jar, jsp-api.jar) and JDBC Drivers are installed. I am using MSSqlServer.

Someone knows what to do to connect please?
View profile  Send private message
matheus

Posts: 386
Posted: 04/23/2007, 5:58 AM

Drivers configured well?

Driver in runtime library?
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
negociant

Posts: 31
Posted: 04/23/2007, 6:00 AM

Hm...
Just check: msbase.jar, mssqlserver.jar, msutil.jar must be in <TOMCAT_HOME>/common/lib.
Is it true?
View profile  Send private message
pontos

Posts: 16
Posted: 04/23/2007, 6:01 AM

I had just installed with an Installer "JDBC SQLserver2000.exe"
View profile  Send private message
pontos

Posts: 16
Posted: 04/23/2007, 6:02 AM

Yes, I have msbase.jar, mssqlserver.jar, msutil.jar in TOMCAT lib
View profile  Send private message
negociant

Posts: 31
Posted: 04/23/2007, 6:03 AM

Do you restart tomcat after add this jars?
View profile  Send private message
negociant

Posts: 31
Posted: 04/23/2007, 6:05 AM

And whart do you write in Server tab of connction settings for this connection?
View profile  Send private message
pontos

Posts: 16
Posted: 04/23/2007, 6:05 AM

it doesn't work at all
View profile  Send private message
pontos

Posts: 16
Posted: 04/23/2007, 6:11 AM

View profile  Send private message
pontos

Posts: 16
Posted: 04/23/2007, 6:16 AM

That is what you want ?
View profile  Send private message
negociant

Posts: 31
Posted: 04/23/2007, 6:19 AM

Try write in URL Field somthing like this
jdbc:microsoft:sqlserver://192.168.1.18:1433
should help.
View profile  Send private message
pontos

Posts: 16
Posted: 04/23/2007, 6:23 AM

Thank you, its work :-)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.