473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Websphere DB2 Connection problem

We have the following configuration
DB2 8.1 fix Pack 2
Solaris 9
Websphere Portal server 5
JDK 1.4

While installing the product we are facing a problem which seems to be
related to Java connectivity with DB2 through Websphere portal.

/websphere/WebSphere/AppServer/java/bin/native2ascii
.../config/wpconfig.properti
es ../config/wpconfig_ascii.properties
Setting cfg.file.name.original to wpconfig.properties
Setting cfg.file.name to wpconfig_ascii.properties
Buildfile: wpconfig.xml

validate-database-connection-wmm:
[echo] DbDriver == COM.ibm.db2.jdbc.app.DB2Driver
[echo] WmmDbUrl == jdbc:db2:wmmdb
[echo] WmmDbUser == db2inst1
[echo] DbLibrary == /websphere/database/abp/test/db2java.zip
[echo] WpsInstallLocation == /websphere/WebSphere/PortalServer
[java] Could not connect to database
[java] java.sql.SQLException: No suitable driver

BUILD FAILED

/websphere/WebSphere/PortalServer/config/wpconfig.xml:144: Java
returned: 2
There is no problem when testing the database connection from a Java
program.
Thanks

Atul Agarwal
at*****@vsnl.com
Nov 12 '05 #1
1 7625
"No suitable driver" means db2 can't find the place where the db2 shared
library, because you use app jdbc driver. There are two solutions:
(1). Use new jdbc driver - universal t4 jcc jdbc driver.
(2). If you still have to use app driver, you need to specify the
$DB2HOME/sqllib/lib in the library path.

"Atul Agarwal" <at*****@vsnl.com> wrote in message
news:41**************************@posting.google.c om...
We have the following configuration
DB2 8.1 fix Pack 2bl
Solaris 9
Websphere Portal server 5
JDK 1.4

While installing the product we are facing a problem which seems to be
related to Java connectivity with DB2 through Websphere portal.

/websphere/WebSphere/AppServer/java/bin/native2ascii
../config/wpconfig.properti
es ../config/wpconfig_ascii.properties
Setting cfg.file.name.original to wpconfig.properties
Setting cfg.file.name to wpconfig_ascii.properties
Buildfile: wpconfig.xml

validate-database-connection-wmm:
[echo] DbDriver == COM.ibm.db2.jdbc.app.DB2Driver
[echo] WmmDbUrl == jdbc:db2:wmmdb
[echo] WmmDbUser == db2inst1
[echo] DbLibrary == /websphere/database/abp/test/db2java.zip
[echo] WpsInstallLocation == /websphere/WebSphere/PortalServer
[java] Could not connect to database
[java] java.sql.SQLException: No suitable driver

BUILD FAILED

/websphere/WebSphere/PortalServer/config/wpconfig.xml:144: Java
returned: 2
There is no problem when testing the database connection from a Java
program.
Thanks

Atul Agarwal
at*****@vsnl.com

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Benson | last post by:
Thanks much for help with the Oracle db connection problem. That, plus some local assistance getting the sqlnet.ora default domain right, got everything fixed. Now I'm connected, and have been able...
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
17
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
1
by: Robert Jones | last post by:
I am trying to set up an ASP site on a Windows 2003 server and am having problems connecting to the database. To isolate the problem I created a simple ASP test page which simply created an ADO...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
0
by: nleesy | last post by:
Our web application running on WebSphere hits the following two exceptions randomly (once or twice a day) while opening connection to db2. Does anyone has idea about the cause of the exception. We...
2
by: junal | last post by:
I developed an web application using ASP.NET. i used MS SQL DB 2000. it worked fine in my local host.Kept the backup of DB when i reinstalled my win XP. problem is i insstalled .NET2005 again like b4...
2
by: dc | last post by:
I have a baffling connection problem from my C# console app to a sql server express database. The console application opens the sql database using the following code:- vDataSource = "server =...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.