MySql connection with EJB2 project
Hi Experts,
Im new in net weaver. I developed a CMP bean using EJB2 project. Now I want to connect with a table which has in MySql database. In net weaver MAXDB,ORACLE etc
options are there, but MySql is not there. So pls help me for connecting MySql.
Thanks in Advance
Toji.
Hi Toji,
I am not sure you can achieve a Container Managed Persistence if the target database is on some other machine and especially for MySQL, since SAP has their own proprietary database called MaxDB which is also a free product from MySQL AB using which we cannot even achieve a Container Managed Persistence if it installed on another machine.
But you can achieve a Bean Managed Persistence for handling data in the MySQL database.For this,
1) First of all, based on the version of the MySQL you will have to download the appropriate JDBC driver for MySQL.
2) You will have to create an entry for the MySQL JDBC driver through Visual Administrator(access it from <Drive>:\usr\sap\<System ID>\JC<Instance Number>\j2ee\admin\go.bat in the case of windows system).Here while creating the entry you will have to upload the downloaded JDBC driver.For this after login on to the Visual Administrator using the user with admin right, you will have to navigate upto,
Server->Services->JDBC Connector.
3) You will have to create one Data Source. Here you will have to mention the application name , Data Source name, Driver Name( u have to select the earlier created Driver here) , Alias name, JDBC Version, Drive class, Database URL , Username and Password.
The Driver name and Database URL u will have to mention like this.
Driver Name -> com.mysql.jdbc.Driver
URL -> jdbc:mysql://<database name>
4) In the BMP bean, you can look up the datasource like,
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/<DataSource Alias Name mentioned while creating datasource in Visual Administrator>");
Using this DataSource instance, you can create connection and execute queries.
Just refer this help for getting knowledge on Driver creation and DataSource creation for MaxDB.
http://help.sap.com/saphelp_nw04s/helpdata/en/42/073e1d0ab7540fe10000000a114cbd/content.htm
Regards,
Kishor Gopinathan
Similar Messages
-
I have followed the advice given here for several
other people and have successfully set up a connection
to a MySQL database. I can successfully test the
database connection from the Connection Wizard.
However, I am having trouble accessing this same
connection from my code. When executing the following
piece of code:
try
Class.forName("org.gjt.mm.mysql.Driver");
I get a ClassNotFoundException.
The advice in the JDeveloper "help" is not that clear.
I have tried registering this driver with the project,
by configuring the connection as a library and adding
this library into the "Project Settings". I've also
added in the database connection in Tools->Preferences.
Finally, I've tried using File->Import->Existing Sources
and choosing the library I created for the mysql Jar
file. None of this works... am I following the correct
procedure, or is there something I've missed?the mysql jdbc driver : org.mm.mysql.Driver (you can find it on www.gjt.org)
the url : jdbc:mysql://host:port/dbname
obtain a connexion:
Class.forName("org.mm.mysql.Driver");
Connection conn = DriverManager.getConnection(url, "username", "password"); -
Mysql connection with 1and1.co.uk
I am trying to establish a connection with a mysql database at 1and1.co.uk but the connection cannot be established. I have checked the login details with 1and1 and they have suggested I contact Adobe. I am a 'design' interface user of Dreamweaver - I don't know code, so any simple suggestions would be gratefully received!
PBrackett12 wrote:
Ok, I think I did what I was supposed to do - although I got a bit lost. But the result was the following when I uploaded it: Parse error: syntax error, unexpected '=' in /homepages/41/d259550773/htdocs/oakfieldstables/login.php on line 6
For the sake of clarity I've provided the code:
<!-- <?php require_once('Connections/Testserver.php'); ?> -->
<?php
$hostname="dbXXXX.db.1and1.com";
$database_conTestserver.php = "dbXXXX";
$username="dboXXXX";
$password="XXXX";
$link = mysql_connect($hostname, $username, $password);
if (!$link) {
die('Connection failed: ' . mysql_error());
else{
echo "Connection to MySQL server " .$hostname . " successful!
" . PHP_EOL;
$db_selected = mysql_select_db("dbXXXX", $link);
if (!$db_selected) {
die ('Can\'t select database: ' . mysql_error());
mysql_close($link);
The $database_con variable looks incorrect
Open up the Testserver.php in the Connections folder and look for the $database_con line. I doubt it will have .php appended to it?
It will be like the below, right?
$database_conTestserver = "dbXXXX";
Amend the line in the block of php connection code and see what happens. -
MySQL connection with OWB 11gR2 results in "access denied for user"
Hello,
I just try to establish a connection to a MySQL database with OWB 11gR2, but I always get the error "access denied for user...". I did the things written on [http://blogs.oracle.com/warehousebuilder/2010/01/owb_11gr2_mysql_open_connectivity.html] and I also used the platform configuration from this description. Newest JDBC driver was downloaded and I put the jar-file into the folder OWB_HOME/owb/lib/ext. The definition of the MySQL platform worked and the entry "MySQL" was created in OWB, but no connection can be established. I also tried other tools like MySQL Administrator in order to find out whether the problem is caused by network configuration or sth. like that, but with this tool the connection works.
OWB is installed on OpenSuse 11.1 64bit. Does anyone know why this error occurs? Perhaps I missed some configuration tasks, which I don't know so far?
I'm looking forward to your answers.
Greetings
JoergHi David,
thank you for your reply. The corresponding user has already got this host setting. Anyway he got the wildcard '%' and with other tools I can connect.
I solved the problem now due to just trying around with usernames. The error was quite funny: OWB changes the username always into upper case and MySQL cannot handle this username. The username must match 100% to be able to login.
Now I just changed the user in MySQL and wrote the username in upper case. But in fact I would like to know if it is possible to avoid that OWB changes the username, with quotes it didn't work ;-)
Greetings
Joerg
UPDATE:
Now I'm facing another problem: the connection works, but I cannot import any metadata. When I click on "Browse" to select the correct schema in MySQL DB, no result is displayed. The user anyway has go the privileges to select data from this schema. I also tried to provide the user with every possible privileges for this schema, but I still cannot select any schema. When I write the schema manually and then try to import database objects iin OWB the error message "definitions of userdefined metadata interface are invalid" is displayed (translated from german, so the wording could be different). Does anybody have an idea what the problem could be?
Edited by: Scantid on 15.01.2010 00:41 -
i'm using CFMX , mysql 5.0 , mysql-connector-java-3.1.13
how do i set the connection...
1) do i need to add the driver into the ODBC ?
2) do i need to set the COLD FUSION ADMINISTRATOR ? how to
set?
3) i had try to unzip the mysql connecter then paste into the
C:\CFusionMX7\wwwroot\WEB-INF\lib is it correct?
4) how can get some solution here.
tjxI came across this older post. I have the same problem. I
have followed the instruction, and tried different versions of the
driver, but the error still comes up when I try to connect through
CFMX7:
"Connection verification failed for data source: MySQL_test
java.sql.SQLException: No suitable driver available for
MySQL_test, please check the driver setting in resources file,
error: null
The root cause was that: java.sql.SQLException: No suitable
driver available for MySQL_test, please check the driver setting in
resources file, error: null"
If I can add any additional information so that someone can
help me diagnose the problem, please let me know. -
I HAVE HOST ON YAHOO AND THIS SCRIPT DOSN'T WORK WITH YAHOO
can u help me ....
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_midcommerce = "localhost";
$database_midcommerce = "DATABASE";
$username_midcommerce = "USER";
$password_midcommerce = "PASSWORD";
$midcommerce = mysql_pconnect($hostname_DATABASE,
$username_DATABASE, $password_DATABASE) or
trigger_error(mysql_error(),E_USER_ERROR);
?>Hung Kuen Kung Fu wrote:
> MYSQL is not listed under the phpinfo page. MMM. Not
sure how to enable this in the php.ini so i will have to look.
Remove the semicolon from the beginning of these lines in the
Windows
extensions section:
;extension=php_mbstring.dll
;extension=php_mysql.dll
Also add this line after them:
extension=php_mysqli.dll
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
I amusing Connector/j 3.0 for jdbc through MySQL.
I am also using "org.gjt.mm.mysql.Driver"
Please suggest how to set the classpath/path for mysql driver and where to put the driver,
Please suggest with all configuration details.........http://www.dynamic-apps.com/tutorials/classpath.jsp
-
how can i build a simple and add cart application with flex
and mysql ineed step by step instruction. in ur smaples u defind
some server path which one i need to edit for my application . and
one more how can i uplode all these files to my servermysql part you still need to do on server side with whatever
scripting language you have on server, you can actually use
RealBasic to make it as CGI for multiple platforms.... -
MySQL Connection with JDeveloper
Hi,
How can i retrieve records from MySQL database in JDeveloper. Is it possible to access database through Java code?
ThanksHI,
Check following will useful
http://www.oracle.com/technetwork/developer-tools/jdev/mysql-and-bc-howto-082060.html -
Problem in establishing connection with mysql 5.0
Hi,
I am using JCAPS 5.1. I tried to insert data to mysql database table.
But i got following error
java.sql.SQLException: Error in allocating a connection. Cause:
Physical Connection doesn't exist.
My intention is to read file in which data are comma seperated and to
populate those values to a mysql 5.0 database table.
Sample DATA in file [test.txt]
111,gg,23,MFG
112,hh,24,MFG
113,ii,25,RETAIL
114,jj,26,IT
Database table: employee
eno,ename,eage,edept
While creating JDBC OTD there is no problem in establishing connection with database. But after deploying i got above error.
I have used Mysql 5.0 Connector/J JDBC driver. Added JDBC driver jar files to following directories as required.
1) C:\JavaCAPS51\logicalhost\is\lib
2)C:\JavaCAPS51\logicalhost\is\domains\test\lib
Steps i have followed as per JDBC-ODBC -eway user guide doc.
1) Created USerDefined OTD and added necessary fields
2) Created JDBC OTD.
3) Created JAVA collaboration and do business process for inserting
4) Mapped all components by creating in Connectivity MAp
5) created necessary external systems in envrionment explorer.[JDBC External System and File External System]
6)Created Deployment profile
5) Deployed it.
After deploying it gives error as
java.sql.SQLException: Error in allocating a connection. Cause: Physical Connection doesn't exist
Please let me know the solution for problem.
Message was edited by:
VenkateshSampoornamIn the environment definition,
-> External Application JDBC
-> Properties
-> Outbound JDBC Connection
You have the database URL in the "DriverProperties" field
Valid URL would be : jdbc:mysql://localhost:3306/caps
!! The doc says that this field is optional !! Seems to be an error in the doc:
Hope this helps
Seb -
Dear All,
I'm working on reporting of Project Server 2010, while configuring SQL SERVER REPORTING SERVICES faced issue after two complete days of troubleshooting along with this gone through plenty of forums, unable to figure out any solution. So finally posting on
technet in order to find solution.
ISSUE/PROBLEM:
At initial configured the SQL REPORTING CONFIGURATION to sharepoint integrated database (SQL SERVER is installed on seperate machine), change the service to Domain Account and also installed sharepoint add in on server story was fine at this point. Furthur
moving to SHAREPOINT ADMIN console and while configuring the Sharepoint Integrated Reporting continuously facing this error:
Failed to establish connection with report server. . . . (Snapshot is attached for your further reference).
My point of concern is that whenerver i try to open the REPORT SERVER URL on project server machine it prompts me to enter username and password but whenever i insert the domain credentails it didnt accept though it can be accesible by using the credentials
of Local Admin of sql server machine. So i wana come to know whether its permission issue if yes then where i should mention the domain credentials.?
REGARDS DANISH DANIEDear Paul,
I am able to open the URL (http://psdb/ReportServer )using
domian credential and page open with these contents
Reporting Services Error
The configuration parameter SharePointIntegrated is set to True but Share Point Object Model cannot be loaded
Second,
Configured the SPN on domain controller , performed the steps required to change the AUTHENTICATION in rsreportserver.config
file also done the registry settings to disable the loop back settings.
Same error still ! .... what should i do now ???
REGARDS DANISH DANIE -
Could not create pool connection with MySql
When starting weblogic server I obtain the following error message when the conection
pool for a MySql database should be established. What's the mistake I am doing? #The
examples in the weblogic.properties put a "server=DEMO to the props. What is this
server related to the MySql RDBMS? Is it mandatory? After the error message produced
by Weblogic you'll find some information about the MySql setup (my.ini) I have made.
Mi Mai 01 01:33:50 CEST 2002:<I> <WebLogicServer> Invoking main-style startup weblogic.jdbc.common.internal.JdbcStartup
weblogic.jdbc.common.internal.JdbcStartup
Mi Mai 01 01:33:50 CEST 2002:<I> <JDBC Pool> Creating connection pool ejbTestPool
with:
{aclName=weblogic.jdbc.connectionPool.ejbTestPool, maxCapacity=2, initialCapacity=1,
url=jdbc:mysql://Blizzard:3306/ejbTest, props=user=du-it;password=du-it;server=3.23.4
9-nt, capacityIncrement=1, driver=org.gjt.mm.mysql.Driver, poolName=ejbTestPool}
Mi Mai 01 01:33:50 CEST 2002:<I> <JDBC Pool> Sleeping in createResource()
Mi Mai 01 01:33:51 CEST 2002:<E> <JDBC Pool> Failed to create connection pool "ejbTes
tPool"
weblogic.common.ResourceException: weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Invalid authorization specification: Access denied for user:
du-it@blizzard' (Using password: YES)
at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:278)
at org.gjt.mm.mysql.Connection.<init>(Connection.java:230)
at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connecti
onEnvFactory.java:146)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connecti
onEnvFactory.java:108)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator
.java:771)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:4
16)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:3
30)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java:117)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connecti
onEnvFactory.java:154)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connecti
onEnvFactory.java:108)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator
.java:771)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:4
16)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:3
30)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java:117)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connecti
onEnvFactory.java:124)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator
.java:771)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:4
16)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:3
30)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java:117)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
MySql:
#This File was made using the WinMySQLAdmin 1.4 Tool
#29.04.2002 14:46:57
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions
[mysqld]
basedir=D:/db/mysql
#bind-address=169.254.102.136
datadir=D:/db/mysql/data
#anguage=D:/db/mysql/share/german
#slow query log#=
#tmpdir#=
port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=D:/db/mysql/bin/mysqld-nt.exe
user=du-it
password=du-itWhen starting weblogic server I obtain the following error message when the conection
pool for a MySql database should be established. What's the mistake I am doing? #The
examples in the weblogic.properties put a "server=DEMO to the props. What is this
server related to the MySql RDBMS? Is it mandatory? After the error message produced
by Weblogic you'll find some information about the MySql setup (my.ini) I have made.
Mi Mai 01 01:33:50 CEST 2002:<I> <WebLogicServer> Invoking main-style startup weblogic.jdbc.common.internal.JdbcStartup
weblogic.jdbc.common.internal.JdbcStartup
Mi Mai 01 01:33:50 CEST 2002:<I> <JDBC Pool> Creating connection pool ejbTestPool
with:
{aclName=weblogic.jdbc.connectionPool.ejbTestPool, maxCapacity=2, initialCapacity=1,
url=jdbc:mysql://Blizzard:3306/ejbTest, props=user=du-it;password=du-it;server=3.23.4
9-nt, capacityIncrement=1, driver=org.gjt.mm.mysql.Driver, poolName=ejbTestPool}
Mi Mai 01 01:33:50 CEST 2002:<I> <JDBC Pool> Sleeping in createResource()
Mi Mai 01 01:33:51 CEST 2002:<E> <JDBC Pool> Failed to create connection pool "ejbTes
tPool"
weblogic.common.ResourceException: weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Invalid authorization specification: Access denied for user:
du-it@blizzard' (Using password: YES)
at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:278)
at org.gjt.mm.mysql.Connection.<init>(Connection.java:230)
at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connecti
onEnvFactory.java:146)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connecti
onEnvFactory.java:108)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator
.java:771)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:4
16)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:3
30)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java:117)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connecti
onEnvFactory.java:154)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connecti
onEnvFactory.java:108)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator
.java:771)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:4
16)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:3
30)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java:117)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connecti
onEnvFactory.java:124)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator
.java:771)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:4
16)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:3
30)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java:117)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:109)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
MySql:
#This File was made using the WinMySQLAdmin 1.4 Tool
#29.04.2002 14:46:57
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions
[mysqld]
basedir=D:/db/mysql
#bind-address=169.254.102.136
datadir=D:/db/mysql/data
#anguage=D:/db/mysql/share/german
#slow query log#=
#tmpdir#=
port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=D:/db/mysql/bin/mysqld-nt.exe
user=du-it
password=du-it -
Problem in building JDBC ODBC connection with my stand alone Project.
Hello Everyone!
I gave the following command in order to create JAR file:
C:\app>jar cvfm MyJar.jar Manifest.txt .
and the Manifest file contains the code: Main - Class: Login
My Manifest File and the .class codes and the JAR file which is created successfully by the above command are in the same folder "app" and then I run the project both at command prompt by the command : C:\app>java -jar MyJar.jar
and by double clicking the JAR file. My project is running successfully but, I am using JDBC - ODBC Driver in my project and I want to let this project run in any other computer system. So, any other user who is unknown to the Driver used and Database used in my project can't be able to run my project if the specified driver is not installed in his machine and also there is a bridge of ODBC Data Source (from control panel-- Administrative Tools-- Data Sources(ODBC) )from which Driver is selected and the Database is specified.
In order to test my application, I had removed the data source name from the Control Panel's Data Sources (ODBC) properties' window. Then I run my project then the following error msg is shown in command prompt:
C:\app>java -jar MyJar.jar
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3028)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
23)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at Login.<init>(Login.java:37)
at Login.main(Login.java:364)
Error Trace in getConnection() : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
So, I have a doubt at this point that how a user is able to configure this bridge in order to run my application who is unknown to my project's back-hand? As JRE is essential to run my project so, I have decided to give setup of JRE with my project's CD, may the JDBC - ODBC Driver providing to the user with my application setup solve this problem ?
Please help me to solve my problem.M.V.Asolkar wrote:
Please please help me.Lets presume hypothetically that the jTDS driver won't work with 2000. It might or might not.
However the fact remains that your ODBC driver is not working.
So the first step is to stop trying to run your full application. Instead you create a very simple console application that does nothing but connect to the database.
Problems that usually occur from that would be.
1. The connection string is not correct for MS SQL Server.
2. The connection information for the database is not correct
3. The database (nothing to do with java) is not configured to accept connections. -
How to connect mySQL database with jdbc
Who can tell me how to connect mySQL database with jdbc? Thanks
http://onesearch.sun.com/search/developers/index.jsp?and=connect+mysql&nh=10&phr=&qt=¬=&field=title&since=&col=devforums&rf=0&Search.x=24&Search.y=16
-
How to connect MySql database with JSP
Dear everyone,
how to connect MySql database with JSP......It's too bad that nobody has ever asked this question before...
Maybe you are looking for
-
It shutdown when playing a video
The computer shoutdown when I play any video from youtube or dvd rom and itunes it dosent syncronizy and it dosent alow me to install a new vertion.
-
Error when using navigation list
hi all; i'm using jdeveloper10.1.2 i created a jsp page which contain two cascading lists it worked fine,i copied the application to another pc when i try to run this page on jdeveloper i get this error at runtime javax.servlet.jsp.JspException: Fail
-
Printing the Cheques for T.Code F-53
Hi All Please tell me how can I print the Advice and cheque for the Transactions posted under T.Code F-53 Thanks Priya
-
Where to declare report fileld formula in BI Publisher
Hi All, I am new to BI Publisher..I have a question related to defining formula..I have to calculate a report field like A /A-B in report .. where we can declare our column formula in BI publsiher?Plz help. Regards, Sonal Edited by: Sonal on Dec 19,
-
I just had CS4 installed and can't seem to find where the icon is to show the grid lines on my page. With CS3, the icon was located on the left panel, but I can't find it I have clicked on all Show gridlines tabs on the View tab, but still no luck. C