[EMAIL PROTECTED] wrote:
Joe Williams wrote:


When using an XSP to connect to a MySQL database, I get an error, according
to my WEB-INF/log/error.log:

"Could not get the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException No valid
JdbcConnection class available at
org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInstance
(JdbcConnectionFactory.java:185)"

I am running Cocoon 2.0.4, Tomcat 4.1.18, and Apache 2 on Red Hat 8.0, with MySQL 4.0

I had the same problem due to the wrong version of excalibur-datasource*.jar ; check it in your $catalina-home$\webapps\cocoon\web-inf\lib, the latest should be excalibur-datasource-1.1.1.jar.

I made this upgrade and it works

Oh, that reminds me - 2.0.4 still had jvm version dependent database code (through excalibur-datasource). In your lib directory, which excalibur-datasource jar do you have? It will contain 12 or 14 for JDK 1.2(and 1.3) or jdk 1.4. Make sure the one you have corresponds to the JDK you're running Cocoon with.


The upgrade mentioned above is to a newer version which may work perfectly but if there are problems you can simply get the appropriate version out of cocoon's cvs.

Geoff


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



Reply via email to