wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes MySQL & Sun App Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "MySQL & Sun App Server" Watch "MySQL & Sun App Server" New topic
Author

MySQL & Sun App Server

Jose Ortuno
Ranch Hand

Joined: Nov 10, 2002
Posts: 39
Hi all!
I am trying to create a datasoure in Sun AppServer 1.4 Developer Release.
After download and installed the mysql-connector, I created a connection pool in the appserver called mySQLconPool with the following settings:
Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
Additional Properties
serverName: 127.0.0.1
databaseName:test
port:3306
user:Admin
password:admin
I added the mysql-connector jar file path to the app server> JVM Settings> Classpath sufix.
The problem is that if I try to PING the connection I get the following error:
An error has occurred.
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Error getting connection from the EIS

What am I doing wrong? Am I missing something?
Please if any of you can help me I will appreciate!!!
Thanks in advance,
JOSEL
SCJP/SCJD
Ken Zhang
Greenhorn

Joined: Mar 17, 2004
Posts: 1
Hi
Here is my working solution to connect MySQL with SUN J2EE 1.4 application server. I used this one and it works in my machine. I am sure two things you may need to take into consideration.
1, the property , I just put the url into the property name and the value is the followings,
2, make sure you use the correct username and password.
Database classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
You can also use: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
Hope this can help!
Ken
And ive added the property:
url = jdbc:mysql://localhost:3306/stocks?user=stocks&password=stocks
najmi thayyil
Greenhorn

Joined: Mar 27, 2001
Posts: 4
You can access the following Document to configure your Oracle with Sun One Application Server
http://www.angelfire.com/nj4/najmi/SunOneOracleConfig.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MySQL & Sun App Server
 
Similar Threads
how to connect to mysql database ?
problem in pro EJB3 chapter 2 code
sql exception thrown
can't connect Mysql 5.2 server on '127.0.0.1' (10061)
sun java application server start up failure