DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6048>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6048

JDBC pool unavailable while using WARP connector





------- Additional Comments From [EMAIL PROTECTED]  2002-07-08 12:40 -------
I have ran into the same problem myself and I'm now trying to find a fix to it.
I could not find any solutions. David, you said that it might be from mod_webapp
adding slashes ('/') after the context name. This is probably not the case.

Snippet from my server.xml. 

        <DefaultContext>
          <Resource name="jdbc/pool" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/pool">
            <parameter>
              <name>user</name>
              <value>XXX</value>
            </parameter>
            <parameter>
              <name>password</name>
              <value>XXX</value>
            </parameter>
            <parameter>
              <name>driverClassName</name>
              <value>oracle.jdbc.driver.OracleDriver</value>
            </parameter>
            <parameter>
              <name>driverName</name>
              <value>jdbc:oracle:thin:@HOST:PORT:SID</value>
            </parameter>
          </ResourceParams>
          <Parameter name="Test" value="TestValue" override="true"/>
        </DefaultContext> 

  (Yes, I've also tried auth="Container")

1. No Oracle pool is created, with 4.0.3 the 

        Context initCtx = new InitialContext();
   Context envCtx  = (Context)initCtx.lookup("java:comp/env");
   ds=(DataSource)envCtx.lookup("jdbc/pool");

   ds would be null

   in 4.0.4, this is what I get:

javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver

   ... something hard-coded in tyrex... Weird...

   And I got the same Exception if I would comment out the whole resource.

2. No parameters were passed.

   getServletContext().getInitParameter("Test") returns false.

It almost seems as if everything even slightly context-related would be thrown
into the trashbin. 

Suggestions?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to