Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Data Soruce in websphere is not working(Data Soruce in websphere is not working)
Data Soruce in websphere is not working [message #629458] Tue, 28 September 2010 11:13 Go to next message
ap  is currently offline ap Friend
Messages: 2
Registered: September 2010
Junior Member
I have configured JDBC providers and Data sources for my application in Websphere application server.

I have not given any properties related to database in my persistence.xml

My select operations are working fine in the application but when tries to insert/update data into Database(my database is DB2) from applcaiton its giving me the exception --



[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.unableT oAcquireConnectionFromDriverException(DatabaseException.java :375)
at org.eclipse.persistence.sessions.DefaultConnector.connect(De faultConnector.java:90)
at org.eclipse.persistence.sessions.DatasourceLogin.connectToDa tasource(DatasourceLogin.java:162)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImp l.loginAndDetectDatasource(DatabaseSessionImpl.java:584)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryPro vider.login(EntityManagerFactoryProvider.java:231)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl. deploy(EntityManagerSetupImpl.java:263)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImp l.getServerSession(EntityManagerFactoryImpl.java:135)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImp l.createEntityManagerImpl(EntityManagerFactoryImpl.java:187)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImp l.createEntityManager(EntityManagerFactoryImpl.java:175)
at com.fundamo.core.DefaultEntityManagerResolver.setEntityManag er(DefaultEntityManagerResolver.java:44)
at com.fundamo.generic.eao.impl.GenericEaoImpl.update(GenericEa oImpl.java:111)
at com.fundamo.generic.eao.EJSLocal0SLgenericEAO_f06df5d0.updat e(EJSLocal0SLgenericEAO_f06df5d0.java)
at com.fundamo.generator.service.impl.IdGeneratorManagerImpl.ge tNextRangeFor(IdGeneratorManagerImpl.java:50)
at com.fundamo.generator.service.impl.EJSLocal0SLIdGeneratorMan agerImpl_47dae4da.getNextRangeFor(EJSLocal0SLIdGeneratorMana gerImpl_47dae4da.java)
at com.fundamo.generator.service.impl.IdGeneratorCacheEaoImpl.g etNextRangeFor(IdGeneratorCacheEaoImpl.java:126)
at com.fundamo.generator.service.impl.IdGeneratorCacheEaoImpl.g etNextIdFor(IdGeneratorCacheEaoImpl.java:88)
at com.fundamo.generator.service.impl.IdGeneratorCacheEaoImpl.g etNextIdFor(IdGeneratorCacheEaoImpl.java:69)
at com.fundamo.generator.service.impl.EJSLocal0SLIdGeneratorCac heEaoImpl_e4924292.getNextIdFor(EJSLocal0SLIdGeneratorCacheE aoImpl_e4924292.java)
at com.fundamo.businessevent.service.impl.BusinessEventServiceB ean.generateId(BusinessEventServiceBean.java:321)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ejs.container.EJSContainer.invokeProceed(EJSContaine r.java:5874)
at com.ibm.ejs.container.interceptors.InvocationContextImpl.pro ceed(InvocationContextImpl.java:586)
at com.fundamo.interceptors.ExceptionFilterInterceptor.exceptio nHandling(ExceptionFilterInterceptor.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeIn terceptor(InterceptorProxy.java:227)
at com.ibm.ejs.container.interceptors.InvocationContextImpl.pro ceed(InvocationContextImpl.java:566)
at com.ibm.ejs.container.interceptors.InvocationContextImpl.doA roundInvoke(InvocationContextImpl.java:217)
at com.ibm.ejs.container.EJSContainer.invoke(EJSContainer.java: 5766)
at com.fundamo.businessevents.service.EJSRemote0SLBusinessEvent ServiceLocal_d838126d.generateId(EJSRemote0SLBusinessEventSe rviceLocal_d838126d.java)
at com.fundamo.businessevents.service._BusinessEventService_Stu b.generateId(_BusinessEventService_Stub.java)
at com.fundamo.interceptors.BusinessEventInterceptor.createBusi nessEvent(BusinessEventInterceptor.java:153)
at com.fundamo.interceptors.BusinessEventInterceptor.logMethodE ntry(BusinessEventInterceptor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ejs.container.interceptors.InterceptorProxy.invokeIn terceptor(InterceptorProxy.java:227)
at com.ibm.ejs.container.interceptors.InvocationContextImpl.pro ceed(InvocationContextImpl.java:566)
at com.ibm.ejs.container.interceptors.InvocationContextImpl.doA roundInvoke(InvocationContextImpl.java:217)
at com.ibm.ejs.container.EJSContainer.invoke(EJSContainer.java: 5766)
at com.fundamo.kyc.service.EJSRemote0SLKYCServiceLocal_72bde312 .updateKYCAttribute(EJSRemote0SLKYCServiceLocal_72bde312.jav a)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:612)
at java.security.AccessController.doPrivileged(AccessController .java:251)
at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil. java:608)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java :1165)
at $Proxy60.updateKYCAttribute(Unknown Source)
at com.fundamo.kyc.service._KYCService_Stub.updateKYCAttribute( _KYCService_Stub.java)
at com.fundamo.kyc.service.KYCServiceProxy.updateKYCAttribute(K YCServiceProxy.java:178)
at com.fundamo.kyc.controller.MaintainKYCAttributeController.sa ve(MaintainKYCAttributeController.java:592)
at com.fundamo.web.BaseBean.buttonType(BaseBean.java:465)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.apache.el.parser.AstValue.invoke(AstValue.java:131)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionIm pl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpr ession.java:68)
at javax.faces.event.MethodExpressionActionListener.processActi on(MethodExpressionActionListener.java:99)
at javax.faces.event.ActionEvent.processListener(ActionEvent.ja va:88)
at javax.faces.component.UIComponentBase.broadcast(UIComponentB ase.java:760)
at javax.faces.component.UICommand.broadcast(UICommand.java:372 )
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot. java:458)
at javax.faces.component.UIViewRoot.processApplication(UIViewRo ot.java:763)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(Invok eApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl. java:118)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.appl y(JsfLifecycleExecutor.java:18)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.render Cycle(ReceiveSendUpdates.java:132)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.servic e(ReceiveSendUpdates.java:74)
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(R equestVerifier.java:31)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcher Server.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.s ervice(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service (PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.serv ice(SessionDispatcher.java:53)
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.servic e(SessionVerifier.java:26)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service (PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(Ma inServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(Blo ckingServlet.java:56)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl etWrapper.java:1655)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl etWrapper.java:1595)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(We bAppFilterChain.java:104)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(W ebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter( WebAppFilterManager.java:895)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest (ServletWrapper.java:932)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest (ServletWrapper.java:500)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleReq uest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRe quest(CacheServletWrapper.java:91)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContai ner.java:864)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebCo ntainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChanne lLink.java:183)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleD iscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleN ewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.com plete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.future Completed(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(Abstract AsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(As yncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:2 04)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(Result Handler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)


Re: Data Soruce in websphere is not working [message #630044 is a reply to message #629458] Thu, 30 September 2010 13:41 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

It looks like you did not set the jta-data-source in your persistence.xml, you need to.

See,
http://en.wikibooks.org/wiki/Java_Persistence/Runtime#Java_E nterprise_Edition

If your still having problems include your persistence.xml.


James : Wiki : Book : Blog : Twitter
Previous Topic:Inheritance with multiple subclasses
Next Topic:GF 3.1 + EclipseLink 2.1.1 - Map/Hashmap not working properly with changetracking enabled
Goto Forum:
  


Current Time: Fri Apr 26 00:01:09 GMT 2024

Powered by FUDForum. Page generated in 0.12218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top