Unable to locate the DataSource in Application Scope Connection pooling-JavaCertification
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manoj_Behera
Posted On:   Saturday, October 23, 2004 09:36 AM

Hi, I am trying to create the DataSourceFactory in Weblogic8.1. I was able to create the pool successfully But when I am trying to connect the Datasource through Java Programme getthing the exception " Unable to locate the Datasource". I am trying to connect through Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); Context ctx = new InitialContext(ht); DataSource ds = (DataSource) ctx.lookup("PMATDS"); Connection conn = ds.getConnection(); One more thing I am getting the exception in "Descriptor Tab" and unable    More>>

Hi,

I am trying to create the DataSourceFactory in Weblogic8.1. I was able to create the pool successfully But when I am trying to connect the Datasource through Java Programme getthing the exception " Unable to locate the Datasource".
I am trying to connect through

Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
Context ctx = new InitialContext(ht);
DataSource ds = (DataSource) ctx.lookup("PMATDS");
Connection conn = ds.getConnection();


One more thing I am getting the exception in "Descriptor Tab" and unable to view the DataSource Name in JNDI tree

java.lang.NoSuchMethodException: couldn't find getter for 'RemoveInfectedConnectionsEnabled' on weblogic.management.console.info.ResourcePoolDynamicWrapper
at weblogic.management.console.utils.ReflectUtils.getGetter(ReflectUtils.java:287)
at weblogic.management.console.info.ReflectingAttribute.getGetter(ReflectingAttribute.java:73)
at weblogic.management.console.info.ReflectingAttribute.(ReflectingAttribute.java:52)
at weblogic.management.console.info.ReflectingAttribute.(ReflectingAttribute.java:45)
at weblogic.management.console.info.HelpableReflectingAttribute.(HelpableReflectingAttribute.java:26)
at weblogic.management.console.info.DDAttribute.(DDAttribute.java:14)
at weblogic.management.console.webapp._domain.__jdbcpoolcomponent._jspService(__jdbcpoolcomponent.java:973)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:301)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:150)
at weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java:35)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:173)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Can u please some guide me to configure the Application scope connection pool.

Thanks in Advance.
Manoj

   <<Less
About | Sitemap | Contact