Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Ron McLeod
Junilu Lacar
Liutauras Vilda
Sheriffs:
Paul Clapham
Jeanne Boyarsky
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Piet Souris
Carey Brown
Bartenders:
Jesse Duncan
Frits Walraven
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Error in allocating a connection. Cause: sun.jdbc.odbc.JdbcOdbcDriver cannot be cast to javax.sql.Da
ankur garha
Greenhorn
Posts: 11
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN" "http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
<resources>
<jdbc-resource enabled="true" jndi-name="jdbc/leagueDB" object-type="user" pool-name="myPool">
<description/>
</jdbc-resource>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="sun.jdbc.odbc.JdbcOdbcDriver" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="myPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="User" value="sa"/>
<property name="Password" value="'()'"/>
<property name="serverName" value="HOME-745016E4F9"/>
<property name="portNumber" value="1433"/>
<property name="databaseName" value="soccer"/>
</jdbc-connection-pool>
</resources>
but when im running my project using netbeans and glassfish webserver....it gives me folowing run time error....
Error in allocating a connection. Cause: sun.jdbc.odbc.JdbcOdbcDriver cannot be cast to javax.sql.DataSource...
Ankur Garha
J2SE/J2EE Developer
OCJP 1.6
Fatih Keles
Ranch Hand
Posts: 182
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
datasource-classname="sun.jdbc.odbc.JdbcOdbcDriver"
Can you change the upper definition with the following "sun.jdbc.odbc.ee.DataSource"?
Regards,
Fatih.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
[JPA 2.0] Redoploying app deletes my database?
lass name is wrong or classpath is not set
Class name is wrong or classpath is not set
Connecting jsp with derby
just firt web service is working
More...