Hello,

Why, when i use this configuration, i connect Oracle

web.xml (cocoon)
        <init-param>
        <param-name>load-class</param-name>
        <param-value>
         sun.jdbc.odbc.JdbcOdbcDriver
         </param-value>

 Coccon.xconf
 <datasources>
       <jdbc name="test_oracle_pool" logger="core.datasources.personnel">
             <!-- Don't forget the oradb parameter for Oracle!!! -->
       <pool-controller min="5" max="10" oradb="true"/>
     <dburl> jdbc:odbc:PEPPE </dburl>
     <user>dev</user>
     <password>giu</password>
     </jdbc>
 <datasources>
:-)
OK
-----------------------------------------------------------------
bat, if i change in:

<param-value>
       oracle.jdbc.driver.OracleDriver
      </param-value>


 web.xml
        <init-param>
        <param-name>load-class</param-name>
        <param-value>
         oracle.jdbc.driver.OracleDriver
        </param-value>

 Coccon.xconf
 <datasources>
       <jdbc name="test_oracle_pool" logger="core.datasources.personnel">
             <!-- Don't forget the oradb parameter for Oracle!!! -->
      <pool-controller min="5" max="10" oradb="true"/>
     <dburl>jdbc:oracle:thin:@2000server:1521:oras</dburl>
     <user>dev</user>
     <password>giu</password>
     </jdbc>
 <datasources>
ERROR.....
ERROR.....
ERROR.....
ERROR.....
ERROR.....
java.lang.RuntimeException: Could not get the datasource
java.sql.SQLException: You cannot get a Poolable before the pool is
initialized...??????????????????????????????????????????????????????
--------------------------------------------------------------------
 The database driver is classes12.jar and I am able to connect to the same
 database with same driver with standalone java application.
 Environment is Tomcat 4,  C2( cocoon.war) & windows2000

CATALINA_HOME C:\Programmi\Apache Tomcat 4.0;
CLASSPATH C:\Programmi\Apache Tomcat 4.0\webapps\ROOT;
TEMP %USERPROFILE%\Impostazioni locali\Temp
JAVA_HOME C:\jdk1.3.1\bin;
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Os2LibPath %SystemRoot%\system32\os2\dll;
Path
C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Programmi\
File comuni\Adaptec Shared\System;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 4 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0402
PROMPT $p$g
TEMP %SystemRoot%\TEMP
TMP %SystemRoot%\TEMP
TOMCAT_HOME C:\Programmi\Apache Tomcat 4.0;
windir %SystemRoot%

 Thank you !
Giuseppe.






---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to