This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Websphere and the fly likes Database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Database connection" Watch "Database connection" New topic
Author

Database connection

shivendra dubey
Greenhorn

Joined: Dec 05, 2001
Posts: 5
Hi,
I am trying to access MS SQL server2000 by making connection pool it is giving me
com.ibm.websphere.naming.CannotInstantiateObjectException:
Exception occurred while the JNDI NamingManager was
processing a javax.naming.Reference object. [Root
exception is java.lang.NullPointerException]
And How to make connection Pools in WebSphere 4.0 AEs.
Maximilian Trenks
Ranch Hand

Joined: Jul 22, 2002
Posts: 104
hi,
i have the same problem like you, but i want to connect to a message queue connection factory.
did you solve the issue yet ?
thanx,
max


Student of Business Informatics<br />Kepler University Linz, Austria
sreramkumar viswanathan
Greenhorn

Joined: Sep 03, 2003
Posts: 1
I am trying to deploy a entitiy bean in WebSphere Application Version 5. I have followed all the steps provided by the User Interface. I am connecting to Oracle 9i driver. I am trying to validate and install the ear. the validation and installation are happenning properly. but when I try to start the services, it is failing to start with the following exception:

com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is javax.naming.NamingException: Failed to lookup the object configured with a null or empty name
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory$1.run(IndirectJndiLookupObjectFactory.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstance(IndirectJndiLookupObjectFactory.java:92)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:135)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1227)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1203)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1257)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanClassExtensionImpl.lookup(ConcreteBeanClassExtensionImpl.java:727)
at com.ibm.ws.ejbpersistence.beanextensions.ConcreteBeanClassExtensionImpl.getConnectionFactory(ConcreteBeanClassExtensionImpl.java:260)
at com.ibm.ws.ejbpersistence.beanextensions.PMModuleCookieImpl.beanInstall(PMModuleCookieImpl.java:98)
at com.ibm.ws.ejbpersistence.beanextensions.PersistenceManagerImpl.beanInstall(PersistenceManagerImpl.java:69)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1293)
at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:958)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:881)
at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:860)
at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1249)
at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:982)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1456)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:743)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:337)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:531)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:458)
at java.lang.reflect.Method.invoke(Native Method)
at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(MMBInvoker.java:46)
at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(MMBInvoker.java:115)
at com.tivoli.jmx.modelmbean.DynamicModelMBeanSupport.invoke(DynamicModelMBeanSupport.java:409)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:323)
at com.tivoli.jmx.GenericMBeanSupport.invoke(GenericMBeanSupport.java:178)
at com.tivoli.jmx.MBeanAccess.invoke(MBeanAccess.java:113)
at com.tivoli.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:290)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:655)
at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:137)
at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.perform(ApplicationDeploymentCollectionAction.java:239)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1791)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
[9/3/03 19:38:27:302 GMT+05:30] 32d4efcb EJBContainerI I WSVR0041I: Stopping EJB jar: PkGenerator.jar
[9/3/03 19:38:27:412 GMT+05:30] 32d4efcb EJBContainerI E WSVR0042E: Unable to stop TestFlowbriX#PkGenerator.jar#PKGen: unknown bean home name - TestFlowbriX#PkGenerator.jar#PKGen
[9/3/03 19:38:27:722 GMT+05:30] 32d4efcb DeployedAppli W WSVR0206E: Module, PkGenerator.jar, of application, TestFlowbriX.ear/deployments/TestFlowbriX, failed to start
[9/3/03 19:38:27:753 GMT+05:30] 32d4efcb ApplicationMg W WSVR0101W: An error occurred starting, TestFlowbriX
[9/3/03 19:38:27:793 GMT+05:30] 32d4efcb ApplicationMg A WSVR0217I: Stopping application: TestFlowbriX
[9/3/03 19:38:27:853 GMT+05:30] 32d4efcb ApplicationMg A WSVR0220I: Application stopped: TestFlowbriX
[9/3/03 19:46:56:539 GMT+05:30] 2ab12fc2 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: WebModuleDeploymentDetailForm was null.Creating new form bean and storing in session
[9/3/03 19:47:44:967 GMT+05:30] 3350efc8 FileRepositor A ADMR0010I: Document cells/k1flobrix105434/applications/TestFlowbriX.ear/deployments/TestFlowbriX/deployment.xml was modified.
[9/3/03 19:47:57:755 GMT+05:30] 32d4efcb WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: HelpSearchForm was null.Creating new form bean and storing in session
[9/3/03 19:48:37:461 GMT+05:30] 2ad46fc3 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: ApplicationDeploymentDetailForm was null.Creating new form bean and storing in session
[9/3/03 19:49:09:726 GMT+05:30] 32d4efcb WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: DeploymentTargetMappingDetailForm was null.Creating new form bean and storing in session
[9/3/03 19:58:51:876 GMT+05:30] 2ad46fc3 WebGroup I SRVE0180I: [adminconsole] [/admin] [Servlet.LOG]: action: EJBModuleDeploymentDetailForm was null.Creating new form bean and storing in session

can anybody debug it for me.
Benny Thomas
Ranch Hand

Joined: Sep 13, 2003
Posts: 44
I too get the same websphere exception when i try to start my application deployed in WAS 5. My DB too is MS SQLServer 2000.
Please help me if u were able to solve this issue.
Regards
Benny
com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is javax.naming.NameNotFoundException:
Originally posted by shivendra dubey:
Hi,
I am trying to access MS SQL server2000 by making connection pool it is giving me
com.ibm.websphere.naming.CannotInstantiateObjectException:
Exception occurred while the JNDI NamingManager was
processing a javax.naming.Reference object. [Root
exception is java.lang.NullPointerException]
And How to make connection Pools in WebSphere 4.0 AEs.


[ September 13, 2003: Message edited by: Benny Thomas ]

IBM Certified System Administrator - Websphere Application Server 5
Benny Thomas
Ranch Hand

Joined: Sep 13, 2003
Posts: 44
oh guys..i got it sorted out..I had forgotten to add J2C authentication data in WAS 5. Thats why all those funny errors came.
cheers!
Benny
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database connection