You should see your screen like similar to this two images: Deploying an Application to a Two-Instance Cluster. Error casting to javax. Thank you Dani for posting this up. DataSource I’m using the same jar file as exists for the server.

Uploader: Brajar
Date Added: 11 December 2012
File Size: 46.88 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 99595
Price: Free* [*Free Regsitration Required]

Email required Address never made public. I used root and no password.

SQLServerDriver cannot be cast to javax. DataSource” error was, I believe, caused by an incorrect setting for the jdbc pooling on the glassfish server. Click Go at the bottom of the page to initiate the addition of a database and user for connection pooling.

Log into your Jelastic account and click the New environment button. The database is jsbc booreg. Click Finish to save the values.

How to setup a JDBC connection in Glassfish

Fill in your details below or click an icon to log in: So, I will directly create a database and two tables in this database: I don’t want to put it in the project because that’s not how it’s deployed in production. MysqlDataSource Please check the server.


Create a connection pool with the following properties: Sign up using Facebook. Within the appeared form, fill in the following fields: Notice that all connection will use the same user. I guess there is no error handling or something.

Notify me of new comments via email. Glassfish 4 has a bug, try using PAYARA, its an improved clone from glassfish and this issue is solved plus oracle wont update glassfish anymore. I downloaded Payara fish server as someone advised and made sure the jvbc driver was loaded into the correct directory and bingo.

java – Where to add the jdbc driver on Netbeans/Glassfish in Windows? – Stack Overflow

You are commenting using your WordPress. Then, as the application is used over time, you can set a variety of JDBC connection pool features to optimize performance. In order to verify accessibility, select your just created connection pool and click the Ping button.

Click Createwait glaswfish a few minutes to get your new environment and proceed to create JDBC connection pool. Be sure that you Glassfish server is stopped before going on. Currently this file is called mysql-connector-java Adx up using Email and Password.


Creating a JDBC Connection Pool (Sun GlassFish Enterprise Server Administration Guide)

To find out more, including how to control cookies, see here: Instead of using Glassfish, I recommend you using Payarathat is a fork from Glassfish, well maintained and without that horrible bugs. Adding the other file from microsoft errors out completely. You are commenting using your Facebook account.

Dani plz help, I dont what to do.

I had to turn this on to see the errors. Error casting to javax. Deploying an Application to a Two-Instance Cluster.

Written by