Hi Group,
I have configured
datasource in WebSphere to connect to DB2
and using it in my J2EE application. The same datasource has been
configured in
Persistence,xml. When I run the application then it can read and
display the
data but when I tried to create or update records then it throws
following
error. Can any body please advice on this?
Thanks in advance.
Error Log:
[9/28/10 16:10:18:265
IST] 0000001c
SystemOut O [EL Severe]: 2010-09-28
16:10:18.265--ServerSession(164956629)--Local Exception Stack:
Exception
[EclipseLink-4021] (Eclipse Persistence Services
- 2.0.0.v20090725-r4721):
org.eclipse.persistence.exceptions.DatabaseException
Exception Description:
Unable to acquire a connection from
driver [null], user [null] and URL [null]. Verify that you have set
the
expected driver class and URL. Check your login, persistence.xml or
sessions.xml resource. The jdbc.driver property should be set to a
class
that is compatible with your database platform
at
org.eclipse.persistence.exceptions.DatabaseException.unableToAcquireConnectionFromDriverException(DatabaseException.java:375)
at
org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:90)
at
org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
at
org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:584)
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:231)
at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:263)
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:135)
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:187)
at
org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:175)
at
com.fundamo.core.DefaultEntityManagerResolver.setEntityManager(DefaultEntityManagerResolver.java:44)
…………
……….
Thanks & Regards,
Atish