tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33419] New: - Impossible lookup the Oracle connection pool DataSource
Date Mon, 07 Feb 2005 08:39:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33419>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33419

           Summary: Impossible lookup the Oracle connection pool DataSource
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: nasonov@rbc.ru


My contexts app.xml contains:
  <Resource name="jdbc/appDS" 
            auth="Application"
            type="oracle.jdbc.pool.OracleConnectionPoolDataSource"/>
  <ResourceParams name="jdbc/appDS">
    <parameter>
      <name>factory</name>
      <value>oracle.jdbc.pool.OracleDataSourceFactory</value>
    </parameter>
    <parameter>
      <name>url</name>
      <value>jdbc:oracle:thin:@my.db:1521:sid</value>
    </parameter>
  </ResourceParams>

Next time, i lookup this resource:
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/appDS");

And see:
javax.naming.NamingException: Cannot create resource instance
	org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
	javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
	org.apache.naming.NamingContext.lookup(NamingContext.java:792)
	org.apache.naming.NamingContext.lookup(NamingContext.java:139)
	org.apache.naming.NamingContext.lookup(NamingContext.java:780)
	org.apache.naming.NamingContext.lookup(NamingContext.java:139)
	org.apache.naming.NamingContext.lookup(NamingContext.java:780)
	org.apache.naming.NamingContext.lookup(NamingContext.java:139)
	org.apache.naming.NamingContext.lookup(NamingContext.java:780)
	org.apache.naming.NamingContext.lookup(NamingContext.java:152)
	org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
	javax.naming.InitialContext.lookup(InitialContext.java:351)
	org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:48)

In method ResourceFactory.getObjectInstance() local variable "factoryRefAddr"
contains "null"!!!


It work at Tomcat 5.0.28, but work not at Tomcat 5.5.7.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message