Get Connection from connection pooling

Hi,
I am aware of the fact that to get connection from a connection pool we need to add JNDI name in context.xml of apache tomcat and use it in our application to get connection. I have tested this and it works fine.
Now, we have 12 servers having free database each having almost 20 small Java applications for different purposes (get data from server database do some business logic and maipulation with data from central database and store on central database) each connecting to central database.
We were enjoying life till we had almost 8-9 servers but now many times we have connection issues as there are too many connections to central database and servers are going to increase.
I know my company design is not good but we need some solution.
I want my Java applications to take database connectivity using connection pooling on servers. My Java applications are standalone applications that do not run in web server. Is this approach fine?
I searched google for some solution but was unable to find.
Any pointers would be really helpful.
I think that since my application is outside web container I am unable to get Context (java:/comp/env). Please give me some pointers on how can i get web server context outside web server.
Thanks and Regards,
Vikash Anand.

Google ( [jndi standalone application|http://www.google.com/search?q=jndi+standalone+application] ).

Similar Messages

  • Error while executing jdbc commands but getting connection pool

    I was not able to make a simple oracle connection and that hurts me.
    The program(jsp) is...
    <%@ page language="java" import="java.sql.*,java.io.*,
    java.util.*,pac1.*,javax.naming.*,javax.sql.*"%>
    <html>
    <body>
    <%
    Context ctx= new InitialContext();
    DataSource dsindogulf1=(DataSource)ctx.lookup("jnindogulf1");
    Connection conn=dsindogulf1.getConnection();
    if(conn!=null)
    System.out.println(conn.toString());
    else
    System.out.println("sorry");
    Statement st=conn.createStatement();
    String string1="CREATE TABLE Authorr(col1 CHAR(10));";
    st.executeUpdate(string1);
    %>
    </body>
    </html>
    If i delete the
    st.executeUpdate(string1); then there is no problem I get the connection pool. That means i am getting the connection. But when i include the
    st.executeUpdate(string1); there is an error which i cannot understand.. the error is
    Error 500--Internal Server Error
    java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-00911: invalid character
         at weblogic.jdbc.base.BaseExceptions.createException(Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(I[Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
         at weblogic.jdbc.oracle.OracleImplStatement.execute()V(Optimized Method)
         at weblogic.jdbc.base.BaseStatement.commonExecute()V(Optimized Method)
         at weblogic.jdbc.base.BaseStatement.executeUpdateInternal()I(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeUpdate(Ljava.lang.String;)I(Unknown Source)
         at weblogic.jdbc.wrapper.Statement.executeUpdate(Ljava.lang.String;)I(Statement.java:360)
         at jsp_servlet.__test._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__test.java:149)
         at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
         at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    the steps which i have followed are... I have made a connection pool using weblogic type 4 driver in the administrative console... then i have created the data source using jndi name jnindogulf1..... but although i am getting the connection pool i am receiving error ehice executing jdbc commands
    please help
    thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    babuli nayak wrote:
    I was not able to make a simple oracle connection and that hurts me.
    The program(jsp) is...
    <%@ page language="java" import="java.sql.*,java.io.*,
    java.util.*,pac1.*,javax.naming.*,javax.sql.*"%>
    <html>
    <body>
    <%
    Context ctx= new InitialContext();
    DataSource dsindogulf1=(DataSource)ctx.lookup("jnindogulf1");
    Connection conn=dsindogulf1.getConnection();
    if(conn!=null)
    System.out.println(conn.toString());
    else
    System.out.println("sorry");
    Statement st=conn.createStatement();
    String string1="CREATE TABLE Authorr(col1 CHAR(10));";
    st.executeUpdate(string1);
    %>
    </body>
    </html>
    If i delete the
    st.executeUpdate(string1); then there is no problem I get the connection pool. That means i am getting the connection. But when i include the
    st.executeUpdate(string1); there is an error which i cannot understand.. the error is
    Error 500--Internal Server Error
    java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-00911: invalid character
         at weblogic.jdbc.base.BaseExceptions.createException(Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(I[Ljava.lang.String;Ljava.lang.String;I)Ljava.sql.SQLException;(Unknown Source)
         at weblogic.jdbc.oracle.OracleImplStatement.execute()V(Optimized Method)
         at weblogic.jdbc.base.BaseStatement.commonExecute()V(Optimized Method)
         at weblogic.jdbc.base.BaseStatement.executeUpdateInternal()I(Unknown Source)
         at weblogic.jdbc.base.BaseStatement.executeUpdate(Ljava.lang.String;)I(Unknown Source)
         at weblogic.jdbc.wrapper.Statement.executeUpdate(Ljava.lang.String;)I(Statement.java:360)
         at jsp_servlet.__test._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__test.java:149)
         at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized Method)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6452)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(Optimized Method)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
         at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    the steps which i have followed are... I have made a connection pool using weblogic type 4 driver in the administrative console... then i have created the data source using jndi name jnindogulf1..... but although i am getting the connection pool i am receiving error ehice executing jdbc commands
    please help
    thanks
    Hi. Remove the semicolon from your SQL string:     stmt.executeUpdate("CREATE TABLE Authorr(col1 CHAR(10))");Joe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How do i get connection pooling in tomcat

    hi 2 all,
    i m confused how to get connection with tomcat .
    thanx

    As Jerry says:
    Click on (only) 2 floating objects at a time. It sounds like you have more than 2 selected, otherwise you would not even see thee the menu option.
    Peter

  • Hi Guys, can you please help me with Connection Pooling.

    I have:-
    Tomcat 5.0.27
    MySQL 4
    Apache 2.0.
    JSP web pages.
    I have been trying to get connection pooling working but i havent been successful yet. Please do help me make it happen.
    I have posted my server.xml and web.xml from /conf/. They are not edited. I have also included the pages that I am currently ussing to connect to the database.
    I need you to assist me with how I should edit the above.
    1.     SERVER.XML
    Where and how should I edit this file?
    2.     WEB.XML
    Where and how should I edit this file?
    3.     DATABASE_INFO.JSP
    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    %>
    <%!
    public java.sql.Connection dataconnect() throws SQLException {
    Connection database_connector;
    database_connector = DriverManager.getConnection("jdbc:mysql://localhost/publications?user=hello&password=hello");
    return database_connector;
    %>
    <%!
    public java.sql.Connection adminconnect(javax.servlet.http.HttpSession session) throws SQLException {
    Connection database_connector;
    if (session.getAttribute("s_conn")!=null) {
    database_connector = (Connection) session.getAttribute("s_conn");
    if (database_connector.isClosed()) {
    database_connector = DriverManager.getConnection("jdbc:mysql://localhost/publications?user=hello&password=hello");
    } else {
    database_connector = DriverManager.getConnection("jdbc:mysql://localhost/publications?user=hello&password=hello");
    session.setAttribute("s_conn", database_connector);
    return database_connector;
    %>
    <%!
    public String filedir() {
    String directory = "C:/Tomcat/webapps/ROOT/publications/";
    return directory;
    %>
    etc
    Database Name : publications

    Hi,
    1- put your jdbc driver jar file in $CATALINA_HOME/common/lib (ex: C:\tomcat\common\lib )
    2- Next, modify the web application deployment descriptor (/WEB-INF/web.xml) to declare the JNDI name under which you will look up preconfigured data source
    take care of the ordering as below so resourc-ref tag is after taglib
    <resource-ref>
    <description>
    Resource reference to a factory for java.sql.Connection
    instances that may be used for talking to a particular
    database that is configured in the server.xml file.
    </description>
    <res-ref-name>
    jdbc/EmployeeDB
    </res-ref-name>
    <res-type>
    javax.sql.DataSource
    </res-type>
    <res-auth>
    Container
    </res-auth>
    </resource-ref>
    3- add an element like this to the /META-INF/context.xml file in the web application. ( under ../webapps/mywebapplication/WEB-INF
    <Context ...>
    <Resource name="jdbc/EmployeeDB" auth="Container"
    type="javax.sql.DataSource" username="hello" password="hello"
    driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/publications"
    maxActive="8" maxIdle="4"/>
    </Context>
    4- code sample
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    DataSource ds = (DataSource)
    envCtx.lookup("jdbc/EmployeeDB");
    Connection conn = ds.getConnection();
    ... use this connection to access the database ...
    conn.close();
    The default data source support in Tomcat is based on the DBCP connection pool from the jakarta commons
    Regards,
    Alan Mehio
    London,UK

  • Best way to use Sun Web Server connection pooling with Web Application?

    I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
    As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
    Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
    Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
    Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
    Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
    Any tips?
    dailysun
    P.S. For instance, in my tool, I call the interface class in this manner:
    Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
    getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.

    I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
    As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
    Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
    Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
    Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
    Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
    Any tips?
    dailysun
    P.S. For instance, in my tool, I call the interface class in this manner:
    Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
    getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.

  • Creating connection using Connection Pooling!

    I am getting the Connection object from the pool!
    my application has series of servlets & JSPs wherein some pages only use the connection object and run some SQL queries!
    now, I want to get the Connection object once & for all, and then use it wherever I need it. How do I make this happen? How does the Connection object go to the other pages??

    Not needed. Let each method that needs one, get one from the pool. The pool does not open a new connection every time a connection is asked for (only when there are not any available connections left) so the overhead of opening a new connection is not present. This is the entire purpose of a connection pool.
    If, however, you absolutely must do something like this, then you can pass it as an argument to every method that needs it (they of course have to declare a Connection parameter). Just don't close it, or it goes back to the pool.

  • Connection Pools for DB2 UDB 8.2 on a SUN AS 8.1

    Hi,
    has somebody experience or knows a place where I can get more information in setting up a connection pool to a DB2 UDB 8.2 database from a SUN AS 8.1 server?
    I'm struggling now for some weeks to get this working, but it doesn't work. I've tried the JDBC JAR's delivered with DB2 but get configuration errors. When I use the JDBC JAR's mentioned in the SUN AS documentation, it seems that the SUN AS 8.1 opens a connection, which is refused on the DB2 side.
    The setup of a connection pool to a Postgres DB worked directly. The connection pool is correctly setup in the SUN AS but the ping doesn't work.
    Hope somebody can help.
    Regards

    Hi Jagadish,
    added the finest to connector and resource-adapter. Here is the output:
    [#|2006-01-16T09:03:14.540+0100|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|Application server startup complete.|#]
    [#|2006-01-16T09:05:38.556+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ConnectorServiceImpl :: checkAndLoadResource resolved to load Db2Pool|#]
    [#|2006-01-16T09:05:38.556+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|isReferenced in DASResourcesUtil:: Db2Pool|#]
    [#|2006-01-16T09:05:38.556+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getConnectionFromConnectorRuntime :: true|#]
    [#|2006-01-16T09:05:38.556+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|isReferenced in DASResourcesUtil:: Db2Pool|#]
    [#|2006-01-16T09:05:38.556+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getConnectionFromConnectorRuntime :: true|#]
    [#|2006-01-16T09:05:38.587+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|isReferenced in DASResourcesUtil:: Db2Pool|#]
    [#|2006-01-16T09:05:38.587+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getConnectionFromConnectorRuntime :: true|#]
    [#|2006-01-16T09:05:38.587+0100|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR6017 : Failed to get connection pool object via JNDI lookup : Db2Pool|#]
    [#|2006-01-16T09:05:38.587+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|
    com.sun.enterprise.connectors.ConnectorRuntimeException: This pool is not bound in JNDI :
         at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:949)
         at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:1089)
         at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:507)
         at com.sun.enterprise.connectors.ConnectorRuntime.testConnectionPool(ConnectorRuntime.java:504)
         at com.sun.enterprise.admin.mbeans.ResourcesMBean.pingConnectionPool(ResourcesMBean.java:1908)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
         at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:148)
         at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:46)
         at com.sun.enterprise.tools.admingui.handlers.CommonHandlers.invokeMBean(CommonHandlers.java:123)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:863)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:800)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:775)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.execute(DescriptorViewHelper.java:291)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.execute(DescriptorViewBeanBase.java:192)
         at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
         at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:760)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
         at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
         at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
         at com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServlet.java:186)
         at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Caused by: javax.naming.NameNotFoundException: Db2Pool not found
    |#]
    [#|2006-01-16T09:05:38.587+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getUnpooledConnection :: obtainManagedConnectionFactory threw exception. SO doing checkAndLoadPoolResource|#]
    [#|2006-01-16T09:05:38.603+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|returning/found the resource adapter from connector registry|#]
    [#|2006-01-16T09:05:38.759+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourceAdapterAdminServiceImpl :: createActiveRA __ds at D:\appserver\sun02\lib\install\applications\__ds|#]
    [#|2006-01-16T09:05:38.759+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|returning/found the resource adapter from connector registry|#]
    [#|2006-01-16T09:05:38.759+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|No classloader available with connector descriptor|#]
    [#|2006-01-16T09:05:38.759+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourceAdapterAdminServiceImpl :: createActiveRA __ds at D:\appserver\sun02\lib\install\applications\__ds loader :: null|#]
    [#|2006-01-16T09:05:38.759+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|returning the connector registry|#]
    [#|2006-01-16T09:05:38.759+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Returing the resourceadapter Config from registry.|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|returning the connector registry|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Returing the resourceadapter Config from registry.|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourceAdapterAdminServiceImpl :: createActiveRA __ds at D:\appserver\sun02\lib\install\applications\__ds ADDING to registry [email protected]0|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Added the active resource adapter to connector registry|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourceAdapterAdminServiceImpl:: createActiveRA __ds at D:\appserver\sun02\lib\install\applications\__ds env =server ? true|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourceAdapterAdminServiceImpl :: createActiveRA __ds at D:\appserver\sun02\lib\install\applications\__ds publishing descriptor __SYSTEM/descriptors/__ds|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|returning the connector registry|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Returing the resourceadapter Config from registry.|#]
    [#|2006-01-16T09:05:38.774+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|current RAConfig In Descriptor []|#]
    [#|2006-01-16T09:05:38.790+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Found/returing Connector descriptor in connector registry.|#]
    [#|2006-01-16T09:05:38.790+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourcesUtil :: isEnabled|#]
    [#|2006-01-16T09:05:38.790+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|ResourcesUtil :: isEnabled JdbcConnectionPool is pool/config - enabled :true|#]
    [#|2006-01-16T09:05:38.790+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;| JdbcConnectionPoolDeployer - deployResource : JdbcConnectionPool calling actualDeploy|#]
    [#|2006-01-16T09:05:38.790+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;| JdbcConnectionPoolDeployer - actualDeployResource : JdbcConnectionPool|#]
    [#|2006-01-16T09:05:38.993+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|parseTransactionSupportString: passed in txSupport =>LocalTransaction|#]
    [#|2006-01-16T09:05:39.009+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|returning/found the resource adapter from connector registry|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setpassword(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , passwd ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setdelimiter(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , # ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setdriverProperties(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , setdriverType#2##setdeferPrepares#false## ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setvalidationMethod(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , table ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setdatabaseName(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , dataBaseName ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setvalidationTableName(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , TABLE_ADDRESS ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setconnectionValidationRequired(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , false ] |#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.024+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setguaranteeIsolationLevel(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , false ] |#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setuser(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , user ] |#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public boolean com.sun.gjc.spi.DSManagedConnectionFactory.equals(java.lang.Object)matches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public javax.resource.spi.ManagedConnection com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceExceptionmatches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Method public int com.sun.gjc.spi.ManagedConnectionFactory.hashCode()matches with the right arg type|#]
    [#|2006-01-16T09:05:39.040+0100|FINER|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Invokingpublic void com.sun.gjc.spi.ManagedConnectionFactory.setclassName(java.lang.String) on com.sun.gjc.spi.DSManagedConnectionFactorywith value [class java.lang.String  , com.ibm.db2.jcc.DB2SimpleDataSource ] |#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Created MCF object : |#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|poolName : Db2Pool : txSupport : 1|#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Added MCF to connector registry.|#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getUnpooledConnection:: checkAndLoadPoolResource is true|#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getUnpooledConnection :: Now calling obtainManagedConnectionFactory again|#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|Returning the MCF from connector registry.|#]
    [#|2006-01-16T09:05:39.040+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|getUnpooledConnection:: done obtainManagedConnectionFactory again|#]
    [#|2006-01-16T09:05:39.071+0100|FINE|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=11;|using subject: Betreff:
         Principal: user
         Private Authentisierung: javax.resource.spi.security.PasswordCredential@26702a03
    |#]
    I think the exception is thrown because the pool was never allocated. So this exception should be okay.
    Then comes a lot of reflection stuff (at least in my opinion) and finally there is a try to open the connection. What I don't understand is why there is
    [#|2006-01-16T09:05:39.071+0100|FINE| ... |[b]using subject: Betreff:
    'Betreff' is normally the start for a german mail???
    But nevertheless I think I will realize your second suggestion and write a java client which opens a datasource. This make take some time (one or two days).
    THX a lot for your help.
    PS: There is some kind of syntax highlighting error within the exception code. So the rest of the text is also bold. Don't know how to reset that, but I hope it is readable.

  • Tomcat 5.5 + JDBC connection pooling -- help

    I recently upgraded from java 1.4/tomcat 5.0 to java 1.5/tomcat 5.5. I am having difficulty getting connection pooling to work, however.
    Here are the details:
    1. Using mysql 4.1.3 beta -- it has been working fine for my purposes for a while
    2. put mysql-connector-java-3.1.7-bin.jar in tomcat/common/lib.
    3. Here is server.xml:
    <Server port="8005" shutdown="SHUTDOWN">
        <GlobalNamingResources>
            <Resource auth="Container" name="jdbc/TestDB"
            type="javax.sql.DataSource"/>
            <ResourceParams name="jdbc/TestDB">
                <parameter>
                    <name>url</name>
                    <value>jdbc:mysql://localhost:3306/TestDB?autoReconnect=true</value>
                </parameter>
                <parameter>
                    <name>maxIdle</name>
                    <value>40</value>
                </parameter>
                <parameter>
                    <name>maxActive</name>
                    <value>150</value>
                </parameter>
                <parameter>
                    <name>driverClassName</name>
                    <value>com.mysql.jdbc.Driver</value>
                </parameter>
                <parameter>
                    <name>maxWait</name>
                    <value>3000</value>
                </parameter>
                <parameter>
                    <name>removeAbandoned</name>
                    <value>true</value>
                </parameter>
                <parameter>
                    <name>username</name>
                    <value>webapp</value>
                </parameter>
                <parameter>
                    <name>factory</name>
                    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                </parameter>
                <parameter>
                    <name>logAbandoned</name>
                    <value>true</value>
                </parameter>
                <parameter>
                    <name>removeAbandonedTimeout</name>
                    <value>90</value>
                </parameter>
                <parameter>
                    <name>password</name>
                    <value>secret</value>
                </parameter>
            </ResourceParams>
        </GlobalNamingResources>
        <Service name="Catalina">
            <Connector port="8080" />
            <Engine name="Catalina" defaultHost="localhost">
                <Host appBase="webapps"
                      autoDeploy="true"
                      debug="5"
                      liveDeploy="true"
                      name="localhost"
                      unpackWARs="true"
                      xmlValidation="true"/>
            </Engine>
        </Service>
    </Server>4. My application is called "bertle". Here is tomcat/conf/Catalina/localhost/bertle.xml:
    <Context path="/bertle" reloadable="true"
             docBase="C:\eclipse\workspace\bertle\bertle"
             workDir="C:\eclipse\workspace\bertle\work">
        <ResourceLink global="jdbc/TestDB"
                      name="jdbc/TestDB"
                      type="javax.sql.DataSource" />
    </Context>5. Tomcat starts up find without showing any errors. However, when I try and run the application I get an error. The error occurs when the user tries to log in, which involves querying the mysql database. Here is some of what it spits up:
    SEVERE: Error in validating user.
    Feb 28, 2005 5:05:16 PM edu.harvard.dsg.chv.model.LoginBean validateUser
    SEVERE: SQL statement =
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
         at  org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
         at mypackage.model.LoginBean.validateUser(LoginBean.java:49)
         at mypackage.action.LoginAction.execute(LoginAction.java:58)6. Here is the line at LoginBean.java:49:
    49    con = dataSource.getConnection();Here are the lines at LoginAction.java:58
    46        // Obtain our environment naming context
    47        Context initCtx = new InitialContext();
    48        Context envCtx = (Context) initCtx.lookup("java:comp/env");
    49       
    50        // Look up our data source
    51        DataSource ds = (DataSource) envCtx.lookup("jdbc/TestDB");
    52       
    53        // create a new LoginBean passing the datasource
    54        LoginBean lb = new LoginBean(ds);
    55       
    56        // check to see if this user/password combination are valid
    57        // will return a non-null UserDTO if valid
    58        UserDTO user = lb.validateUser((String)((DynaValidatorForm)form).get("handle"),
    59                (String)((DynaValidatorForm)form).get("password"));Is there something I am also supposed to add to WEB-INF/web.xml ?
    I am offering many kudos to anyone who can tell me what I am overlooking.
    Thanks,
    Jon

    the stuff you added in server.xml is old and wiilnot
    work with 5.5.*
    might pass dtd but it will not work
    did you try changing it to new layoutI gave you one Duke dollar for helping me with this.
    I will give another one to anyone who can tell me
    e how to set up global connection pooling in tomcat.Hi,
    Please bear with me for replying to a thread that's a week old.
    I was trying to set up connection pooling in tomcat and this thread helped me clear up some issues for the same.
    Incidentally google returns this thread among the top 10 when i search for tomcat 5.5 connection pooling.
    There are some unexplained questions here (regarding global connection pooling) and since I was able to set that up too, this may, in the future, benefit anybody who faces similar issues.
    Setting Up Global Connection Pooling
    Add this piece of code to server.xml under the server element
    <Server port="8005" shutdown="SHUTDOWN">
      <!-- other elements -->
      <GlobalNamingResources>
         <!-- other global resources-->
          <Resource name="jdbc/learning" auth="Container"                      type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
                         url="jdbc:oracle:thin:@localhost:1521:learning"
                         username="Learning" password="Learning" maxActive="20" maxIdle="10"  maxWait="-1"/>         
      </GlobalNamingResources>And then in your context file (which may be the <webapps>/<your appn>/META-INF/<your_web_app.xml> directory or conf/catalina/localhost/<your_web_app.xml>)
    add this code
    <Context docBase="${catalina.home}/webapps/webtest"
             privileged="true" antiResourceLocking="false" antiJARLocking="false">
    <!-- Use this if you dont require global resources
      <Resource name="jdbc/learning" auth="Container"
                         type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
                         url="jdbc:oracle:thin:@localhost:1521:learning"
                         username="Learning" password="Learning" maxActive="20" maxIdle="10"
                  maxWait="-1"/>
    -->
    <!-- this is a resource link if you have defined resource globally-->
    <ResourceLink
                name="jdbc/learning"
                global="jdbc/learning"
                type="javax.sql.DataSource"
              />
    </Context>also tomcat recommends defining the docBase outside the webapps directory (ie any other location outside the tomcat installation dir) if you choose to define contexts in xml files.
    thanks,
    ram.

  • Difference between using app server connection pooling and using the driver

    Hi all,
    How to get connection pooling with out application server and tomcat also?
    What is the difference between using app server connection pooling and using the driver supported connection pooling?
    Regards,
    Murali

    maybe the performance of App server pool is better than the JDBC pool,
    for you don't know wether the implementation of the JDBC interface is good or bad.

  • Weblogic realm authentication failure getting connection from pool

    We are getting this error when we try to get a connection from the
    pool for a Tx Data Source. We are successfully getting connections
    from a (non-Tx) Data Source.
    java.lang.SecurityException: Authentication for user Fitness_demo
    denied in realm weblogic
    at weblogic.security.acl.Realm.authenticate(Realm.java:212)
    at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
    at weblogic.security.acl.internal.Security.authenticate(Security.java:125)
    at weblogic.security.acl.Security.doAsPrivileged(Security.java:481)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:127)
    We have added the DB user as a user in the realm, which usually does
    the trick; but in this case it does not. We are using Merant's
    JSQLConnect type 2 driver for SQL Server, and we are running on
    Solaris. The scenario works fine using Oracle Thin driver on Windows.
    Do we need ACL entries or something? We do not have any ACL entries
    now.
    Thanks,
    -wes

    We are getting this error when we try to get a connection from the
    pool for a Tx Data Source. We are successfully getting connections
    from a (non-Tx) Data Source.
    java.lang.SecurityException: Authentication for user Fitness_demo
    denied in realm weblogic
    at weblogic.security.acl.Realm.authenticate(Realm.java:212)
    at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233)
    at weblogic.security.acl.internal.Security.authenticate(Security.java:125)
    at weblogic.security.acl.Security.doAsPrivileged(Security.java:481)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:127)
    We have added the DB user as a user in the realm, which usually does
    the trick; but in this case it does not. We are using Merant's
    JSQLConnect type 2 driver for SQL Server, and we are running on
    Solaris. The scenario works fine using Oracle Thin driver on Windows.
    Do we need ACL entries or something? We do not have any ACL entries
    now.
    Thanks,
    -wes

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • How to get Driver and url names from a connection pool

    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name of
    connection pool ? Is it possible to know the name of related pool , if I know
    the name of datasource?
    Thx
    Manish

    hi
    there are 2 ways:
    url must be: jdbc:weblogic:pool[:connectionPoolID]
    or
    jdbc:weblogic:jts[:connectionPoolID] (if you want to use jts with your JDBC connection.)
    see http://e-docs.bea.com/wls/docs60//javadocs/weblogic/jdbc/pool/Driver.html
    However, I think it is safer to configure and use DataSource to get connection.
    Nicolas
    "kumar" <[email protected]> wrote:
    >
    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name
    of
    connection pool ? Is it possible to know the name of related pool , if I
    know
    the name of datasource?
    Thx
    Manish

  • How can I get the virtual connection from connection pool?

    Hi, All, I create the connection pool to Database, then call connPool->createConnetion("scoot","tiger") , it creates a new physical connection to database, not from connection pool. I check the busy number of connection in connection pool, it always 0.
    here is my code, please give me advice.Thanks!
    int minConn,maxConn,incrConn;
    minConn = 4;
    maxConn = 5; //nMax;
    incrConn = 1;
    if(env == 0x0)
    env = Environment::createEnvironment(Environment::DEFAULT);
    if (connPool == 0x0)
         connPool = env->createConnectionPool("scott", "tiger","test.oracle.com", minConn, maxConn, incrConn);
    // here already has 4 physical connections to database;
    Connection con,con2,*con3;
    Statement *stmt;
    int nBusy = connPool->getBusyConnections();
    //nBusy = 0     
    try
    con = connPool->createConnection (szUser, szPassword);
    // create a new physical connection to database
    nBusy = connPool->getBusyConnections();
    //nBusy = 0
    con2 = connPool->createConnection ("scott", "tiger");
    nBusy = connPool->getBusyConnections();
    }catch(SQLExecption ex)
    cout<<ex.what();

    What you are creating are virtual connections. They do logons using the already existing connections in the pool. The real connections from the pool are picked only before doing a round-trip and released immediately after completing the round-trip. You can see the busyConnetions higher than 1, only when you are using the connections concurrently.

  • Failed to obtain/create connection from connection pool after redeploy

    I have a web application (.war) that uses a jdbc connection pool. The application works fine, however after I redeploy it using the administration console I get "Failed to obtain/create connection from connection pool [ Datavision_Pool ]. Reason : null" followed by "Error allocating connection : [Error in allocating a connection. Cause: null]" from javax.enterprise.resource.resourceadapter and I am forced to restart the instance. I am running Sun Java System Application Server 9.1 (build b58g-fcs)
    using a connection pool to a Microsoft SQL 2000 database using inet software's JDBC drivers. I need to be able to redeploy applications without having to restart the instance. Any help is appreciated.

    I have turned on some additional diagnostics and found out some answers and a work-around, but I think that there may be a bug in the way JDBC connection pool classes are loaded. The actual error was a null pointer in the JDBC driver class in the perpareStatement method. The only line in this method is "return factory.createPreparedStatement( this , sql );" and the only possible NPE would be if the factory was null, which should be impossible because it is a static variable and it is initialized when the class is loaded. The problem occurs because we deploy the JDBC driver .jar file within our .war file, for use when a client doesn't have or want to use connection pooling. Apparently, the connection pool must have picked up some of these classes and when the .war was redeployed, the reference to the factory was lost for existing connections (not sure how). If I remove the JDBC .jar file from the .war, it works, but that wasn't an ideal solution, the other way to get it to work was to change the sun-web.xml file to have <class-loader delegate="true">. We previously had it set to false in version 8.1 because of interference with a different version of the apache Tiles classes, which has now been addressed in version 9.1.
    I still think there is an issue, because the connection pool should never use the application specific classloaders. Am I wrong to believe this?

  • Unable to get the expected results with connection pooling

    Hi All,
    I have been trying to create JDBC connection pooling provided by the Apache Tomcat 4.0 with MySQL 4.0.16-nt at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html and my configuration is as follows
    server.xml
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/TestDB"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/TestDB">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- Maximum number of dB connections in pool. Make sure you
    configure your mysqld max_connections large enough to handle
    all of your db connections. Set to 0 for no limit.
    -->
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- MySQL dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>javauser</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>javadude</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <!-- The JDBC connection url for connecting to your MySQL dB.
    The autoReconnect=true argument to the url makes sure that the
    mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
    connection. mysqld by default closes idle connections after 8 hours.
    -->
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    </Context>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    test.jsp
    <jsp:useBean id="foo" class="foo.DBTest" scope="page" />
    <html>
    <head>
    <title>DB Test</title>
    </head>
    <body>
    <%
    foo.DBTest tst = new foo.DBTest();
    tst.init();
    %>
    <h2>Results</h2>
    Foo <%= tst.getFoo() %>
    Bar <%= tst.getBar() %>
    </body>
    </html>
    DBTest.java package
    package foo;
    import javax.naming.*;
    import javax.sql.*;
    import java.sql.*;
    public class DBTest {
    String foo = "Not Connected";
    int bar = -1;
    public void init() {
    try{
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Boom - No Context");
    DataSource ds =
    (DataSource)ctx.lookup(
    "java:comp/env/jdbc/TestDB");
    if (ds != null) {
    Connection conn = ds.getConnection();
    if(conn != null) {
    foo = "Got Connection "+conn.toString();
    Statement stmt = conn.createStatement();
    ResultSet rst =
    stmt.executeQuery(
    "select id, foo, bar from testdata");
    if(rst.next()) {
    foo=rst.getString(2);
    bar=rst.getInt(3);
    conn.close();
    }catch(Exception e) {
    e.printStackTrace();
    public String getFoo() { return foo; }
    public int getBar() { return bar;}
    Now when I am trying to run this on browser, everything goes fine except it doesn't show the expected results, instead of that it shows following in the browser:-
    Results
    Foo Not Connected
    Bar -1
    Can anybody help me out as to why I am getting such result while everything is right from my side. Is the program unable to connect to the database or it is not supporting the JDBC version that I am using.
    Thanks in advance
    Regards
    Vikas

    Oh, I think this is not the right place to post this message. I have placed the same in other place of this forum. please ignore this post here!!
    MJ, by the way the link that you suggested is not useful to me.
    Thank you

Maybe you are looking for

  • Computer no longer Sleeping

    I have an iMac G5(2nd Gen) with Leopard (10.5.3) and my computer will not sleep no matter what I do. I tried ejecting all external drives (Firewire and USB), turning off all USB devices, disconnecting from my wireless network, quitting all running ap

  • Please provide a link to download Oracle JRockit 27.6.4 for Weblogic 10.3.1

    Folks, Hello. I am installing PeopleTools 8.50 and its PIA according to the document http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujul2009.html After install Weblogic 10.3.1, we need to upgrade JDK for Weblogic 10.3.1 acc

  • OSB error Pending resource availability

    In Oracle Secure backup getting error Pending resource availability while starting the backup. but restoration is working fine with the same tape.. Please help me ASAP. Thanks & Regards, Maruthi.G, *** phone number removed by moderator - this is not

  • Run Preinstall Script in PackageMaker

    I'm using PackageMaker to install an app update and want to add a preinstall script to delete some files in the /Applications/ folder. The script is simply: #!/bin/bash rm /Applications/... etc. If I run this script with Terminal using bash preinstal

  • My security update history says that Firefox 3.6.8 was successfully installed on Dec. 31, 1969. ????

    Firefox Security Updates 3.6.8/3.6.7/3.6.6/3.6.4 all say they the update was successfully installed on Wednesday, December 31, 1969 7:00:00. One of the #s is (20100722155716).