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:

VenkateshSampoornam

[1620 byte] By [VenkateshSampoornama] at [2007-11-26 17:26:38]
# 1

In 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

sebstoa at 2007-7-8 23:54:39 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...